tccli 3.0.1300.3__py2.py3-none-any.whl → 3.0.1302.1__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tccli/__init__.py +1 -1
- tccli/services/__init__.py +2 -1
- tccli/services/asr/v20190614/api.json +18 -18
- tccli/services/batch/v20170312/api.json +14 -14
- tccli/services/bh/bh_client.py +623 -93
- tccli/services/bh/v20230418/api.json +1054 -32
- tccli/services/bh/v20230418/examples.json +93 -1
- tccli/services/billing/billing_client.py +4 -57
- tccli/services/billing/v20180709/api.json +3 -305
- tccli/services/billing/v20180709/examples.json +2 -10
- tccli/services/bpaas/v20181217/api.json +56 -56
- tccli/services/cat/cat_client.py +61 -8
- tccli/services/cat/v20180409/api.json +115 -0
- tccli/services/cat/v20180409/examples.json +20 -0
- tccli/services/cbs/v20170312/api.json +9 -7
- tccli/services/cbs/v20170312/examples.json +2 -2
- tccli/services/ccc/ccc_client.py +216 -4
- tccli/services/ccc/v20200210/api.json +364 -6
- tccli/services/ccc/v20200210/examples.json +32 -0
- tccli/services/cdb/v20170320/api.json +23 -14
- tccli/services/cdb/v20170320/examples.json +3 -3
- tccli/services/cdc/cdc_client.py +173 -67
- tccli/services/cdc/v20201214/api.json +96 -0
- tccli/services/cdc/v20201214/examples.json +16 -0
- tccli/services/cdn/v20180606/api.json +365 -279
- tccli/services/cdwch/v20200915/api.json +21 -21
- tccli/services/cdwdoris/v20211228/api.json +21 -1
- tccli/services/cdwdoris/v20211228/examples.json +4 -4
- tccli/services/cdwpg/v20201230/api.json +375 -360
- tccli/services/cdwpg/v20201230/examples.json +1 -1
- tccli/services/cfw/cfw_client.py +53 -0
- tccli/services/cfw/v20190904/api.json +201 -5
- tccli/services/cfw/v20190904/examples.json +8 -0
- tccli/services/chc/chc_client.py +57 -4
- tccli/services/chc/v20230418/api.json +108 -1
- tccli/services/chc/v20230418/examples.json +8 -0
- tccli/services/ckafka/ckafka_client.py +408 -302
- tccli/services/ckafka/v20190819/api.json +197 -2
- tccli/services/ckafka/v20190819/examples.json +16 -0
- tccli/services/clb/v20180317/api.json +439 -379
- tccli/services/clb/v20180317/examples.json +7 -7
- tccli/services/cls/cls_client.py +53 -0
- tccli/services/cls/v20201016/api.json +86 -3
- tccli/services/cls/v20201016/examples.json +11 -3
- tccli/services/cvm/v20170312/api.json +165 -147
- tccli/services/cvm/v20170312/examples.json +6 -6
- tccli/services/cwp/v20180228/api.json +93 -14
- tccli/services/cwp/v20180228/examples.json +7 -7
- tccli/services/cynosdb/cynosdb_client.py +171 -12
- tccli/services/cynosdb/v20190107/api.json +252 -3
- tccli/services/cynosdb/v20190107/examples.json +24 -0
- tccli/services/dbbrain/dbbrain_client.py +57 -4
- tccli/services/dbbrain/v20210527/api.json +62 -0
- tccli/services/dbbrain/v20210527/examples.json +8 -0
- tccli/services/dc/v20180410/api.json +1 -1
- tccli/services/dlc/dlc_client.py +53 -0
- tccli/services/dlc/v20210125/api.json +816 -655
- tccli/services/dlc/v20210125/examples.json +73 -59
- tccli/services/dsgc/v20190723/api.json +18 -0
- tccli/services/dts/v20211206/api.json +4 -4
- tccli/services/dts/v20211206/examples.json +6 -0
- tccli/services/emr/emr_client.py +53 -0
- tccli/services/emr/v20190103/api.json +127 -0
- tccli/services/emr/v20190103/examples.json +8 -0
- tccli/services/es/es_client.py +686 -151
- tccli/services/es/v20180416/api.json +509 -436
- tccli/services/es/v20180416/examples.json +43 -49
- tccli/services/es/v20250101/api.json +1391 -0
- tccli/services/es/v20250101/examples.json +85 -0
- tccli/services/ess/ess_client.py +53 -0
- tccli/services/ess/v20201111/api.json +142 -21
- tccli/services/ess/v20201111/examples.json +14 -0
- tccli/services/essbasic/essbasic_client.py +53 -0
- tccli/services/essbasic/v20210526/api.json +112 -9
- tccli/services/essbasic/v20210526/examples.json +8 -0
- tccli/services/gaap/v20180529/api.json +321 -312
- tccli/services/gaap/v20180529/examples.json +2 -2
- tccli/services/gs/gs_client.py +538 -8
- tccli/services/gs/v20191118/api.json +947 -44
- tccli/services/gs/v20191118/examples.json +87 -1
- tccli/services/gwlb/v20240906/api.json +56 -37
- tccli/services/gwlb/v20240906/examples.json +11 -5
- tccli/services/hunyuan/hunyuan_client.py +175 -69
- tccli/services/hunyuan/v20230901/api.json +191 -1
- tccli/services/hunyuan/v20230901/examples.json +17 -1
- tccli/services/ioa/ioa_client.py +227 -15
- tccli/services/ioa/v20220601/api.json +479 -0
- tccli/services/ioa/v20220601/examples.json +44 -0
- tccli/services/iotexplorer/iotexplorer_client.py +322 -4
- tccli/services/iotexplorer/v20190423/api.json +865 -52
- tccli/services/iotexplorer/v20190423/examples.json +64 -16
- tccli/services/iotvideo/iotvideo_client.py +57 -4
- tccli/services/iotvideo/v20211125/api.json +146 -0
- tccli/services/iotvideo/v20211125/examples.json +8 -0
- tccli/services/iotvideoindustry/v20201201/api.json +1 -1
- tccli/services/kms/v20190118/api.json +38 -2
- tccli/services/lcic/v20220817/api.json +66 -1
- tccli/services/lcic/v20220817/examples.json +1 -1
- tccli/services/lighthouse/lighthouse_client.py +0 -106
- tccli/services/lighthouse/v20200324/api.json +11 -98
- tccli/services/lighthouse/v20200324/examples.json +0 -16
- tccli/services/live/v20180801/api.json +1 -1
- tccli/services/lke/v20231130/api.json +208 -10
- tccli/services/lke/v20231130/examples.json +10 -10
- tccli/services/lkeap/lkeap_client.py +53 -0
- tccli/services/lkeap/v20240522/api.json +48 -4
- tccli/services/lkeap/v20240522/examples.json +8 -0
- tccli/services/mna/mna_client.py +4 -163
- tccli/services/mna/v20210119/api.json +0 -524
- tccli/services/mna/v20210119/examples.json +0 -24
- tccli/services/monitor/monitor_client.py +114 -8
- tccli/services/monitor/v20180724/api.json +129 -18
- tccli/services/monitor/v20180724/examples.json +17 -1
- tccli/services/mps/v20190612/api.json +1223 -1031
- tccli/services/mps/v20190612/examples.json +1 -1
- tccli/services/nlp/v20190408/examples.json +1 -1
- tccli/services/oceanus/v20190422/api.json +12 -12
- tccli/services/oceanus/v20190422/examples.json +15 -3
- tccli/services/ocr/v20181119/api.json +13 -3
- tccli/services/postgres/v20170312/api.json +2 -2
- tccli/services/privatedns/v20201028/api.json +30 -11
- tccli/services/privatedns/v20201028/examples.json +10 -10
- tccli/services/rce/v20201103/api.json +3 -3
- tccli/services/ses/v20201002/api.json +10 -1
- tccli/services/smop/v20201203/api.json +2 -2
- tccli/services/sqlserver/v20180328/api.json +1 -1
- tccli/services/ssm/v20190923/api.json +27 -0
- tccli/services/sts/sts_client.py +53 -0
- tccli/services/sts/v20180813/api.json +101 -1
- tccli/services/sts/v20180813/examples.json +8 -0
- tccli/services/taf/taf_client.py +0 -53
- tccli/services/taf/v20200210/api.json +0 -138
- tccli/services/taf/v20200210/examples.json +0 -8
- tccli/services/tan/v20220420/api.json +2 -2
- tccli/services/tat/v20201028/api.json +2 -2
- tccli/services/tcb/v20180608/api.json +29 -1
- tccli/services/tcbr/v20220217/api.json +32 -0
- tccli/services/tccatalog/v20241024/api.json +1 -1
- tccli/services/tccatalog/v20241024/examples.json +1 -1
- tccli/services/tcr/v20190924/api.json +5 -5
- tccli/services/tcr/v20190924/examples.json +2 -2
- tccli/services/tcss/v20201101/api.json +84 -34
- tccli/services/tcss/v20201101/examples.json +2809 -0
- tccli/services/tdmq/v20200217/api.json +40 -0
- tccli/services/tdmq/v20200217/examples.json +1 -1
- tccli/services/tds/tds_client.py +53 -0
- tccli/services/tds/v20220801/api.json +265 -0
- tccli/services/tds/v20220801/examples.json +8 -0
- tccli/services/tem/v20210701/api.json +664 -575
- tccli/services/tem/v20210701/examples.json +2 -2
- tccli/services/teo/v20220901/api.json +236 -208
- tccli/services/teo/v20220901/examples.json +13 -13
- tccli/services/tione/tione_client.py +53 -0
- tccli/services/tione/v20211111/api.json +256 -0
- tccli/services/tione/v20211111/examples.json +8 -0
- tccli/services/tke/v20180525/api.json +1 -1
- tccli/services/trocket/trocket_client.py +489 -12
- tccli/services/trocket/v20230308/api.json +925 -146
- tccli/services/trocket/v20230308/examples.json +72 -0
- tccli/services/trtc/v20190722/api.json +13 -19
- tccli/services/trtc/v20190722/examples.json +8 -8
- tccli/services/tse/v20201207/api.json +1016 -995
- tccli/services/tse/v20201207/examples.json +2 -2
- tccli/services/tsf/v20180326/api.json +510 -465
- tccli/services/tsf/v20180326/examples.json +4 -4
- tccli/services/tts/v20190823/api.json +10 -10
- tccli/services/vclm/v20240523/api.json +2 -2
- tccli/services/vcube/v20220410/api.json +10 -0
- tccli/services/vdb/v20230616/api.json +10 -0
- tccli/services/vdb/v20230616/examples.json +1 -1
- tccli/services/vpc/v20170312/api.json +824 -254
- tccli/services/vpc/v20170312/examples.json +66 -10
- tccli/services/vpc/vpc_client.py +383 -12
- tccli/services/vrs/v20200824/api.json +9 -0
- tccli/services/waf/v20180125/api.json +8113 -5814
- tccli/services/waf/v20180125/examples.json +90 -0
- tccli/services/waf/waf_client.py +559 -82
- tccli/services/wedata/v20210820/api.json +1379 -24
- tccli/services/wedata/v20210820/examples.json +25 -1
- tccli/services/wedata/wedata_client.py +171 -12
- tccli/services/weilingwith/v20230427/api.json +1 -1
- tccli/services/weilingwith/v20230427/examples.json +3 -3
- {tccli-3.0.1300.3.dist-info → tccli-3.0.1302.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1300.3.dist-info → tccli-3.0.1302.1.dist-info}/RECORD +187 -184
- {tccli-3.0.1300.3.dist-info → tccli-3.0.1302.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1300.3.dist-info → tccli-3.0.1302.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1300.3.dist-info → tccli-3.0.1302.1.dist-info}/license_files/LICENSE +0 -0
@@ -331,6 +331,58 @@ def doUpdateAlertRule(args, parsed_globals):
|
|
331
331
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
332
332
|
|
333
333
|
|
334
|
+
def doExportPrometheusReadOnlyDynamicAPI(args, parsed_globals):
|
335
|
+
g_param = parse_global_arg(parsed_globals)
|
336
|
+
|
337
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
338
|
+
cred = credential.CVMRoleCredential()
|
339
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
340
|
+
cred = credential.STSAssumeRoleCredential(
|
341
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
342
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
343
|
+
)
|
344
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
345
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
346
|
+
else:
|
347
|
+
cred = credential.Credential(
|
348
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
349
|
+
)
|
350
|
+
http_profile = HttpProfile(
|
351
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
352
|
+
reqMethod="POST",
|
353
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
354
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
355
|
+
)
|
356
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
357
|
+
if g_param[OptionsDefine.Language]:
|
358
|
+
profile.language = g_param[OptionsDefine.Language]
|
359
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
360
|
+
client = mod.MonitorClient(cred, g_param[OptionsDefine.Region], profile)
|
361
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
362
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
363
|
+
model = models.ExportPrometheusReadOnlyDynamicAPIRequest()
|
364
|
+
model.from_json_string(json.dumps(args))
|
365
|
+
start_time = time.time()
|
366
|
+
while True:
|
367
|
+
rsp = client.ExportPrometheusReadOnlyDynamicAPI(model)
|
368
|
+
result = rsp.to_json_string()
|
369
|
+
try:
|
370
|
+
json_obj = json.loads(result)
|
371
|
+
except TypeError as e:
|
372
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
373
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
374
|
+
break
|
375
|
+
cur_time = time.time()
|
376
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
377
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
378
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
379
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
380
|
+
else:
|
381
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
382
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
383
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
384
|
+
|
385
|
+
|
334
386
|
def doDescribeMonitorResourceInfo(args, parsed_globals):
|
335
387
|
g_param = parse_global_arg(parsed_globals)
|
336
388
|
|
@@ -539,6 +591,58 @@ def doDescribePrometheusInstanceUsage(args, parsed_globals):
|
|
539
591
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
540
592
|
|
541
593
|
|
594
|
+
def doDescribePolicyObjectCount(args, parsed_globals):
|
595
|
+
g_param = parse_global_arg(parsed_globals)
|
596
|
+
|
597
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
598
|
+
cred = credential.CVMRoleCredential()
|
599
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
600
|
+
cred = credential.STSAssumeRoleCredential(
|
601
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
602
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
603
|
+
)
|
604
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
605
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
606
|
+
else:
|
607
|
+
cred = credential.Credential(
|
608
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
609
|
+
)
|
610
|
+
http_profile = HttpProfile(
|
611
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
612
|
+
reqMethod="POST",
|
613
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
614
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
615
|
+
)
|
616
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
617
|
+
if g_param[OptionsDefine.Language]:
|
618
|
+
profile.language = g_param[OptionsDefine.Language]
|
619
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
620
|
+
client = mod.MonitorClient(cred, g_param[OptionsDefine.Region], profile)
|
621
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
622
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
623
|
+
model = models.DescribePolicyObjectCountRequest()
|
624
|
+
model.from_json_string(json.dumps(args))
|
625
|
+
start_time = time.time()
|
626
|
+
while True:
|
627
|
+
rsp = client.DescribePolicyObjectCount(model)
|
628
|
+
result = rsp.to_json_string()
|
629
|
+
try:
|
630
|
+
json_obj = json.loads(result)
|
631
|
+
except TypeError as e:
|
632
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
633
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
634
|
+
break
|
635
|
+
cur_time = time.time()
|
636
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
637
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
638
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
639
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
640
|
+
else:
|
641
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
642
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
643
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
644
|
+
|
645
|
+
|
542
646
|
def doModifyAlarmReceivers(args, parsed_globals):
|
543
647
|
g_param = parse_global_arg(parsed_globals)
|
544
648
|
|
@@ -799,7 +903,7 @@ def doCreateGrafanaInstance(args, parsed_globals):
|
|
799
903
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
800
904
|
|
801
905
|
|
802
|
-
def
|
906
|
+
def doCreateAlarmPolicy(args, parsed_globals):
|
803
907
|
g_param = parse_global_arg(parsed_globals)
|
804
908
|
|
805
909
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -828,11 +932,11 @@ def doDescribeBasicAlarmList(args, parsed_globals):
|
|
828
932
|
client = mod.MonitorClient(cred, g_param[OptionsDefine.Region], profile)
|
829
933
|
client._sdkVersion += ("_CLI_" + __version__)
|
830
934
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
831
|
-
model = models.
|
935
|
+
model = models.CreateAlarmPolicyRequest()
|
832
936
|
model.from_json_string(json.dumps(args))
|
833
937
|
start_time = time.time()
|
834
938
|
while True:
|
835
|
-
rsp = client.
|
939
|
+
rsp = client.CreateAlarmPolicy(model)
|
836
940
|
result = rsp.to_json_string()
|
837
941
|
try:
|
838
942
|
json_obj = json.loads(result)
|
@@ -4439,7 +4543,7 @@ def doDescribeSSOAccount(args, parsed_globals):
|
|
4439
4543
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4440
4544
|
|
4441
4545
|
|
4442
|
-
def
|
4546
|
+
def doDescribeBasicAlarmList(args, parsed_globals):
|
4443
4547
|
g_param = parse_global_arg(parsed_globals)
|
4444
4548
|
|
4445
4549
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -4468,11 +4572,11 @@ def doCreateAlarmPolicy(args, parsed_globals):
|
|
4468
4572
|
client = mod.MonitorClient(cred, g_param[OptionsDefine.Region], profile)
|
4469
4573
|
client._sdkVersion += ("_CLI_" + __version__)
|
4470
4574
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4471
|
-
model = models.
|
4575
|
+
model = models.DescribeBasicAlarmListRequest()
|
4472
4576
|
model.from_json_string(json.dumps(args))
|
4473
4577
|
start_time = time.time()
|
4474
4578
|
while True:
|
4475
|
-
rsp = client.
|
4579
|
+
rsp = client.DescribeBasicAlarmList(model)
|
4476
4580
|
result = rsp.to_json_string()
|
4477
4581
|
try:
|
4478
4582
|
json_obj = json.loads(result)
|
@@ -8410,16 +8514,18 @@ ACTION_MAP = {
|
|
8410
8514
|
"DeletePrometheusClusterAgent": doDeletePrometheusClusterAgent,
|
8411
8515
|
"DescribeBindingPolicyObjectList": doDescribeBindingPolicyObjectList,
|
8412
8516
|
"UpdateAlertRule": doUpdateAlertRule,
|
8517
|
+
"ExportPrometheusReadOnlyDynamicAPI": doExportPrometheusReadOnlyDynamicAPI,
|
8413
8518
|
"DescribeMonitorResourceInfo": doDescribeMonitorResourceInfo,
|
8414
8519
|
"ModifyPrometheusAlertPolicy": doModifyPrometheusAlertPolicy,
|
8415
8520
|
"DescribePrometheusAlertGroups": doDescribePrometheusAlertGroups,
|
8416
8521
|
"DescribePrometheusInstanceUsage": doDescribePrometheusInstanceUsage,
|
8522
|
+
"DescribePolicyObjectCount": doDescribePolicyObjectCount,
|
8417
8523
|
"ModifyAlarmReceivers": doModifyAlarmReceivers,
|
8418
8524
|
"BindingPolicyObject": doBindingPolicyObject,
|
8419
8525
|
"DeletePrometheusAlertGroups": doDeletePrometheusAlertGroups,
|
8420
8526
|
"DescribePolicyGroupInfo": doDescribePolicyGroupInfo,
|
8421
8527
|
"CreateGrafanaInstance": doCreateGrafanaInstance,
|
8422
|
-
"
|
8528
|
+
"CreateAlarmPolicy": doCreateAlarmPolicy,
|
8423
8529
|
"DescribeProductList": doDescribeProductList,
|
8424
8530
|
"DescribePrometheusRecordRules": doDescribePrometheusRecordRules,
|
8425
8531
|
"UpdateSSOAccount": doUpdateSSOAccount,
|
@@ -8489,7 +8595,7 @@ ACTION_MAP = {
|
|
8489
8595
|
"ResumeGrafanaInstance": doResumeGrafanaInstance,
|
8490
8596
|
"CreatePrometheusTemp": doCreatePrometheusTemp,
|
8491
8597
|
"DescribeSSOAccount": doDescribeSSOAccount,
|
8492
|
-
"
|
8598
|
+
"DescribeBasicAlarmList": doDescribeBasicAlarmList,
|
8493
8599
|
"CreatePrometheusAgent": doCreatePrometheusAgent,
|
8494
8600
|
"CreatePrometheusGlobalNotification": doCreatePrometheusGlobalNotification,
|
8495
8601
|
"UpdateAlertRuleState": doUpdateAlertRuleState,
|
@@ -560,6 +560,13 @@
|
|
560
560
|
"output": "DescribePolicyGroupListResponse",
|
561
561
|
"status": "online"
|
562
562
|
},
|
563
|
+
"DescribePolicyObjectCount": {
|
564
|
+
"document": "查询策略组在每个地域下面绑定的对象数统计",
|
565
|
+
"input": "DescribePolicyObjectCountRequest",
|
566
|
+
"name": "查询策略组在每个地域下面绑定的对象数统计",
|
567
|
+
"output": "DescribePolicyObjectCountResponse",
|
568
|
+
"status": "online"
|
569
|
+
},
|
563
570
|
"DescribeProductEventList": {
|
564
571
|
"document": "分页获取产品事件的列表",
|
565
572
|
"input": "DescribeProductEventListRequest",
|
@@ -784,8 +791,15 @@
|
|
784
791
|
"output": "EnableSSOCamCheckResponse",
|
785
792
|
"status": "online"
|
786
793
|
},
|
794
|
+
"ExportPrometheusReadOnlyDynamicAPI": {
|
795
|
+
"document": "Prometheus 内部动态 api 代理,仅内部使用",
|
796
|
+
"input": "ExportPrometheusReadOnlyDynamicAPIRequest",
|
797
|
+
"name": "Prometheus 内部只读 api 代理",
|
798
|
+
"output": "ExportPrometheusReadOnlyDynamicAPIResponse",
|
799
|
+
"status": "online"
|
800
|
+
},
|
787
801
|
"GetMonitorData": {
|
788
|
-
"document": "获取云产品的监控数据。此接口不适用于拉取容器服务监控数据,如需拉取容器服务监控数据,请使用[根据维度条件查询监控数据](https://cloud.tencent.com/document/product/248/51845)接口。\n传入产品的命名空间、对象维度描述和监控指标即可获得相应的监控数据。\n接口调用限制:单请求最多可支持批量拉取10个实例的监控数据,单请求的数据点数限制为1440个。\n若您需要调用的指标、对象较多,可能存在因限频出现拉取失败的情况,建议尽量将请求按时间维度均摊。\n参数SpecifyStatistics目前可支持返回三种统计方式(avg,max,min),分别为二进制1,2,4。\n例子:3:avg+max,5:avg+min,6:max+min,7:avg+max+min\n
|
802
|
+
"document": "获取云产品的监控数据。此接口不适用于拉取容器服务监控数据,如需拉取容器服务监控数据,请使用[根据维度条件查询监控数据](https://cloud.tencent.com/document/product/248/51845)接口。\n传入产品的命名空间、对象维度描述和监控指标即可获得相应的监控数据。\n接口调用限制:单请求最多可支持批量拉取10个实例的监控数据,单请求的数据点数限制为1440个。\n若您需要调用的指标、对象较多,可能存在因限频出现拉取失败的情况,建议尽量将请求按时间维度均摊。\n参数SpecifyStatistics目前可支持返回三种统计方式(avg,max,min),分别为二进制1,2,4。\n例子:3:avg+max,5:avg+min,6:max+min,7:avg+max+min\n拉取数据的粒度和统计方式的对应关系尽量在接入平台进行配置,如果没有配置对应统计方式,请提工单反馈。\n\n>?\n>- 2022年9月1日起,腾讯云可观测平台开始对GetMonitorData接口计费。每个主账号每月可获得100万次免费请求额度,超过免费额度后如需继续调用接口需要开通 [API请求按量付费](https://buy.cloud.tencent.com/APIRequestBuy)。计费规则可查看[API计费文档](https://cloud.tencent.com/document/product/248/77914)。",
|
789
803
|
"input": "GetMonitorDataRequest",
|
790
804
|
"name": "拉取指标监控数据",
|
791
805
|
"output": "GetMonitorDataResponse",
|
@@ -1002,7 +1016,7 @@
|
|
1002
1016
|
"status": "online"
|
1003
1017
|
},
|
1004
1018
|
"UpdateAlertRule": {
|
1005
|
-
"document": "更新 Prometheus 的告警规则。\n\n请注意,**告警对象和告警消息是 Prometheus Rule Annotations 的特殊字段,需要通过 annotations 来传递,对应的 Key 分别为summary/description
|
1019
|
+
"document": "更新 Prometheus 的告警规则。\n\n请注意,**告警对象和告警消息是 Prometheus Rule Annotations 的特殊字段,需要通过 annotations 来传递,对应的 Key 分别为summary/description**,请参考 [Prometheus Rule更多配置请参考](https://prometheus.io/docs/prometheus/latest/configuration/alerting_rules/)。",
|
1006
1020
|
"input": "UpdateAlertRuleRequest",
|
1007
1021
|
"name": "更新告警规则",
|
1008
1022
|
"output": "UpdateAlertRuleResponse",
|
@@ -5389,7 +5403,7 @@
|
|
5389
5403
|
{
|
5390
5404
|
"disabled": false,
|
5391
5405
|
"document": "实例对象维度组合",
|
5392
|
-
"example": "
|
5406
|
+
"example": "[ { \"Name\": \"InstanceId\", \"Value\": \"ins-j0hk02zo\" } ]",
|
5393
5407
|
"member": "Dimension",
|
5394
5408
|
"name": "Dimensions",
|
5395
5409
|
"output_required": true,
|
@@ -5399,7 +5413,7 @@
|
|
5399
5413
|
{
|
5400
5414
|
"disabled": false,
|
5401
5415
|
"document": "时间戳数组,表示那些时间点有数据,缺失的时间戳,没有数据点,可以理解为掉点了",
|
5402
|
-
"example": "
|
5416
|
+
"example": "[ 1535079000, 1535079300, 1535079600, 1535079900, 1535080200, 1535080500 ]",
|
5403
5417
|
"member": "float",
|
5404
5418
|
"name": "Timestamps",
|
5405
5419
|
"output_required": true,
|
@@ -5409,7 +5423,7 @@
|
|
5409
5423
|
{
|
5410
5424
|
"disabled": false,
|
5411
5425
|
"document": "监控值数组,该数组和Timestamps一一对应",
|
5412
|
-
"example": "
|
5426
|
+
"example": "[ 2.566, 2.283, 6.316, 2.816, 2.7, 2.35 ]",
|
5413
5427
|
"member": "float",
|
5414
5428
|
"name": "Values",
|
5415
5429
|
"output_required": true,
|
@@ -5419,7 +5433,7 @@
|
|
5419
5433
|
{
|
5420
5434
|
"disabled": false,
|
5421
5435
|
"document": "监控值数组,该数组和Timestamps一一对应\n注意:此字段可能返回 null,表示取不到有效值。",
|
5422
|
-
"example": "
|
5436
|
+
"example": "[ 2.566, 2.283, 6.316, 2.816, 2.7, 2.35 ]",
|
5423
5437
|
"member": "float",
|
5424
5438
|
"name": "MaxValues",
|
5425
5439
|
"output_required": false,
|
@@ -5429,7 +5443,7 @@
|
|
5429
5443
|
{
|
5430
5444
|
"disabled": false,
|
5431
5445
|
"document": "监控值数组,该数组和Timestamps一一对应\n注意:此字段可能返回 null,表示取不到有效值。",
|
5432
|
-
"example": "
|
5446
|
+
"example": "[ 2.566, 2.283, 6.316, 2.816, 2.7, 2.35 ]",
|
5433
5447
|
"member": "float",
|
5434
5448
|
"name": "MinValues",
|
5435
5449
|
"output_required": false,
|
@@ -5439,7 +5453,7 @@
|
|
5439
5453
|
{
|
5440
5454
|
"disabled": false,
|
5441
5455
|
"document": "监控值数组,该数组和Timestamps一一对应\n注意:此字段可能返回 null,表示取不到有效值。",
|
5442
|
-
"example": "
|
5456
|
+
"example": "[ 2.566, 2.283, 6.316, 2.816, 2.7, 2.35 ]",
|
5443
5457
|
"member": "float",
|
5444
5458
|
"name": "AvgValues",
|
5445
5459
|
"output_required": false,
|
@@ -11013,6 +11027,60 @@
|
|
11013
11027
|
],
|
11014
11028
|
"type": "object"
|
11015
11029
|
},
|
11030
|
+
"DescribePolicyObjectCountRequest": {
|
11031
|
+
"document": "DescribePolicyObjectCount请求参数结构体",
|
11032
|
+
"members": [
|
11033
|
+
{
|
11034
|
+
"disabled": false,
|
11035
|
+
"document": "固定值,为\"monitor\"",
|
11036
|
+
"example": "",
|
11037
|
+
"member": "string",
|
11038
|
+
"name": "Module",
|
11039
|
+
"required": true,
|
11040
|
+
"type": "string"
|
11041
|
+
},
|
11042
|
+
{
|
11043
|
+
"disabled": false,
|
11044
|
+
"document": "策略组Id",
|
11045
|
+
"example": "",
|
11046
|
+
"member": "int64",
|
11047
|
+
"name": "GroupId",
|
11048
|
+
"required": true,
|
11049
|
+
"type": "int"
|
11050
|
+
}
|
11051
|
+
],
|
11052
|
+
"type": "object"
|
11053
|
+
},
|
11054
|
+
"DescribePolicyObjectCountResponse": {
|
11055
|
+
"document": "DescribePolicyObjectCount返回参数结构体",
|
11056
|
+
"members": [
|
11057
|
+
{
|
11058
|
+
"disabled": false,
|
11059
|
+
"document": "是否为多地域\n注意:此字段可能返回 null,表示取不到有效值。",
|
11060
|
+
"example": "",
|
11061
|
+
"member": "bool",
|
11062
|
+
"name": "IsMultiRegion",
|
11063
|
+
"type": "bool",
|
11064
|
+
"value_allowed_null": true
|
11065
|
+
},
|
11066
|
+
{
|
11067
|
+
"disabled": false,
|
11068
|
+
"document": "地域统计列表\n注意:此字段可能返回 null,表示取不到有效值。",
|
11069
|
+
"example": "",
|
11070
|
+
"member": "RegionPolicyObjectCount",
|
11071
|
+
"name": "RegionList",
|
11072
|
+
"type": "list",
|
11073
|
+
"value_allowed_null": true
|
11074
|
+
},
|
11075
|
+
{
|
11076
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
11077
|
+
"member": "string",
|
11078
|
+
"name": "RequestId",
|
11079
|
+
"type": "string"
|
11080
|
+
}
|
11081
|
+
],
|
11082
|
+
"type": "object"
|
11083
|
+
},
|
11016
11084
|
"DescribeProductEventListDimensions": {
|
11017
11085
|
"document": "DescribeProductEventList的入参Dimensions",
|
11018
11086
|
"members": [
|
@@ -13570,7 +13638,7 @@
|
|
13570
13638
|
{
|
13571
13639
|
"disabled": false,
|
13572
13640
|
"document": "实例维度名称\n注意:此字段可能返回 null,表示取不到有效值。",
|
13573
|
-
"example": "
|
13641
|
+
"example": "InstanceId",
|
13574
13642
|
"member": "string",
|
13575
13643
|
"name": "Name",
|
13576
13644
|
"output_required": false,
|
@@ -13581,7 +13649,7 @@
|
|
13581
13649
|
{
|
13582
13650
|
"disabled": false,
|
13583
13651
|
"document": "实例维度值\n注意:此字段可能返回 null,表示取不到有效值。",
|
13584
|
-
"example": "
|
13652
|
+
"example": "ins-j0hk02zo",
|
13585
13653
|
"member": "string",
|
13586
13654
|
"name": "Value",
|
13587
13655
|
"output_required": false,
|
@@ -13908,6 +13976,23 @@
|
|
13908
13976
|
],
|
13909
13977
|
"usage": "out"
|
13910
13978
|
},
|
13979
|
+
"ExportPrometheusReadOnlyDynamicAPIRequest": {
|
13980
|
+
"document": "ExportPrometheusReadOnlyDynamicAPI请求参数结构体",
|
13981
|
+
"members": [],
|
13982
|
+
"type": "object"
|
13983
|
+
},
|
13984
|
+
"ExportPrometheusReadOnlyDynamicAPIResponse": {
|
13985
|
+
"document": "ExportPrometheusReadOnlyDynamicAPI返回参数结构体",
|
13986
|
+
"members": [
|
13987
|
+
{
|
13988
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
13989
|
+
"member": "string",
|
13990
|
+
"name": "RequestId",
|
13991
|
+
"type": "string"
|
13992
|
+
}
|
13993
|
+
],
|
13994
|
+
"type": "object"
|
13995
|
+
},
|
13911
13996
|
"Filter": {
|
13912
13997
|
"document": "查询过滤参数",
|
13913
13998
|
"members": [
|
@@ -13983,7 +14068,7 @@
|
|
13983
14068
|
{
|
13984
14069
|
"disabled": false,
|
13985
14070
|
"document": "实例对象的维度组合,格式为key-value键值对形式的集合。不同类型的实例字段完全不同,如CVM为[{\"Name\":\"InstanceId\",\"Value\":\"ins-j0hk02zo\"}],Ckafka为[{\"Name\":\"instanceId\",\"Value\":\"ckafka-l49k54dd\"}],COS为[{\"Name\":\"appid\",\"Value\":\"1258344699\"},{\"Name\":\"bucket\",\"Value\":\"rig-1258344699\"}]。各个云产品的维度请参阅各个产品[监控指标](https://cloud.tencent.com/document/product/248/6140)文档,对应的维度列即为维度组合的key,value为key对应的值。单请求最多支持批量拉取10个实例的监控数据。",
|
13986
|
-
"example": "[{\"Dimensions\":[{\"Name\":\"uuid\",\"Value\":\"9f25c238-4e82-46e4-a0fe-76443480c8db\"}]}
|
14071
|
+
"example": "[{\"Dimensions\":[{\"Name\":\"uuid\",\"Value\":\"9f25c238-4e82-46e4-a0fe-76443480c8db\"}]}]",
|
13987
14072
|
"member": "Instance",
|
13988
14073
|
"name": "Instances",
|
13989
14074
|
"required": true,
|
@@ -14018,7 +14103,7 @@
|
|
14018
14103
|
},
|
14019
14104
|
{
|
14020
14105
|
"disabled": false,
|
14021
|
-
"document": "返回多种统计方式数据。avg, max, min (1,2,4)
|
14106
|
+
"document": "返回多种统计方式数据。avg, max, min (1,2,4)可以自由组合。注意: 仅支持对API配置文档中展示的统计方式返回对应的统计数据。如所需的统计方式不满足您的查询需求,请提工单反馈。",
|
14022
14107
|
"example": "1",
|
14023
14108
|
"member": "int64",
|
14024
14109
|
"name": "SpecifyStatistics",
|
@@ -14054,7 +14139,7 @@
|
|
14054
14139
|
{
|
14055
14140
|
"disabled": false,
|
14056
14141
|
"document": "数据点数组",
|
14057
|
-
"example": "
|
14142
|
+
"example": "[{\"Dimensions\":[{\"Name\":\"uuid\",\"Value\":\"9f25c238-4e82-46e4-a0fe-76443480c8db\"}],\"Timestamps\":[1535079000],\"Values\":[2.5]}]",
|
14058
14143
|
"member": "DataPoint",
|
14059
14144
|
"name": "DataPoints",
|
14060
14145
|
"output_required": true,
|
@@ -14084,7 +14169,7 @@
|
|
14084
14169
|
{
|
14085
14170
|
"disabled": false,
|
14086
14171
|
"document": "返回信息",
|
14087
|
-
"example": "
|
14172
|
+
"example": "请求缺少必传参数 `Instances` 。",
|
14088
14173
|
"member": "string",
|
14089
14174
|
"name": "Msg",
|
14090
14175
|
"output_required": true,
|
@@ -20177,6 +20262,32 @@
|
|
20177
20262
|
],
|
20178
20263
|
"usage": "out"
|
20179
20264
|
},
|
20265
|
+
"RegionPolicyObjectCount": {
|
20266
|
+
"document": "DescribePolicyObjectCount接口返回的地域统计",
|
20267
|
+
"members": [
|
20268
|
+
{
|
20269
|
+
"disabled": false,
|
20270
|
+
"document": "地域",
|
20271
|
+
"example": "",
|
20272
|
+
"member": "string",
|
20273
|
+
"name": "Region",
|
20274
|
+
"required": true,
|
20275
|
+
"type": "string",
|
20276
|
+
"value_allowed_null": false
|
20277
|
+
},
|
20278
|
+
{
|
20279
|
+
"disabled": false,
|
20280
|
+
"document": "绑定的实例数量",
|
20281
|
+
"example": "",
|
20282
|
+
"member": "int64",
|
20283
|
+
"name": "Count",
|
20284
|
+
"required": true,
|
20285
|
+
"type": "int",
|
20286
|
+
"value_allowed_null": false
|
20287
|
+
}
|
20288
|
+
],
|
20289
|
+
"usage": "out"
|
20290
|
+
},
|
20180
20291
|
"RemoteWrite": {
|
20181
20292
|
"document": "多写配置",
|
20182
20293
|
"members": [
|
@@ -21261,7 +21372,7 @@
|
|
21261
21372
|
"members": [
|
21262
21373
|
{
|
21263
21374
|
"disabled": false,
|
21264
|
-
"document": "Prometheus
|
21375
|
+
"document": "Prometheus 告警规则 ID",
|
21265
21376
|
"example": "arule-omq28fcm",
|
21266
21377
|
"member": "string",
|
21267
21378
|
"name": "RuleId",
|
@@ -21324,7 +21435,7 @@
|
|
21324
21435
|
},
|
21325
21436
|
{
|
21326
21437
|
"disabled": false,
|
21327
|
-
"document": "
|
21438
|
+
"document": "告警规则标签列表",
|
21328
21439
|
"example": "[{Key: \"ip\" Value: \"1.1.1.1\"}]",
|
21329
21440
|
"member": "PrometheusRuleKV",
|
21330
21441
|
"name": "Labels",
|
@@ -21333,7 +21444,7 @@
|
|
21333
21444
|
},
|
21334
21445
|
{
|
21335
21446
|
"disabled": false,
|
21336
|
-
"document": "
|
21447
|
+
"document": "告警规则注释列表。\n\n告警对象和告警消息是 Prometheus Rule Annotations 的特殊字段,需要通过 annotations 来传递,对应的 Key 分别为summary/description。",
|
21337
21448
|
"example": "[{Key: \"summary\" Value: \"规则名称\"}]",
|
21338
21449
|
"member": "PrometheusRuleKV",
|
21339
21450
|
"name": "Annotations",
|
@@ -21342,7 +21453,7 @@
|
|
21342
21453
|
},
|
21343
21454
|
{
|
21344
21455
|
"disabled": false,
|
21345
|
-
"document": "
|
21456
|
+
"document": "告警策略模板分类(自定义,可不填)",
|
21346
21457
|
"example": "TargetDown",
|
21347
21458
|
"member": "string",
|
21348
21459
|
"name": "Type",
|
@@ -802,6 +802,14 @@
|
|
802
802
|
"title": "获取头两个基础策略告警组列表"
|
803
803
|
}
|
804
804
|
],
|
805
|
+
"DescribePolicyObjectCount": [
|
806
|
+
{
|
807
|
+
"document": "",
|
808
|
+
"input": "https://monitor.tencentcloudapi.com/?Action=DescribePolicyObjectCount\r\n&Module=monitor\r\n&GroupId=111\r\n&<公共请求参数>",
|
809
|
+
"output": "{\n \"Response\": {\n \"IsMultiRegion\": true,\n \"RegionList\": [\n {\n \"Count\": 0,\n \"Region\": \"th\"\n },\n {\n \"Count\": 0,\n \"Region\": \"usw\"\n },\n {\n \"Count\": 0,\n \"Region\": \"in\"\n },\n {\n \"Count\": 0,\n \"Region\": \"ru\"\n },\n {\n \"Count\": 0,\n \"Region\": \"sh\"\n },\n {\n \"Count\": 1,\n \"Region\": \"gz\"\n },\n {\n \"Count\": 0,\n \"Region\": \"hzec\"\n },\n {\n \"Count\": 0,\n \"Region\": \"jp\"\n },\n {\n \"Count\": 0,\n \"Region\": \"kr\"\n },\n {\n \"Count\": 0,\n \"Region\": \"nj\"\n },\n {\n \"Count\": 0,\n \"Region\": \"shjr\"\n },\n {\n \"Count\": 0,\n \"Region\": \"szjr\"\n },\n {\n \"Count\": 0,\n \"Region\": \"tsn\"\n },\n {\n \"Count\": 0,\n \"Region\": \"ca\"\n },\n {\n \"Count\": 0,\n \"Region\": \"gzopen\"\n },\n {\n \"Count\": 0,\n \"Region\": \"jnec\"\n },\n {\n \"Count\": 0,\n \"Region\": \"de\"\n },\n {\n \"Count\": 0,\n \"Region\": \"hk\"\n },\n {\n \"Count\": 0,\n \"Region\": \"sg\"\n },\n {\n \"Count\": 0,\n \"Region\": \"use\"\n },\n {\n \"Count\": 0,\n \"Region\": \"bj\"\n },\n {\n \"Count\": 0,\n \"Region\": \"cd\"\n },\n {\n \"Count\": 0,\n \"Region\": \"cq\"\n }\n ],\n \"RequestId\": \"853dafdc-22d4-4e9d-88a7-ebc43abf7cef\"\n }\n}",
|
810
|
+
"title": "查询策略组在每个地域下面绑定的对象数统计"
|
811
|
+
}
|
812
|
+
],
|
805
813
|
"DescribeProductEventList": [
|
806
814
|
{
|
807
815
|
"document": "获取产品事件列表",
|
@@ -1064,6 +1072,14 @@
|
|
1064
1072
|
"title": "EnableSSOCamCheck"
|
1065
1073
|
}
|
1066
1074
|
],
|
1075
|
+
"ExportPrometheusReadOnlyDynamicAPI": [
|
1076
|
+
{
|
1077
|
+
"document": "```\nPath: api/v1/query\nMethod: GET POST\nQuery参数: \n 1. query = <string> prometheus查询表达式\n 2. time = <rfc3339 | unix_timestamp> 查询数据的时间\n 3. timeout = <duration> 超时时间 (1m / 5s / ...)\n响应体:\n{\n\t\"status\": \"success\" | \"error\",\n\t\"data\": {\n\t\t\"resultType\": \"matrix\" | \"vector\" | \"scalar\" | \"string\",\n\t\t\"result\": <value>\n\t},\n\t\n\t// 错误时返回\n\t\"errorType\": \"<string>\",\n\t\"error\": \"<string>\",\n\n\t// warning 信息\n\t\"warnings\": [\"<string>\"]\n}\n```\n查询结果result字段参考[prometheus点查询结果编码](https://prometheus.io/docs/prometheus/latest/querying/api/#expression-query-result-formats)",
|
1078
|
+
"input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ExportPrometheusReadOnlyDynamicAPI\n<公共请求参数>\n\n{}",
|
1079
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"8-ztbsc3gc2-rw6lzn4gfg5kuz6khrxg\"\n }\n}",
|
1080
|
+
"title": "点查询(Instant query)"
|
1081
|
+
}
|
1082
|
+
],
|
1067
1083
|
"GetMonitorData": [
|
1068
1084
|
{
|
1069
1085
|
"document": "拉取某台CDB实例某段时间内统计周期为5分钟的CPU利用率监控数据",
|
@@ -1335,7 +1351,7 @@
|
|
1335
1351
|
"document": "",
|
1336
1352
|
"input": "https://monitor.tencentcloudapi.com/?Action=UpdateAlertRule\n&InstanceId=my-prom-gg\n&RuleId=arule-omq28fcm\n&RuleState=2\n&RuleName=exampleName\n&Expr=job:request_latency_seconds:mean5m{job=\\\"myjob\\\"}>0.5\n&Duration=1m\n&Receivers.0=33432\n&<公共请求参数>",
|
1337
1353
|
"output": "{\n \"Response\": {\n \"RequestId\": \"qyh38g1ium4-41o5k994o7hcxuq96zab\",\n \"RuleId\": \"arule-omq28fcm\"\n }\n}",
|
1338
|
-
"title": "
|
1354
|
+
"title": "更新告警规则"
|
1339
1355
|
}
|
1340
1356
|
],
|
1341
1357
|
"UpdateAlertRuleState": [
|