tccli 3.0.1250.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.
- tccli/__init__.py +1 -1
- tccli/services/aiart/v20221229/api.json +13 -4
- tccli/services/bi/v20220105/api.json +6 -6
- tccli/services/cat/v20180409/api.json +25 -24
- tccli/services/cat/v20180409/examples.json +17 -17
- tccli/services/ccc/ccc_client.py +53 -0
- tccli/services/ccc/v20200210/api.json +89 -0
- tccli/services/ccc/v20200210/examples.json +8 -0
- tccli/services/cdb/v20170320/api.json +12 -0
- tccli/services/cdn/v20180606/api.json +1 -1
- tccli/services/cdwdoris/v20211228/api.json +233 -193
- tccli/services/cdwdoris/v20211228/examples.json +6 -6
- tccli/services/cloudaudit/v20190319/api.json +2 -2
- tccli/services/cloudaudit/v20190319/examples.json +2 -2
- tccli/services/config/v20220802/api.json +20 -9
- tccli/services/config/v20220802/examples.json +1 -1
- tccli/services/dc/v20180410/api.json +13 -11
- tccli/services/dc/v20180410/examples.json +8 -2
- tccli/services/emr/v20190103/api.json +26 -21
- tccli/services/emr/v20190103/examples.json +2 -2
- tccli/services/ess/v20201111/api.json +474 -467
- tccli/services/ess/v20201111/examples.json +10 -10
- tccli/services/essbasic/v20210526/api.json +405 -408
- tccli/services/essbasic/v20210526/examples.json +12 -12
- tccli/services/hunyuan/v20230901/api.json +22 -0
- tccli/services/lcic/v20220817/api.json +1 -1
- tccli/services/monitor/v20180724/api.json +68 -50
- tccli/services/monitor/v20180724/examples.json +22 -22
- tccli/services/mps/mps_client.py +379 -61
- tccli/services/mps/v20190612/api.json +495 -13
- tccli/services/mps/v20190612/examples.json +48 -0
- tccli/services/nlp/v20190408/api.json +1 -1
- tccli/services/ocr/v20181119/api.json +7 -7
- tccli/services/ocr/v20181119/examples.json +6 -6
- tccli/services/pts/v20210728/api.json +589 -497
- tccli/services/pts/v20210728/examples.json +17 -17
- tccli/services/rum/v20210622/api.json +79 -19
- tccli/services/ssl/v20191205/api.json +3 -3
- tccli/services/ssl/v20191205/examples.json +1 -1
- tccli/services/teo/v20220901/api.json +10 -10
- tccli/services/trtc/v20190722/api.json +11 -0
- tccli/services/tse/v20201207/api.json +10 -0
- tccli/services/vpc/v20170312/api.json +1 -1
- tccli/services/wedata/v20210820/api.json +382 -96
- tccli/services/wedata/v20210820/examples.json +1 -1
- {tccli-3.0.1250.1.dist-info → tccli-3.0.1252.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1250.1.dist-info → tccli-3.0.1252.1.dist-info}/RECORD +50 -50
- {tccli-3.0.1250.1.dist-info → tccli-3.0.1252.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1250.1.dist-info → tccli-3.0.1252.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1250.1.dist-info → tccli-3.0.1252.1.dist-info}/license_files/LICENSE +0 -0
@@ -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\": \"
|
237
|
-
"output": "{\n \"Response\": {\n \"AgentId\": \"agent-
|
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": "
|
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-
|
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-
|
865
|
-
"output": "{\n \"Response\": {\n \"Config\": \"
|
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
|
],
|
@@ -908,7 +908,7 @@
|
|
908
908
|
{
|
909
909
|
"document": "",
|
910
910
|
"input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribePrometheusInstances\n<公共请求参数>\n\n{\n \"InstanceIds\": [\n \"prom-ncxkwqr8\"\n ]\n}",
|
911
|
-
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"InstanceSet\": [\n {\n \"InstanceName\": \"name\",\n \"InstanceChargeType\": 1,\n \"InstanceId\": \"prom-xxxxx\",\n \"InstanceStatus\": 1,\n \"RegionId\": 1,\n \"Zone\": \"ap-guangzhou-1\",\n \"GrafanaInstanceId\": \"
|
911
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"InstanceSet\": [\n {\n \"InstanceName\": \"name\",\n \"InstanceChargeType\": 1,\n \"InstanceId\": \"prom-xxxxx\",\n \"InstanceStatus\": 1,\n \"RegionId\": 1,\n \"Zone\": \"ap-guangzhou-1\",\n \"GrafanaInstanceId\": \"grafana-as2sad2\",\n \"AuthToken\": \"zh32ksa~wq(a\",\n \"RecordingRuleLimit\": 0,\n \"VpcId\": \"vpcID\",\n \"SubnetId\": \"subnetid\",\n \"MigrationType\": 0,\n \"IPv4Address\": \"\",\n \"RemoteWrite\": \"http://10.0.16.63:9090/api/v1/prom/write\",\n \"DataRetentionTime\": 30,\n \"EnableGrafana\": 0,\n \"ExpireTime\": \"2020-07-07T10:39:18Z\",\n \"SpecName\": \"共享版\",\n \"Grant\": {\n \"HasChargeOperation\": 0,\n \"HasVpcDisplay\": 0,\n \"HasGrafanaStatusChange\": 0,\n \"HasAgentManage\": 0,\n \"HasTkeManage\": 0,\n \"HasApiOperation\": 0\n },\n \"ProxyAddress\": \"10.0.16.63:9090\",\n \"IsNearExpire\": 0,\n \"GrafanaStatus\": 0,\n \"GrafanaIpWhiteList\": \"\",\n \"ApiRootPath\": \"10.0.16.63:9090\",\n \"TagSpecification\": [\n {\n \"Key\": \"creator\",\n \"Value\": \"tmp\"\n }\n ],\n \"AutoRenewFlag\": 0,\n \"AlertRuleLimit\": 0,\n \"ChargeStatus\": 0,\n \"GrafanaURL\": \"\",\n \"CreatedAt\": \"2020-07-07T10:39:18Z\"\n }\n ],\n \"RequestId\": \"3e0dff9d-9ed5-47c3-beb2-a42c1d69e1cc\"\n }\n}",
|
912
912
|
"title": "查看 Prometheus 实例列表"
|
913
913
|
}
|
914
914
|
],
|
@@ -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\": \"
|
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\": \"
|
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": "
|
1209
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"
|
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\": \"
|
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
|
],
|