Commit 7ff729e7 authored by 胡凯旋's avatar 胡凯旋

fix

parent ae31af1f
...@@ -75,43 +75,5 @@ class Monitor(Tencent): ...@@ -75,43 +75,5 @@ class Monitor(Tencent):
"StartTime": "2019-04-02T12:30:00+08:00", "StartTime": "2019-04-02T12:30:00+08:00",
"EndTime": "2019-04-02T12:35:00+08:00" "EndTime": "2019-04-02T12:35:00+08:00"
} }
# print(params_dict)
resp = self._get_monitor_data(params_dict) resp = self._get_monitor_data(params_dict)
return resp return resp
# try:
# cred = credential.Credential(
# "AKIDYdekdHJkhP2Qs5w8t89jKbhiJg4ELvDO", "OZGtpiP1NZ100y66sEE0ZtyUlmQo57yd")
# httpProfile = HttpProfile()
# httpProfile.endpoint = "monitor.tencentcloudapi.com"
# clientProfile = ClientProfile()
# clientProfile.httpProfile = httpProfile
# client = monitor_client.MonitorClient(cred, "ap-beijing", clientProfile)
# req = models.GetMonitorDataRequest()
# params_dict = {
# "Namespace": "QCE/CDB",
# "MetricName": "CPUUseRate",
# "Period": 5,
# "Instances": [
# {
# "Dimensions": [
# {
# "Name": "InstanceId",
# "Value": "cdb-iaq6uk88"
# }
# ]
# }
# ],
# "StartTime": "2019-03-28T18:30:00+08:00",
# "EndTime": "2019-03-28T18:31:00+08:00"
# }
# req.from_json_string(json.dumps(params_dict))
# resp = client.GetMonitorData(req)
# pprint.pprint(json.loads(resp.to_json_string()))
# except TencentCloudSDKException as err:
# print(err)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment