tccli 3.0.1251.1__py2.py3-none-any.whl → 3.0.1252.1__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/aiart/v20221229/api.json +12 -3
  3. tccli/services/bi/v20220105/api.json +6 -6
  4. tccli/services/cat/v20180409/api.json +25 -24
  5. tccli/services/cat/v20180409/examples.json +17 -17
  6. tccli/services/ccc/ccc_client.py +53 -0
  7. tccli/services/ccc/v20200210/api.json +89 -0
  8. tccli/services/ccc/v20200210/examples.json +8 -0
  9. tccli/services/cdb/v20170320/api.json +12 -0
  10. tccli/services/cdwdoris/v20211228/api.json +233 -193
  11. tccli/services/cdwdoris/v20211228/examples.json +6 -6
  12. tccli/services/cloudaudit/v20190319/api.json +2 -2
  13. tccli/services/cloudaudit/v20190319/examples.json +2 -2
  14. tccli/services/config/v20220802/api.json +20 -9
  15. tccli/services/config/v20220802/examples.json +1 -1
  16. tccli/services/ess/v20201111/api.json +94 -92
  17. tccli/services/ess/v20201111/examples.json +9 -9
  18. tccli/services/essbasic/v20210526/api.json +2 -2
  19. tccli/services/essbasic/v20210526/examples.json +6 -6
  20. tccli/services/lcic/v20220817/api.json +1 -1
  21. tccli/services/monitor/v20180724/api.json +68 -50
  22. tccli/services/monitor/v20180724/examples.json +21 -21
  23. tccli/services/mps/mps_client.py +379 -61
  24. tccli/services/mps/v20190612/api.json +495 -13
  25. tccli/services/mps/v20190612/examples.json +48 -0
  26. tccli/services/ssl/v20191205/api.json +3 -3
  27. tccli/services/ssl/v20191205/examples.json +1 -1
  28. tccli/services/trtc/v20190722/api.json +11 -0
  29. tccli/services/tse/v20201207/api.json +10 -0
  30. tccli/services/wedata/v20210820/api.json +382 -96
  31. tccli/services/wedata/v20210820/examples.json +1 -1
  32. {tccli-3.0.1251.1.dist-info → tccli-3.0.1252.1.dist-info}/METADATA +2 -2
  33. {tccli-3.0.1251.1.dist-info → tccli-3.0.1252.1.dist-info}/RECORD +36 -36
  34. {tccli-3.0.1251.1.dist-info → tccli-3.0.1252.1.dist-info}/WHEEL +0 -0
  35. {tccli-3.0.1251.1.dist-info → tccli-3.0.1252.1.dist-info}/entry_points.txt +0 -0
  36. {tccli-3.0.1251.1.dist-info → tccli-3.0.1252.1.dist-info}/license_files/LICENSE +0 -0
@@ -890,7 +890,7 @@
890
890
  "status": "online"
891
891
  },
892
892
  "ModifyPrometheusRecordRuleYaml": {
893
- "document": "通过yaml的方式修改Prometheus聚合实例",
893
+ "document": "通过yaml的方式修改Prometheus预聚合规则",
894
894
  "input": "ModifyPrometheusRecordRuleYamlRequest",
895
895
  "name": "通过yaml的方式修改Prometheus聚合实例",
896
896
  "output": "ModifyPrometheusRecordRuleYamlResponse",
@@ -2558,9 +2558,10 @@
2558
2558
  {
2559
2559
  "disabled": false,
2560
2560
  "document": "用户名\n注意:此字段可能返回 null,表示取不到有效值。",
2561
- "example": "cherry",
2561
+ "example": "user-name",
2562
2562
  "member": "string",
2563
2563
  "name": "UserName",
2564
+ "output_required": true,
2564
2565
  "required": false,
2565
2566
  "type": "string",
2566
2567
  "value_allowed_null": true
@@ -2568,9 +2569,10 @@
2568
2569
  {
2569
2570
  "disabled": false,
2570
2571
  "document": "密码\n注意:此字段可能返回 null,表示取不到有效值。",
2571
- "example": "",
2572
+ "example": "user-password",
2572
2573
  "member": "string",
2573
2574
  "name": "Password",
2575
+ "output_required": true,
2574
2576
  "required": false,
2575
2577
  "type": "string",
2576
2578
  "value_allowed_null": true
@@ -3934,7 +3936,7 @@
3934
3936
  {
3935
3937
  "disabled": false,
3936
3938
  "document": "返回创建成功的集成名称列表",
3937
- "example": "",
3939
+ "example": "kafka-name",
3938
3940
  "member": "string",
3939
3941
  "name": "Names",
3940
3942
  "output_required": true,
@@ -4461,7 +4463,7 @@
4461
4463
  {
4462
4464
  "disabled": false,
4463
4465
  "document": "Agent 名称",
4464
- "example": "test",
4466
+ "example": "example",
4465
4467
  "member": "string",
4466
4468
  "name": "Name",
4467
4469
  "required": true,
@@ -4476,10 +4478,10 @@
4476
4478
  {
4477
4479
  "disabled": false,
4478
4480
  "document": "创建成功的 Agent Id",
4479
- "example": "",
4481
+ "example": "agent-abcd",
4480
4482
  "member": "string",
4481
4483
  "name": "AgentId",
4482
- "required": true,
4484
+ "output_required": true,
4483
4485
  "type": "string",
4484
4486
  "value_allowed_null": false
4485
4487
  },
@@ -4880,7 +4882,7 @@
4880
4882
  {
4881
4883
  "disabled": false,
4882
4884
  "document": "实例id",
4883
- "example": "prom-xxx",
4885
+ "example": "prom-abcd",
4884
4886
  "member": "string",
4885
4887
  "name": "InstanceId",
4886
4888
  "required": true,
@@ -4889,7 +4891,7 @@
4889
4891
  {
4890
4892
  "disabled": false,
4891
4893
  "document": "yaml的内容",
4892
- "example": "xxx",
4894
+ "example": " - name: example rules: - record: code:prometheus_http_requests_total:sum expr: sum by (code) (prometheus_http_requests_total)",
4893
4895
  "member": "string",
4894
4896
  "name": "Content",
4895
4897
  "required": true,
@@ -4898,7 +4900,7 @@
4898
4900
  {
4899
4901
  "disabled": false,
4900
4902
  "document": "规则名称",
4901
- "example": "xxx",
4903
+ "example": "example",
4902
4904
  "member": "string",
4903
4905
  "name": "Name",
4904
4906
  "required": false,
@@ -4925,7 +4927,7 @@
4925
4927
  {
4926
4928
  "disabled": false,
4927
4929
  "document": "Prometheus 实例 ID",
4928
- "example": "prom-id",
4930
+ "example": "prom-abcd",
4929
4931
  "member": "string",
4930
4932
  "name": "InstanceId",
4931
4933
  "required": true,
@@ -4934,7 +4936,7 @@
4934
4936
  {
4935
4937
  "disabled": false,
4936
4938
  "document": "Agent ID(可通过DescribePrometheusAgents 接口获取)",
4937
- "example": "agent-id",
4939
+ "example": "agent-asfd",
4938
4940
  "member": "string",
4939
4941
  "name": "AgentId",
4940
4942
  "required": true,
@@ -4958,7 +4960,7 @@
4958
4960
  {
4959
4961
  "disabled": false,
4960
4962
  "document": "成功创建抓取任务 Id",
4961
- "example": "",
4963
+ "example": "job-3er5",
4962
4964
  "member": "string",
4963
4965
  "name": "JobId",
4964
4966
  "output_required": true,
@@ -11481,7 +11483,7 @@
11481
11483
  {
11482
11484
  "disabled": false,
11483
11485
  "document": "实例 ID",
11484
- "example": "xx",
11486
+ "example": "prom-abcd",
11485
11487
  "member": "string",
11486
11488
  "name": "InstanceId",
11487
11489
  "required": true,
@@ -11490,7 +11492,7 @@
11490
11492
  {
11491
11493
  "disabled": false,
11492
11494
  "document": "Agent 名称",
11493
- "example": "",
11495
+ "example": "example",
11494
11496
  "member": "string",
11495
11497
  "name": "Name",
11496
11498
  "required": false,
@@ -11499,7 +11501,7 @@
11499
11501
  {
11500
11502
  "disabled": false,
11501
11503
  "document": "Agent ID 列表",
11502
- "example": "",
11504
+ "example": "agent-abcd",
11503
11505
  "member": "string",
11504
11506
  "name": "AgentIds",
11505
11507
  "required": false,
@@ -11508,7 +11510,7 @@
11508
11510
  {
11509
11511
  "disabled": false,
11510
11512
  "document": "偏移量,默认为0",
11511
- "example": "",
11513
+ "example": "0",
11512
11514
  "member": "int64",
11513
11515
  "name": "Offset",
11514
11516
  "required": false,
@@ -11517,7 +11519,7 @@
11517
11519
  {
11518
11520
  "disabled": false,
11519
11521
  "document": "返回数量,默认为20,最大值为100",
11520
- "example": "",
11522
+ "example": "10",
11521
11523
  "member": "int64",
11522
11524
  "name": "Limit",
11523
11525
  "required": false,
@@ -11938,7 +11940,7 @@
11938
11940
  {
11939
11941
  "disabled": false,
11940
11942
  "document": "实例级别抓取配置",
11941
- "example": "prom-xxx",
11943
+ "example": "prom-abcd",
11942
11944
  "member": "string",
11943
11945
  "name": "InstanceId",
11944
11946
  "required": true,
@@ -11962,7 +11964,7 @@
11962
11964
  {
11963
11965
  "disabled": false,
11964
11966
  "document": "配置内容",
11965
- "example": "xxxx",
11967
+ "example": "global: scrape_interval: 15s evaluation_interval: 15s scrape_configs: - job_name: \"prometheus\" static_configs: - targets: [\"localhost:9090\"] ",
11966
11968
  "member": "string",
11967
11969
  "name": "Config",
11968
11970
  "output_required": true,
@@ -12576,7 +12578,7 @@
12576
12578
  {
12577
12579
  "disabled": false,
12578
12580
  "document": "总数",
12579
- "example": "",
12581
+ "example": "1",
12580
12582
  "member": "uint64",
12581
12583
  "name": "Total",
12582
12584
  "output_required": true,
@@ -12911,7 +12913,7 @@
12911
12913
  {
12912
12914
  "disabled": false,
12913
12915
  "document": "地域 ID(RegionId 和 RegionName 只需要填一个)",
12914
- "example": "1234",
12916
+ "example": "1",
12915
12917
  "member": "int64",
12916
12918
  "name": "RegionId",
12917
12919
  "required": false,
@@ -12975,7 +12977,7 @@
12975
12977
  {
12976
12978
  "disabled": false,
12977
12979
  "document": "偏移量,默认为 0",
12978
- "example": "",
12980
+ "example": "0",
12979
12981
  "member": "int64",
12980
12982
  "name": "Offset",
12981
12983
  "required": false,
@@ -12984,7 +12986,7 @@
12984
12986
  {
12985
12987
  "disabled": false,
12986
12988
  "document": "规则 ID",
12987
- "example": "",
12989
+ "example": "rrule-abc",
12988
12990
  "member": "string",
12989
12991
  "name": "RuleId",
12990
12992
  "required": false,
@@ -13002,7 +13004,7 @@
13002
13004
  {
13003
13005
  "disabled": false,
13004
13006
  "document": "规则名称",
13005
- "example": "",
13007
+ "example": "example",
13006
13008
  "member": "string",
13007
13009
  "name": "Name",
13008
13010
  "required": false,
@@ -13700,8 +13702,7 @@
13700
13702
  "member": "string",
13701
13703
  "name": "Type",
13702
13704
  "required": false,
13703
- "type": "string",
13704
- "value_allowed_null": false
13705
+ "type": "string"
13705
13706
  },
13706
13707
  {
13707
13708
  "disabled": false,
@@ -13710,8 +13711,7 @@
13710
13711
  "member": "string",
13711
13712
  "name": "Key",
13712
13713
  "required": false,
13713
- "type": "string",
13714
- "value_allowed_null": false
13714
+ "type": "string"
13715
13715
  },
13716
13716
  {
13717
13717
  "disabled": false,
@@ -13720,18 +13720,16 @@
13720
13720
  "member": "string",
13721
13721
  "name": "Value",
13722
13722
  "required": false,
13723
- "type": "string",
13724
- "value_allowed_null": false
13723
+ "type": "string"
13725
13724
  },
13726
13725
  {
13727
13726
  "disabled": false,
13728
13727
  "document": "过滤条件名称",
13729
- "example": "abc",
13728
+ "example": "filter-name",
13730
13729
  "member": "string",
13731
13730
  "name": "Name",
13732
13731
  "required": false,
13733
- "type": "string",
13734
- "value_allowed_null": true
13732
+ "type": "string"
13735
13733
  },
13736
13734
  {
13737
13735
  "disabled": false,
@@ -13740,8 +13738,7 @@
13740
13738
  "member": "string",
13741
13739
  "name": "Values",
13742
13740
  "required": false,
13743
- "type": "list",
13744
- "value_allowed_null": true
13741
+ "type": "list"
13745
13742
  }
13746
13743
  ],
13747
13744
  "usage": "in"
@@ -16226,7 +16223,7 @@
16226
16223
  {
16227
16224
  "disabled": false,
16228
16225
  "document": "实例id",
16229
- "example": "prom-xxx",
16226
+ "example": "prom-abcd",
16230
16227
  "member": "string",
16231
16228
  "name": "InstanceId",
16232
16229
  "required": true,
@@ -16235,7 +16232,7 @@
16235
16232
  {
16236
16233
  "disabled": false,
16237
16234
  "document": "聚合实例名称",
16238
- "example": "xxx",
16235
+ "example": "example",
16239
16236
  "member": "string",
16240
16237
  "name": "Name",
16241
16238
  "required": true,
@@ -16244,7 +16241,7 @@
16244
16241
  {
16245
16242
  "disabled": false,
16246
16243
  "document": "新的内容",
16247
- "example": "xxx",
16244
+ "example": " - name: example rules: - record: code:prometheus_http_requests_total:sum expr: sum by (code) (prometheus_http_requests_total)",
16248
16245
  "member": "string",
16249
16246
  "name": "Content",
16250
16247
  "required": true,
@@ -16307,7 +16304,7 @@
16307
16304
  {
16308
16305
  "disabled": false,
16309
16306
  "document": "实例ID",
16310
- "example": "",
16307
+ "example": "prom-abcd",
16311
16308
  "member": "string",
16312
16309
  "name": "InstanceId",
16313
16310
  "required": true,
@@ -18383,7 +18380,7 @@
18383
18380
  {
18384
18381
  "disabled": false,
18385
18382
  "document": "该Job的targets列表",
18386
- "example": "xxx",
18383
+ "example": "[{\"LastScrape\":\"2024-06-19 16:22:26\",\"ScrapeDuration\":0.2,\"Url\":\"http://1.1.1.1:9000\",\"Labels\":[{\"Name\":\"label-name\",\"Value\":\"label-value\"}],\"State\":\"down\",\"Error\":\"scrape timeout\"}]",
18387
18384
  "member": "PrometheusTarget",
18388
18385
  "name": "Targets",
18389
18386
  "output_required": true,
@@ -18393,7 +18390,7 @@
18393
18390
  {
18394
18391
  "disabled": false,
18395
18392
  "document": "job的名称",
18396
- "example": "xxx",
18393
+ "example": "prom-job",
18397
18394
  "member": "string",
18398
18395
  "name": "JobName",
18399
18396
  "output_required": true,
@@ -18403,7 +18400,7 @@
18403
18400
  {
18404
18401
  "disabled": false,
18405
18402
  "document": "targets总数",
18406
- "example": "xxx",
18403
+ "example": "1",
18407
18404
  "member": "uint64",
18408
18405
  "name": "Total",
18409
18406
  "output_required": true,
@@ -18413,7 +18410,7 @@
18413
18410
  {
18414
18411
  "disabled": false,
18415
18412
  "document": "健康的target总数",
18416
- "example": "xxx",
18413
+ "example": "1",
18417
18414
  "member": "uint64",
18418
18415
  "name": "Up",
18419
18416
  "output_required": true,
@@ -18594,7 +18591,7 @@
18594
18591
  },
18595
18592
  {
18596
18593
  "disabled": false,
18597
- "document": "Yaml内容",
18594
+ "document": "如果该聚合规则来至模板,则TemplateId为模板id",
18598
18595
  "example": "temp-abc",
18599
18596
  "member": "string",
18600
18597
  "name": "TemplateId",
@@ -18604,8 +18601,8 @@
18604
18601
  },
18605
18602
  {
18606
18603
  "disabled": false,
18607
- "document": "如果该聚合规则来至模板,则TemplateId为模板id\n注意:此字段可能返回 null,表示取不到有效值。",
18608
- "example": "abc",
18604
+ "document": "Yaml内容\n注意:此字段可能返回 null,表示取不到有效值。",
18605
+ "example": "metadata:\\n name: tttttttt\\nspec:\\n groups:\\n - name: kube-apiserver.rules4\\n rules:\\n - expr: sum(metrics_test)\\n labels:\\n verb: read\\n record: apiserver_request:burnrate1d4",
18609
18606
  "member": "string",
18610
18607
  "name": "Content",
18611
18608
  "output_required": true,
@@ -18615,7 +18612,7 @@
18615
18612
  {
18616
18613
  "disabled": false,
18617
18614
  "document": "该聚合规则如果来源于用户集群crd资源定义,则ClusterId为所属集群ID\n注意:此字段可能返回 null,表示取不到有效值。",
18618
- "example": "cls-abc",
18615
+ "example": "cls-jsghgr",
18619
18616
  "member": "string",
18620
18617
  "name": "ClusterId",
18621
18618
  "output_required": true,
@@ -18635,7 +18632,7 @@
18635
18632
  {
18636
18633
  "disabled": false,
18637
18634
  "document": "id\n注意:此字段可能返回 null,表示取不到有效值。",
18638
- "example": "abc",
18635
+ "example": "rrule-djkrhbf",
18639
18636
  "member": "string",
18640
18637
  "name": "Id",
18641
18638
  "output_required": true,
@@ -18957,7 +18954,28 @@
18957
18954
  },
18958
18955
  "PrometheusTarget": {
18959
18956
  "document": "prometheus一个抓取目标的信息",
18960
- "members": [],
18957
+ "members": [
18958
+ {
18959
+ "disabled": false,
18960
+ "document": "抓取目标的URL",
18961
+ "example": "https://kubernetes.default.svc:443/api/v1/nodes/1.1.0.1/proxy/metrics",
18962
+ "member": "string",
18963
+ "name": "Url",
18964
+ "output_required": true,
18965
+ "type": "string",
18966
+ "value_allowed_null": false
18967
+ },
18968
+ {
18969
+ "disabled": false,
18970
+ "document": "target当前状态,当前支持\nup = 健康\ndown = 不健康\nunknown = 未知",
18971
+ "example": "up",
18972
+ "member": "string",
18973
+ "name": "State",
18974
+ "output_required": true,
18975
+ "type": "string",
18976
+ "value_allowed_null": false
18977
+ }
18978
+ ],
18961
18979
  "usage": "out"
18962
18980
  },
18963
18981
  "PrometheusTemp": {
@@ -85,8 +85,8 @@
85
85
  },
86
86
  {
87
87
  "document": "安装 免鉴权代理,可以免鉴权内网访问 Prometheus 原生 API。\n创建后可以调用 DescribeExporterIntegrations 接口,通过 InstanceDesc 参数获取集成的内网 IP:Port 地址,该地址可以代替 Prometheus 实例地址,实现免鉴权访问。\n参数说明:\n1. InstanceId 是 Prometheus 实例 ID,必填\n2. Kind 参数固定为 `raw-job`,必填\n3. Content 参数格式如示例。说明如下:\n3.1. kind 是集成类型,必填且这里固定为 `raw-job`\n3.2. spec.spec.job 是 Prometheus 原生抓取配置,yaml格式,必填。可参考[配置说明文档](https://cloud.tencent.com/document/product/1416/55995#.E5.8E.9F.E7.94.9F-job-.E9.85.8D.E7.BD.AE)",
88
- "input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateExporterIntegration\n<公共请求参数>\n\n{\n \"InstanceId\": \"prom-1\",\n \"Kind\": \"raw-job\",\n \"Content\": \"{\\\"kind\\\":\\\"raw-job\\\",\\\"spec\\\":{\\\"job\\\":\\\"job_name: test\\\\nscrape_interval: 30s\\\\nstatic_configs:\\\\n- targets:\\\\n - 127.0.0.1:9090\\\"}}\"\n}",
89
- "output": "{\n \"Response\": {\n \"Names\": [\n \"test\"\n ],\n \"RequestId\": \"xyz\"\n }\n}",
88
+ "input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateExporterIntegration\n<公共请求参数>\n\n{\n \"InstanceId\": \"prom-1\",\n \"Kind\": \"raw-job\",\n \"Content\": \"{\\\"kind\\\":\\\"raw-job\\\",\\\"spec\\\":{\\\"job\\\":\\\"job_name: test-job\\\\nscrape_interval: 30s\\\\nstatic_configs:\\\\n- targets:\\\\n - 127.0.0.1:9090\\\"}}\"\n}",
89
+ "output": "{\n \"Response\": {\n \"Names\": [\n \"test-job\"\n ],\n \"RequestId\": \"xyz\"\n }\n}",
90
90
  "title": "h. 创建 抓取任务"
91
91
  },
92
92
  {
@@ -133,8 +133,8 @@
133
133
  },
134
134
  {
135
135
  "document": "参数说明:\n1. InstanceId 是 Prometheus 实例 ID,必填\n2. Kind 参数固定为 `qcloud-exporter`,必填\n3. Content 参数格式如示例。说明如下:\n3.1. name 是集成名,必填且全局唯一,需要符合正则表达式`^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$`\n3.2. kind 是集成类型,必填且这里固定为 `qcloud-exporter`\n3.3. spec.instanceSpec.region 是云产品所在地域,必填,比如采集广州地域的云产品,可以填 `广州` 或 `ap-guangzhou`,该参数最终会转化为指标的 label, 名为 `instance-region`\n3.4. spec.instanceSpec.delaySeconds 表示数据采集延迟,整数,单位是秒,可不填,默认是 0。当值为 0 时,原始数据点的时间戳会被忽略,替换为集成拉取到数据点的时间;当值 >0 时,数据点会保留原始的时间戳,且数据必然会延迟设置的时间\n3.5. spec.instanceSpec.reload_interval_minutes 表示实例刷新间隔,整数,单位是分钟,必填且必须大于等于 10。云产品实例的新增或者云标签的修改,会在刷新实例后反映在指标中,至多需要等待一个实例刷新间隔\n3.6. spec.instanceSpec.useRole 表示是否使用服务角色,布尔类型,必填。当前逻辑一定会使用服务角色,所以必填 `true`\n3.7. spec.instanceSpec.labels 用于给指标添加自定义标签,键值对类型,选填\n3.8. spec.exporterSpec.[云产品] 表示是否采集对应云产品,布尔类型,`true` 表示采集该云产品。云产品各编码指代含义:`cvm`:云服务器,`cbs`:云硬盘,`lb_public`:负载均衡(公网),`lb_private`:负载均衡(内网),`tgw_set`:负载均衡(独占集群),`cmongo`:数据库MongoDB,`cdb`:数据库MySQL(CDB),`redis`:数据库Redis(CKV版),`redis_mem`:数据库Redis(内存版),`tendis`:Tendis,`xstor`:CTSDB(InfluxDB版),`mariadb`:数据库MariaDB,`postgres`:数据库PostgreSQL,`tdmysql`:TDSQL MySQL版,`cynosdb_mysql`:TDSQL-C MySQL,`sqlserver`:数据库SQL Server,`nat_gateway`:NAT网关,`ckafka`:CKafka,`rocketmq`:RocketMQ(新指标),`lb`:弹性公网IP,`vpngw`:VPN网关,`vpnx`:VPN通道,`vpc_net_detect`:网络探测,`cdn`:CDN,`ov_cdn`:CDN(海外),`cos`:COS,`dc`:专线接入-物理专线,`dcx`:专线接入-专用通道,`dcg`:专线接入-专线网关,`lighthouse`:轻量应用服务器,`nacos`:Nacos,`zookeeper`:Zookeeper,`ces`:Elasticsearch,`dts`:数据传输服务,`vbc`:云联网,`gaap`:全球应用加速,`waf`:Web应用防火墙,`cfs`:文件存储,`bwp`:共享带宽包,`scf_v2`:云函数(别名),`vod`:云点播(VOD),`cls`:日志服务(CLS)-日志主题,`apigateway`:API 网关,`ti_traintask`:TI-ONE(任务式建模),`ti_notebook`:TI-ONE(Notebook),`ti_model`:TI-ONE(在线服务),`self`:采集器自监控\n2.9. spec.scrapeSpec.relabelConfigs 用于添加 `metricRelabelings` 配置,选填。该配置是 prometheus-operator 的 relabel 配置,部分字段与 prometheus 原生 relabel 配置不同,具体可参考[官方配置说明](https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#monitoring.coreos.com/v1.RelabelConfig)",
136
- "input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateExporterIntegration\n<公共请求参数>\n\n{\n \"InstanceId\": \"prom-1\",\n \"Kind\": \"qcloud-exporter\",\n \"Content\": \"{\\\"name\\\":\\\"test\\\",\\\"kind\\\":\\\"qcloud-exporter\\\",\\\"spec\\\":{\\\"instanceSpec\\\":{\\\"region\\\":\\\"广州\\\",\\\"delaySeconds\\\":0,\\\"reload_interval_minutes\\\":10,\\\"useRole\\\":true,\\\"labels\\\":{\\\"labelKey\\\":\\\"labelValue\\\",\\\"test\\\":\\\"test\\\"}},\\\"exporterSpec\\\":{\\\"cvm\\\":true,\\\"cbs\\\":true},\\\"scrapeSpec\\\":{\\\"relabelConfigs\\\":\\\"metricRelabelings:\\\\n- action: labeldrop\\\\n regex: tmp_test_label\\\\n\\\"}}}\"\n}",
137
- "output": "{\n \"Response\": {\n \"Names\": [\n \"test\"\n ],\n \"RequestId\": \"xyz\"\n }\n}",
136
+ "input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateExporterIntegration\n<公共请求参数>\n\n{\n \"InstanceId\": \"prom-1\",\n \"Kind\": \"qcloud-exporter\",\n \"Content\": \"{\\\"name\\\":\\\"test-qcloud\\\",\\\"kind\\\":\\\"qcloud-exporter\\\",\\\"spec\\\":{\\\"instanceSpec\\\":{\\\"region\\\":\\\"广州\\\",\\\"delaySeconds\\\":0,\\\"reload_interval_minutes\\\":10,\\\"useRole\\\":true,\\\"labels\\\":{\\\"labelKey\\\":\\\"labelValue\\\",\\\"test\\\":\\\"test\\\"}},\\\"exporterSpec\\\":{\\\"cvm\\\":true,\\\"cbs\\\":true},\\\"scrapeSpec\\\":{\\\"relabelConfigs\\\":\\\"metricRelabelings:\\\\n- action: labeldrop\\\\n regex: tmp_test_label\\\\n\\\"}}}\"\n}",
137
+ "output": "{\n \"Response\": {\n \"Names\": [\n \"test-qcloud\"\n ],\n \"RequestId\": \"xyz\"\n }\n}",
138
138
  "title": "a. 创建 云监控 集成"
139
139
  },
140
140
  {
@@ -151,8 +151,8 @@
151
151
  },
152
152
  {
153
153
  "document": "参数说明:\n1. InstanceId 是 Prometheus 实例 ID,必填\n2. Kind 参数固定为 `blackbox-exporter`,必填\n3. Content 参数格式如示例。说明如下:\n3.1. name 是集成名,必填且全局唯一,需要符合正则表达式`^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$`\n3.2. kind 是集成类型,必填且这里固定为 `blackbox-exporter`\n3.3. spec.instanceSpec.module 是探测方式,必填,可选值为 `http_get`、`http_post`、`tcp`、`ssh`、`ping`\n3.4. spec.instanceSpec.urls 是探测目标,字符串数组,必填,目标格式可以是 host:port 或 http://abc 或 https://abc\n3.5. spec.instanceSpec.noAllowRedirect 可以控制是否禁止重定向,布尔类型,选填,仅对探测方式 `http_get` 和 `http_post` 生效,true 表示禁止重定向,可直接不填,默认为 false\n3.6. spec.instanceSpec.insecureSkipVerify 可以控制是否禁用目标证书验证,布尔类型,选填,仅对探测方式 `http_get` 和 `http_post` 生效,true 表示禁用目标证书验证,可直接不填,默认为 false\n3.7. spec.instanceSpec.headers 用于在探测目标时添加 header,键值对类型,选填,仅对探测方式 `http_get` 和 `http_post` 生效\n3.8. spec.instanceSpec.labels 用于给指标添加自定义标签,键值对类型,选填\n3.9. spec.scrapeSpec.interval 用于自定义探测间隔,选填,默认是 15s",
154
- "input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateExporterIntegration\n<公共请求参数>\n\n{\n \"InstanceId\": \"prom-1\",\n \"Kind\": \"blackbox-exporter\",\n \"Content\": \"{\\\"name\\\":\\\"test\\\",\\\"kind\\\":\\\"blackbox-exporter\\\",\\\"spec\\\":{\\\"instanceSpec\\\":{\\\"module\\\":\\\"http_get\\\",\\\"urls\\\":[\\\"host:port\\\",\\\"http://abc\\\",\\\"https://abc\\\"],\\\"noAllowRedirect\\\":false,\\\"insecureSkipVerify\\\":true,\\\"headers\\\":{\\\"Authorization\\\":\\\"Basic <Credentials>\\\",\\\"test\\\":\\\"test\\\"},\\\"labels\\\":{\\\"labelKey\\\":\\\"labelValue\\\",\\\"test\\\":\\\"test\\\"}},\\\"scrapeSpec\\\":{\\\"interval\\\":\\\"15s\\\"}}}\"\n}",
155
- "output": "{\n \"Response\": {\n \"Names\": [\n \"test\"\n ],\n \"RequestId\": \"xyz\"\n }\n}",
154
+ "input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateExporterIntegration\n<公共请求参数>\n\n{\n \"InstanceId\": \"prom-1\",\n \"Kind\": \"blackbox-exporter\",\n \"Content\": \"{\\\"name\\\":\\\"test-blackbox\\\",\\\"kind\\\":\\\"blackbox-exporter\\\",\\\"spec\\\":{\\\"instanceSpec\\\":{\\\"module\\\":\\\"http_get\\\",\\\"urls\\\":[\\\"host:port\\\",\\\"http://abc\\\",\\\"https://abc\\\"],\\\"noAllowRedirect\\\":false,\\\"insecureSkipVerify\\\":true,\\\"headers\\\":{\\\"Authorization\\\":\\\"Basic <Credentials>\\\",\\\"test\\\":\\\"test\\\"},\\\"labels\\\":{\\\"labelKey\\\":\\\"labelValue\\\",\\\"test\\\":\\\"test\\\"}},\\\"scrapeSpec\\\":{\\\"interval\\\":\\\"15s\\\"}}}\"\n}",
155
+ "output": "{\n \"Response\": {\n \"Names\": [\n \"test-blackbox\"\n ],\n \"RequestId\": \"xyz\"\n }\n}",
156
156
  "title": "d. 创建 健康巡检 集成"
157
157
  },
158
158
  {
@@ -233,8 +233,8 @@
233
233
  "CreatePrometheusAgent": [
234
234
  {
235
235
  "document": "",
236
- "input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreatePrometheusAgent\n<公共请求参数>\n\n{\n \"InstanceId\": \"prom-sd234234\",\n \"Name\": \"test\"\n}",
237
- "output": "{\n \"Response\": {\n \"AgentId\": \"agent-xxx\",\n \"RequestId\": \"3e0dff9d-9ed5-47c3-beb2-a42c1d69e1cc\"\n }\n}",
236
+ "input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreatePrometheusAgent\n<公共请求参数>\n\n{\n \"InstanceId\": \"prom-sd234234\",\n \"Name\": \"example\"\n}",
237
+ "output": "{\n \"Response\": {\n \"AgentId\": \"agent-abcd\",\n \"RequestId\": \"3e0dff9d-9ed5-47c3-beb2-a42c1d69e1cc\"\n }\n}",
238
238
  "title": "创建 Prometheus Agent"
239
239
  }
240
240
  ],
@@ -301,7 +301,7 @@
301
301
  "CreatePrometheusRecordRuleYaml": [
302
302
  {
303
303
  "document": "创建新的聚合规则",
304
- "input": "https://monitor.tencentcloudapi.com/?Action=CreatePrometheusRecordRuleYaml\n&InstanceId=prom-xxx\n&Content=xxxx\n&<公共请求参数>",
304
+ "input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreatePrometheusRecordRuleYaml\n<公共请求参数>\n\n{\n \"InstanceId\": \"prom-abcd\",\n \"Name\": \"example\",\n \"Content\": \"- name: example\\n rules:\\n - record: code:prometheus_http_requests_total:sum\\n expr: sum by (code) (prometheus_http_requests_total)\"\n}",
305
305
  "output": "{\n \"Response\": {\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\"\n }\n}",
306
306
  "title": "创建新的聚合规则"
307
307
  }
@@ -309,7 +309,7 @@
309
309
  "CreatePrometheusScrapeJob": [
310
310
  {
311
311
  "document": "",
312
- "input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreatePrometheusScrapeJob\n<公共请求参数>\n\n{\n \"InstanceId\": \"prom-abcd1234\",\n \"AgentId\": \"agent-abcd1234\",\n \"Config\": \"job_name: demo-config\\nhonor_timestamps: true\\nmetrics_path: /metrics\\nscheme: http\\nstatic_configs:\\n- targets:\\n - localhost:8080\"\n}",
312
+ "input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreatePrometheusScrapeJob\n<公共请求参数>\n\n{\n \"InstanceId\": \"prom-abcd\",\n \"AgentId\": \"agent-abcd\",\n \"Config\": \"job_name: demo-config\\nhonor_timestamps: true\\nmetrics_path: /metrics\\nscheme: http\\nstatic_configs:\\n- targets:\\n - localhost:8080\"\n}",
313
313
  "output": "{\n \"Response\": {\n \"JobId\": \"job-xxfs\",\n \"RequestId\": \"3e0dff9d-9ed5-47c3-beb2-a42c1d69e1cc\"\n }\n}",
314
314
  "title": "创建 Prometheus 抓取任务"
315
315
  }
@@ -861,8 +861,8 @@
861
861
  "DescribePrometheusGlobalConfig": [
862
862
  {
863
863
  "document": "获得实例级别监控配置",
864
- "input": "https://monitor.tencentcloudapi.com/?Action=DescribePrometheusGlobalConfig\n&InstanceId=prom-xxx\n&<公共请求参数>",
865
- "output": "{\n \"Response\": {\n \"Config\": \"abc\",\n \"ServiceMonitors\": [\n {\n \"Name\": \"test-sm\",\n \"Config\": \"scrape_interval:5s\\n\",\n \"TemplateId\": \"temp-akdj\",\n \"Targets\": {\n \"Total\": 1,\n \"Up\": 1,\n \"Down\": 1,\n \"Unknown\": 1\n }\n }\n ],\n \"PodMonitors\": [\n {\n \"Name\": \"test-pm\",\n \"Config\": \"scrape_interval:5s\\n\",\n \"TemplateId\": \"temp-akdj\",\n \"Targets\": {\n \"Total\": 1,\n \"Up\": 1,\n \"Down\": 1,\n \"Unknown\": 1\n }\n }\n ],\n \"RawJobs\": [\n {\n \"Name\": \"test-rawjob\",\n \"Config\": \"scrape_interval:5s\\n\",\n \"TemplateId\": \"temp-akdj\",\n \"Targets\": {\n \"Total\": 1,\n \"Up\": 1,\n \"Down\": 1,\n \"Unknown\": 1\n }\n }\n ],\n \"Probes\": [\n {\n \"Name\": \"test-probe\",\n \"Config\": \"scrape_interval:5s\\n\",\n \"TemplateId\": \"temp-akdj\",\n \"Targets\": {\n \"Total\": 1,\n \"Up\": 1,\n \"Down\": 1,\n \"Unknown\": 1\n }\n }\n ],\n \"RequestId\": \"abc\"\n }\n}",
864
+ "input": "https://monitor.tencentcloudapi.com/?Action=DescribePrometheusGlobalConfig\n&InstanceId=prom-abcd\n&<公共请求参数>",
865
+ "output": "{\n \"Response\": {\n \"Config\": \"global:\\n scrape_interval: 15s \\n evaluation_interval: 15s \\nscrape_configs:\\n - job_name: \\\"prometheus\\\"\\n static_configs:\\n - targets: [\\\"localhost:9090\\\"]\",\n \"ServiceMonitors\": [\n {\n \"Name\": \"test-sm\",\n \"Config\": \"scrape_interval:5s\\n\",\n \"TemplateId\": \"temp-akdj\",\n \"Targets\": {\n \"Total\": 1,\n \"Up\": 1,\n \"Down\": 1,\n \"Unknown\": 1\n }\n }\n ],\n \"PodMonitors\": [\n {\n \"Name\": \"test-pm\",\n \"Config\": \"scrape_interval:5s\\n\",\n \"TemplateId\": \"temp-akdj\",\n \"Targets\": {\n \"Total\": 1,\n \"Up\": 1,\n \"Down\": 1,\n \"Unknown\": 1\n }\n }\n ],\n \"RawJobs\": [\n {\n \"Name\": \"test-rawjob\",\n \"Config\": \"scrape_interval:5s\\n\",\n \"TemplateId\": \"temp-akdj\",\n \"Targets\": {\n \"Total\": 1,\n \"Up\": 1,\n \"Down\": 1,\n \"Unknown\": 1\n }\n }\n ],\n \"Probes\": [\n {\n \"Name\": \"test-probe\",\n \"Config\": \"scrape_interval:5s\\n\",\n \"TemplateId\": \"temp-akdj\",\n \"Targets\": {\n \"Total\": 1,\n \"Up\": 1,\n \"Down\": 1,\n \"Unknown\": 1\n }\n }\n ],\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\"\n }\n}",
866
866
  "title": "获得实例级别监控配置"
867
867
  }
868
868
  ],
@@ -924,7 +924,7 @@
924
924
  {
925
925
  "document": "拉取聚合规则",
926
926
  "input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribePrometheusRecordRules\n<公共请求参数>\n\n{\n \"InstanceId\": \"prom-22kxd343\"\n}",
927
- "output": "{\n \"Response\": {\n \"Records\": [\n {\n \"Content\": \"xdx\",\n \"UpdateTime\": \"xdx\",\n \"ClusterId\": \"xdx\",\n \"Name\": \"xdx\",\n \"TemplateId\": \"xdx\",\n \"Id\": \"de\",\n \"Status\": 1,\n \"Count\": 1\n }\n ],\n \"Total\": 1,\n \"RequestId\": \"xxx\"\n }\n}",
927
+ "output": "{\n \"Response\": {\n \"Records\": [\n {\n \"Content\": \"xdx\",\n \"UpdateTime\": \"xdx\",\n \"ClusterId\": \"xdx\",\n \"Name\": \"xdx\",\n \"TemplateId\": \"xdx\",\n \"Id\": \"de\",\n \"Status\": 1,\n \"Count\": 1\n }\n ],\n \"Total\": 1,\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\"\n }\n}",
928
928
  "title": "拉取聚合规则"
929
929
  }
930
930
  ],
@@ -948,7 +948,7 @@
948
948
  {
949
949
  "document": "获取targets列表",
950
950
  "input": "https://monitor.tencentcloudapi.com/?Action=DescribePrometheusTargetsTMP\n&InstanceId=prom-xxx\n&ClusterType=tke\n&ClusterId=cls-xxx\n&<公共请求参数>",
951
- "output": "{\n \"Response\": {\n \"Jobs\": [\n {\n \"Targets\": [\n {}\n ],\n \"Total\": 1,\n \"Up\": 0,\n \"JobName\": \"test-job\"\n }\n ],\n \"RequestId\": \"abc\"\n }\n}",
951
+ "output": "{\n \"Response\": {\n \"Jobs\": [\n {\n \"Targets\": [\n {\n \"Url\": \"http://1.1.1.1:9000\",\n \"State\": \"down\"\n }\n ],\n \"Total\": 1,\n \"Up\": 0,\n \"JobName\": \"test-job\"\n }\n ],\n \"RequestId\": \"abc\"\n }\n}",
952
952
  "title": "获取targets列表"
953
953
  }
954
954
  ],
@@ -972,7 +972,7 @@
972
972
  {
973
973
  "document": "列出 Prometheus 服务可用区",
974
974
  "input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribePrometheusZones\n<公共请求参数>\n\n{\n \"RegionId\": 1\n}",
975
- "output": "{\n \"Response\": {\n \"ZoneSet\": [\n {\n \"Zone\": \"abc\",\n \"ZoneId\": 0,\n \"ZoneState\": 0,\n \"RegionId\": 0,\n \"ZoneName\": \"abc\",\n \"ZoneResourceState\": 0\n }\n ],\n \"RequestId\": \"abc\"\n }\n}",
975
+ "output": "{\n \"Response\": {\n \"ZoneSet\": [\n {\n \"Zone\": \"ap-guangzhou-1\",\n \"ZoneId\": 0,\n \"ZoneState\": 0,\n \"RegionId\": 0,\n \"ZoneName\": \"广州一区\",\n \"ZoneResourceState\": 0\n }\n ],\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\"\n }\n}",
976
976
  "title": "列出 Prometheus 服务可用区"
977
977
  }
978
978
  ],
@@ -1204,10 +1204,10 @@
1204
1204
  ],
1205
1205
  "ModifyPrometheusRecordRuleYaml": [
1206
1206
  {
1207
- "document": "修改聚合规则",
1208
- "input": "https://monitor.tencentcloudapi.com/?Action=ModifyPrometheusRecordRuleYaml\n&InstanceId=prom-xxx\n&Name=sss\n&Content=xxx\n&<公共请求参数>",
1209
- "output": "{\n \"Response\": {\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\"\n }\n}",
1210
- "title": "修改聚合规则"
1207
+ "document": "修改实例预聚合规则",
1208
+ "input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyPrometheusRecordRuleYaml\n<公共请求参数>\n\n{\n \"InstanceId\": \"prom-abcd\",\n \"Name\": \"example\",\n \"Content\": \"- name: example\\n rules:\\n - record: code:prometheus_http_requests_total:sum\\n expr: sum by (code) (prometheus_http_requests_total)\"\n}",
1209
+ "output": "{\n \"Response\": {\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\"\n }\n}",
1210
+ "title": "修改实例预聚合规则"
1211
1211
  }
1212
1212
  ],
1213
1213
  "ModifyPrometheusTemp": [
@@ -1221,8 +1221,8 @@
1221
1221
  "ModifyRemoteURLs": [
1222
1222
  {
1223
1223
  "document": "修改多写配置",
1224
- "input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyRemoteURLs\n<公共请求参数>\n\n{\n \"InstanceId\": \"prom-m4qf27hg\",\n \"RemoteWrites\": [\n {\n \"URL\": \"http://172.30.0.9:9090/api/v1/prom/write\",\n \"BasicAuth\": {\n \"UserName\": \"cherry\",\n \"Password\": \"xxx\"\n }\n }\n ]\n}",
1225
- "output": "{\n \"Response\": {\n \"RequestId\": \"\"\n }\n}",
1224
+ "input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyRemoteURLs\n<公共请求参数>\n\n{\n \"InstanceId\": \"prom-m4qf27hg\",\n \"RemoteWrites\": [\n {\n \"URL\": \"http://172.30.0.9:9090/api/v1/prom/write\",\n \"BasicAuth\": {\n \"UserName\": \"user\",\n \"Password\": \"pass\"\n }\n }\n ]\n}",
1225
+ "output": "{\n \"Response\": {\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\"\n }\n}",
1226
1226
  "title": "修改多写配置"
1227
1227
  }
1228
1228
  ],