torch/monitor: update pyi definitions (#71950)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/71950
This updates the .pyi definitions to match the pybind interfaces.
Test Plan:
```
pyre
```
CI
Reviewed By: kiukchung, edward-io
Differential Revision: D33830311
fbshipit-source-id: 147b1fbfd242dd9cec1cff05768f7a96d9599af4
(cherry picked from commit 347a5ebcc34c4583f80ccaa65b194e6f51714475)