Official Tencent Cloud SDK for the Cloud Monitor (CM) service. Provides APIs for querying monitoring data, setting alarms, and managing dashboard. Current version 3.1.92. Releases are frequent, often monthly, but breaking changes are rare. Part of the larger tencentcloud-sdk-python ecosystem.
pip install tencentcloud-sdk-python-monitorNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Minimal authenticated client creation and a call to DescribeMonitorData.
Use `from tencentcloud.monitor.v20180724 import monitor_client` instead of `from tencentcloud.monitor import monitor_client`.
Install the sub-package (`tencentcloud-sdk-python-monitor`) and update imports to versioned paths.
Check the official API documentation for the latest methods.
Always set the region parameter when creating the client, e.g., `MonitorClient(cred, 'ap-guangzhou')`.
Run: pip install tencentcloud-sdk-python-monitor tencentcloud-sdk-python-common
Use: from tencentcloud.monitor.v20180724 import monitor_client
Use the correct metric name from the Tencent Cloud Monitor documentation. For example, `cpu_usage` for CVM.
Check the exact class name in the API docs. Often it's `DescribeMonitorDataRequest` but might be other camelCase variants.