Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
gm-mysql-exporter
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
system
gm-mysql-exporter
Commits
7ff729e7
Commit
7ff729e7
authored
Apr 03, 2019
by
胡凯旋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
ae31af1f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
38 deletions
+0
-38
tencent.py
utils/tencent.py
+0
-38
No files found.
utils/tencent.py
View file @
7ff729e7
...
@@ -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)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment