tencentcloud-sdk-nodejs 4.0.419 → 4.0.422
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.
- package/CHANGELOG.md +766 -0
- package/SERVICE_CHANGELOG.md +998 -57
- package/package.json +1 -1
- package/products.md +28 -28
- package/src/common/sdk_version.ts +1 -1
- package/src/services/asr/v20190614/asr_models.ts +1 -1
- package/src/services/captcha/v20190722/captcha_models.ts +0 -1
- package/src/services/cdn/v20180606/cdn_models.ts +0 -1
- package/src/services/ckafka/v20190819/ckafka_client.ts +1 -0
- package/src/services/ckafka/v20190819/ckafka_models.ts +46 -1
- package/src/services/cls/v20201016/cls_models.ts +5 -0
- package/src/services/cvm/v20170312/cvm_models.ts +5 -0
- package/src/services/cwp/v20180228/cwp_client.ts +1 -0
- package/src/services/cwp/v20180228/cwp_models.ts +44 -1
- package/src/services/eb/v20210416/eb_models.ts +5 -0
- package/src/services/ess/v20201111/ess_models.ts +2 -2
- package/src/services/gs/v20191118/gs_client.ts +1 -1
- package/src/services/gs/v20191118/gs_models.ts +5 -0
- package/src/services/iotvideo/v20211125/iotvideo_models.ts +6 -0
- package/src/services/irp/v20220805/irp_client.ts +3 -3
- package/src/services/live/v20180801/live_client.ts +1 -1
- package/src/services/live/v20180801/live_models.ts +3 -3
- package/src/services/monitor/v20180724/monitor_client.ts +917 -500
- package/src/services/monitor/v20180724/monitor_models.ts +1820 -493
- package/src/services/partners/v20180321/partners_models.ts +5 -4
- package/src/services/pts/v20210728/pts_client.ts +1 -0
- package/src/services/pts/v20210728/pts_models.ts +20 -0
- package/src/services/taf/v20200210/taf_client.ts +5 -21
- package/src/services/taf/v20200210/taf_models.ts +42 -170
- package/src/services/tcaplusdb/v20190823/tcaplusdb_client.ts +2 -0
- package/src/services/tcaplusdb/v20190823/tcaplusdb_models.ts +81 -0
- package/src/services/tcb/v20180608/tcb_models.ts +12 -0
- package/src/services/tcbr/v20220217/tcbr_models.ts +5 -0
- package/src/services/tcss/v20201101/tcss_models.ts +24 -2
- package/src/services/teo/v20220106/teo_models.ts +284 -109
- package/src/services/tiia/v20190529/tiia_client.ts +4 -1
- package/src/services/tione/v20211111/tione_models.ts +2 -2
- package/src/services/tke/v20180525/tke_client.ts +3 -2
- package/src/services/tke/v20180525/tke_models.ts +46 -1
- package/src/services/vod/v20180717/vod_client.ts +15 -2
- package/src/services/vod/v20180717/vod_models.ts +124 -0
- package/src/services/yinsuda/v20220527/yinsuda_client.ts +46 -31
- package/src/services/yinsuda/v20220527/yinsuda_models.ts +236 -150
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/asr/v20190614/asr_models.d.ts +1 -1
- package/tencentcloud/services/captcha/v20190722/captcha_models.d.ts +0 -1
- package/tencentcloud/services/cdn/v20180606/cdn_models.d.ts +0 -1
- package/tencentcloud/services/ckafka/v20190819/ckafka_models.d.ts +39 -1
- package/tencentcloud/services/cls/v20201016/cls_models.d.ts +4 -0
- package/tencentcloud/services/cvm/v20170312/cvm_models.d.ts +5 -0
- package/tencentcloud/services/cwp/v20180228/cwp_models.d.ts +37 -1
- package/tencentcloud/services/eb/v20210416/eb_models.d.ts +4 -0
- package/tencentcloud/services/ess/v20201111/ess_models.d.ts +2 -2
- package/tencentcloud/services/gs/v20191118/gs_client.d.ts +1 -1
- package/tencentcloud/services/gs/v20191118/gs_client.js +1 -1
- package/tencentcloud/services/gs/v20191118/gs_models.d.ts +4 -0
- package/tencentcloud/services/iotvideo/v20211125/iotvideo_models.d.ts +5 -0
- package/tencentcloud/services/irp/v20220805/irp_client.d.ts +3 -3
- package/tencentcloud/services/irp/v20220805/irp_client.js +3 -3
- package/tencentcloud/services/live/v20180801/live_client.d.ts +1 -1
- package/tencentcloud/services/live/v20180801/live_client.js +1 -1
- package/tencentcloud/services/live/v20180801/live_models.d.ts +3 -3
- package/tencentcloud/services/monitor/v20180724/monitor_client.d.ts +305 -169
- package/tencentcloud/services/monitor/v20180724/monitor_client.js +449 -245
- package/tencentcloud/services/monitor/v20180724/monitor_models.d.ts +1520 -381
- package/tencentcloud/services/partners/v20180321/partners_models.d.ts +3 -2
- package/tencentcloud/services/pts/v20210728/pts_models.d.ts +17 -0
- package/tencentcloud/services/taf/v20200210/taf_client.d.ts +1 -5
- package/tencentcloud/services/taf/v20200210/taf_client.js +0 -6
- package/tencentcloud/services/taf/v20200210/taf_models.d.ts +37 -147
- package/tencentcloud/services/tcaplusdb/v20190823/tcaplusdb_models.d.ts +67 -0
- package/tencentcloud/services/tcb/v20180608/tcb_models.d.ts +10 -0
- package/tencentcloud/services/tcbr/v20220217/tcbr_models.d.ts +4 -0
- package/tencentcloud/services/tcss/v20201101/tcss_models.d.ts +21 -1
- package/tencentcloud/services/teo/v20220106/teo_models.d.ts +241 -92
- package/tencentcloud/services/tiia/v20190529/tiia_client.d.ts +4 -1
- package/tencentcloud/services/tiia/v20190529/tiia_client.js +4 -1
- package/tencentcloud/services/tione/v20211111/tione_models.d.ts +2 -2
- package/tencentcloud/services/tke/v20180525/tke_client.d.ts +2 -2
- package/tencentcloud/services/tke/v20180525/tke_client.js +1 -1
- package/tencentcloud/services/tke/v20180525/tke_models.d.ts +39 -1
- package/tencentcloud/services/vod/v20180717/vod_client.d.ts +7 -3
- package/tencentcloud/services/vod/v20180717/vod_client.js +8 -2
- package/tencentcloud/services/vod/v20180717/vod_models.d.ts +104 -0
- package/tencentcloud/services/yinsuda/v20220527/yinsuda_client.d.ts +13 -9
- package/tencentcloud/services/yinsuda/v20220527/yinsuda_client.js +18 -12
- package/tencentcloud/services/yinsuda/v20220527/yinsuda_models.d.ts +212 -138
- package/test/monitor.v20180724.test.js +492 -152
- package/test/taf.v20200210.test.js +0 -10
- package/test/vod.v20180717.test.js +10 -0
- package/test/yinsuda.v20220527.test.js +18 -8
|
@@ -28,28 +28,10 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
28
28
|
super("monitor.tencentcloudapi.com", "2018-07-24", clientConfig);
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
32
|
-
默认单租户指标上限:100个。
|
|
33
|
-
单次上报最多 30 个指标/值对,请求返回错误时,请求中所有的指标/值均不会被保存。
|
|
34
|
-
|
|
35
|
-
上报的时间戳为期望保存的时间戳,建议构造整数分钟时刻的时间戳。
|
|
36
|
-
时间戳时间范围必须为当前时间到 300 秒前之间。
|
|
37
|
-
同一 IP 指标对的数据需按分钟先后顺序上报。
|
|
38
|
-
*/
|
|
39
|
-
async PutMonitorData(req, cb) {
|
|
40
|
-
return this.request("PutMonitorData", req, cb);
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* 查询告警策略列表
|
|
44
|
-
*/
|
|
45
|
-
async DescribeAlarmPolicies(req, cb) {
|
|
46
|
-
return this.request("DescribeAlarmPolicies", req, cb);
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* 删除策略的关联对象
|
|
31
|
+
* 更新 Grafana 告警通道
|
|
50
32
|
*/
|
|
51
|
-
async
|
|
52
|
-
return this.request("
|
|
33
|
+
async UpdateGrafanaNotificationChannel(req, cb) {
|
|
34
|
+
return this.request("UpdateGrafanaNotificationChannel", req, cb);
|
|
53
35
|
}
|
|
54
36
|
/**
|
|
55
37
|
* 创建 Prometheus 告警规则。
|
|
@@ -59,18 +41,6 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
59
41
|
async CreateAlertRule(req, cb) {
|
|
60
42
|
return this.request("CreateAlertRule", req, cb);
|
|
61
43
|
}
|
|
62
|
-
/**
|
|
63
|
-
* 发送自定义消息告警
|
|
64
|
-
*/
|
|
65
|
-
async SendCustomAlarmMsg(req, cb) {
|
|
66
|
-
return this.request("SendCustomAlarmMsg", req, cb);
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* 获取条件模板列表
|
|
70
|
-
*/
|
|
71
|
-
async DescribeConditionsTemplateList(req, cb) {
|
|
72
|
-
return this.request("DescribeConditionsTemplateList", req, cb);
|
|
73
|
-
}
|
|
74
44
|
/**
|
|
75
45
|
* 获取已绑定对象列表
|
|
76
46
|
*/
|
|
@@ -78,103 +48,96 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
78
48
|
return this.request("DescribeBindingPolicyObjectList", req, cb);
|
|
79
49
|
}
|
|
80
50
|
/**
|
|
81
|
-
*
|
|
51
|
+
* 更新 Prometheus 的报警规则。
|
|
52
|
+
|
|
53
|
+
请注意,**告警对象和告警消息是 Prometheus Rule Annotations 的特殊字段,需要通过 annotations 来传递,对应的 Key 分别为summary/description**,,请参考 [Prometheus Rule更多配置请参考](https://prometheus.io/docs/prometheus/latest/configuration/alerting_rules/)。
|
|
82
54
|
*/
|
|
83
|
-
async
|
|
84
|
-
return this.request("
|
|
55
|
+
async UpdateAlertRule(req, cb) {
|
|
56
|
+
return this.request("UpdateAlertRule", req, cb);
|
|
85
57
|
}
|
|
86
58
|
/**
|
|
87
|
-
*
|
|
59
|
+
* 修改告警接收人
|
|
88
60
|
*/
|
|
89
|
-
async
|
|
90
|
-
return this.request("
|
|
61
|
+
async ModifyAlarmReceivers(req, cb) {
|
|
62
|
+
return this.request("ModifyAlarmReceivers", req, cb);
|
|
91
63
|
}
|
|
92
64
|
/**
|
|
93
|
-
*
|
|
94
|
-
<p>注意:前提条件,已经通过 Prometheus 控制台集成了对应的腾讯云容器服务,具体请参考
|
|
95
|
-
<a href="https://cloud.tencent.com/document/product/248/48859" target="_blank">Agent 安装</a>。</p>
|
|
65
|
+
* 将告警策略绑定到特定对象
|
|
96
66
|
*/
|
|
97
|
-
async
|
|
98
|
-
return this.request("
|
|
67
|
+
async BindingPolicyObject(req, cb) {
|
|
68
|
+
return this.request("BindingPolicyObject", req, cb);
|
|
99
69
|
}
|
|
100
70
|
/**
|
|
101
|
-
*
|
|
71
|
+
* 创建 Grafana 实例
|
|
102
72
|
*/
|
|
103
|
-
async
|
|
104
|
-
return this.request("
|
|
73
|
+
async CreateGrafanaInstance(req, cb) {
|
|
74
|
+
return this.request("CreateGrafanaInstance", req, cb);
|
|
105
75
|
}
|
|
106
76
|
/**
|
|
107
|
-
*
|
|
77
|
+
* 获取基础告警列表
|
|
108
78
|
*/
|
|
109
|
-
async
|
|
110
|
-
return this.request("
|
|
79
|
+
async DescribeBasicAlarmList(req, cb) {
|
|
80
|
+
return this.request("DescribeBasicAlarmList", req, cb);
|
|
111
81
|
}
|
|
112
82
|
/**
|
|
113
|
-
*
|
|
83
|
+
* 查询云监控产品列表,支持云服务器CVM、云数据库、云消息队列、负载均衡、容器服务、专线等云产品。
|
|
114
84
|
*/
|
|
115
|
-
async
|
|
116
|
-
return this.request("
|
|
85
|
+
async DescribeProductList(req, cb) {
|
|
86
|
+
return this.request("DescribeProductList", req, cb);
|
|
117
87
|
}
|
|
118
88
|
/**
|
|
119
|
-
*
|
|
89
|
+
* 更新已授权账号的备注、权限信息,会直接覆盖原有的信息,不传则不会更新。
|
|
120
90
|
*/
|
|
121
|
-
async
|
|
122
|
-
return this.request("
|
|
91
|
+
async UpdateSSOAccount(req, cb) {
|
|
92
|
+
return this.request("UpdateSSOAccount", req, cb);
|
|
123
93
|
}
|
|
124
94
|
/**
|
|
125
|
-
*
|
|
126
|
-
传入产品的命名空间、对象维度描述和监控指标即可获得相应的监控数据。
|
|
127
|
-
接口调用频率限制为:20次/秒,1200次/分钟。单请求最多可支持批量拉取10个实例的监控数据,单请求的数据点数限制为1440个。
|
|
128
|
-
若您需要调用的指标、对象较多,可能存在因限频出现拉取失败的情况,建议尽量将请求按时间维度均摊。
|
|
95
|
+
* 列出 Grafana 环境变量
|
|
129
96
|
*/
|
|
130
|
-
async
|
|
131
|
-
return this.request("
|
|
97
|
+
async DescribeGrafanaEnvironments(req, cb) {
|
|
98
|
+
return this.request("DescribeGrafanaEnvironments", req, cb);
|
|
132
99
|
}
|
|
133
100
|
/**
|
|
134
|
-
*
|
|
101
|
+
* 更新 Prometheus 的预聚合规则
|
|
135
102
|
*/
|
|
136
|
-
async
|
|
137
|
-
return this.request("
|
|
103
|
+
async UpdateRecordingRule(req, cb) {
|
|
104
|
+
return this.request("UpdateRecordingRule", req, cb);
|
|
138
105
|
}
|
|
139
106
|
/**
|
|
140
|
-
*
|
|
141
|
-
<ul>
|
|
142
|
-
<li>可以根据实例ID、实例名称或者实例状态等信息来查询实例的详细信息</li>
|
|
143
|
-
<li>如果参数为空,返回当前用户一定数量(Limit所指定的数量,默认为20)的实例。</li>
|
|
144
|
-
</ul>
|
|
107
|
+
* 删除 Grafana 告警通道
|
|
145
108
|
*/
|
|
146
|
-
async
|
|
147
|
-
return this.request("
|
|
109
|
+
async DeleteGrafanaNotificationChannel(req, cb) {
|
|
110
|
+
return this.request("DeleteGrafanaNotificationChannel", req, cb);
|
|
148
111
|
}
|
|
149
112
|
/**
|
|
150
|
-
*
|
|
113
|
+
* 列出 Grafana 的设置,即 grafana.ini 文件内容
|
|
151
114
|
*/
|
|
152
|
-
async
|
|
153
|
-
return this.request("
|
|
115
|
+
async DescribeGrafanaConfig(req, cb) {
|
|
116
|
+
return this.request("DescribeGrafanaConfig", req, cb);
|
|
154
117
|
}
|
|
155
118
|
/**
|
|
156
|
-
*
|
|
119
|
+
* 批量删除 Prometheus 报警规则
|
|
157
120
|
*/
|
|
158
|
-
async
|
|
159
|
-
return this.request("
|
|
121
|
+
async DeleteAlertRules(req, cb) {
|
|
122
|
+
return this.request("DeleteAlertRules", req, cb);
|
|
160
123
|
}
|
|
161
124
|
/**
|
|
162
|
-
*
|
|
125
|
+
* 启停告警策略
|
|
163
126
|
*/
|
|
164
|
-
async
|
|
165
|
-
return this.request("
|
|
127
|
+
async ModifyAlarmPolicyStatus(req, cb) {
|
|
128
|
+
return this.request("ModifyAlarmPolicyStatus", req, cb);
|
|
166
129
|
}
|
|
167
130
|
/**
|
|
168
|
-
*
|
|
131
|
+
* 删除 Prometheus 抓取任务
|
|
169
132
|
*/
|
|
170
|
-
async
|
|
171
|
-
return this.request("
|
|
133
|
+
async DeletePrometheusScrapeJobs(req, cb) {
|
|
134
|
+
return this.request("DeletePrometheusScrapeJobs", req, cb);
|
|
172
135
|
}
|
|
173
136
|
/**
|
|
174
|
-
*
|
|
137
|
+
* 设置 Grafana 单点登录,使用腾讯云账号
|
|
175
138
|
*/
|
|
176
|
-
async
|
|
177
|
-
return this.request("
|
|
139
|
+
async EnableGrafanaSSO(req, cb) {
|
|
140
|
+
return this.request("EnableGrafanaSSO", req, cb);
|
|
178
141
|
}
|
|
179
142
|
/**
|
|
180
143
|
* 告警2.0编辑告警策略基本信息,包括策略名、备注
|
|
@@ -183,132 +146,120 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
183
146
|
return this.request("ModifyAlarmPolicyInfo", req, cb);
|
|
184
147
|
}
|
|
185
148
|
/**
|
|
186
|
-
*
|
|
187
|
-
*/
|
|
188
|
-
async CreateAlarmNotice(req, cb) {
|
|
189
|
-
return this.request("CreateAlarmNotice", req, cb);
|
|
190
|
-
}
|
|
191
|
-
/**
|
|
192
|
-
* 更新 Prometheus 报警策略状态
|
|
193
|
-
*/
|
|
194
|
-
async UpdateAlertRuleState(req, cb) {
|
|
195
|
-
return this.request("UpdateAlertRuleState", req, cb);
|
|
196
|
-
}
|
|
197
|
-
/**
|
|
198
|
-
* 更新 exporter 集成配置
|
|
149
|
+
* 获取基础指标属性
|
|
199
150
|
*/
|
|
200
|
-
async
|
|
201
|
-
return this.request("
|
|
151
|
+
async DescribeBaseMetrics(req, cb) {
|
|
152
|
+
return this.request("DescribeBaseMetrics", req, cb);
|
|
202
153
|
}
|
|
203
154
|
/**
|
|
204
|
-
*
|
|
155
|
+
* 查询告警事件列表
|
|
205
156
|
*/
|
|
206
|
-
async
|
|
207
|
-
return this.request("
|
|
157
|
+
async DescribeAlarmEvents(req, cb) {
|
|
158
|
+
return this.request("DescribeAlarmEvents", req, cb);
|
|
208
159
|
}
|
|
209
160
|
/**
|
|
210
|
-
*
|
|
161
|
+
* 云监控告警删除告警通知模板
|
|
211
162
|
*/
|
|
212
|
-
async
|
|
213
|
-
return this.request("
|
|
163
|
+
async DeleteAlarmNotices(req, cb) {
|
|
164
|
+
return this.request("DeleteAlarmNotices", req, cb);
|
|
214
165
|
}
|
|
215
166
|
/**
|
|
216
|
-
*
|
|
167
|
+
* 云监控告警编辑告警通知模板
|
|
217
168
|
*/
|
|
218
|
-
async
|
|
219
|
-
return this.request("
|
|
169
|
+
async ModifyAlarmNotice(req, cb) {
|
|
170
|
+
return this.request("ModifyAlarmNotice", req, cb);
|
|
220
171
|
}
|
|
221
172
|
/**
|
|
222
|
-
*
|
|
173
|
+
* 创建 Prometheus 抓取任务
|
|
223
174
|
*/
|
|
224
|
-
async
|
|
225
|
-
return this.request("
|
|
175
|
+
async CreatePrometheusScrapeJob(req, cb) {
|
|
176
|
+
return this.request("CreatePrometheusScrapeJob", req, cb);
|
|
226
177
|
}
|
|
227
178
|
/**
|
|
228
|
-
*
|
|
179
|
+
* 删除策略的关联对象
|
|
229
180
|
*/
|
|
230
|
-
async
|
|
231
|
-
return this.request("
|
|
181
|
+
async UnBindingPolicyObject(req, cb) {
|
|
182
|
+
return this.request("UnBindingPolicyObject", req, cb);
|
|
232
183
|
}
|
|
233
184
|
/**
|
|
234
|
-
*
|
|
185
|
+
* 获取条件模板列表
|
|
235
186
|
*/
|
|
236
|
-
async
|
|
237
|
-
return this.request("
|
|
187
|
+
async DescribeConditionsTemplateList(req, cb) {
|
|
188
|
+
return this.request("DescribeConditionsTemplateList", req, cb);
|
|
238
189
|
}
|
|
239
190
|
/**
|
|
240
|
-
*
|
|
191
|
+
* 列出 Prometheus 抓取任务
|
|
241
192
|
*/
|
|
242
|
-
async
|
|
243
|
-
return this.request("
|
|
193
|
+
async DescribePrometheusScrapeJobs(req, cb) {
|
|
194
|
+
return this.request("DescribePrometheusScrapeJobs", req, cb);
|
|
244
195
|
}
|
|
245
196
|
/**
|
|
246
|
-
*
|
|
197
|
+
* 删除在腾讯云容器服务下创建的 Prometheus 服务发现。
|
|
247
198
|
<p>注意:前提条件,已经通过 Prometheus 控制台集成了对应的腾讯云容器服务,具体请参考
|
|
248
199
|
<a href="https://cloud.tencent.com/document/product/248/48859" target="_blank">Agent 安装</a>。</p>
|
|
249
200
|
*/
|
|
250
|
-
async
|
|
251
|
-
return this.request("
|
|
201
|
+
async DeleteServiceDiscovery(req, cb) {
|
|
202
|
+
return this.request("DeleteServiceDiscovery", req, cb);
|
|
252
203
|
}
|
|
253
204
|
/**
|
|
254
|
-
*
|
|
205
|
+
* 创建按量 Prometheus 实例,根据用量收费实例
|
|
255
206
|
*/
|
|
256
|
-
async
|
|
257
|
-
return this.request("
|
|
207
|
+
async CreatePrometheusMultiTenantInstancePostPayMode(req, cb) {
|
|
208
|
+
return this.request("CreatePrometheusMultiTenantInstancePostPayMode", req, cb);
|
|
258
209
|
}
|
|
259
210
|
/**
|
|
260
|
-
*
|
|
211
|
+
* 更新 Grafana 环境变量
|
|
261
212
|
*/
|
|
262
|
-
async
|
|
263
|
-
return this.request("
|
|
213
|
+
async UpdateGrafanaEnvironments(req, cb) {
|
|
214
|
+
return this.request("UpdateGrafanaEnvironments", req, cb);
|
|
264
215
|
}
|
|
265
216
|
/**
|
|
266
|
-
*
|
|
217
|
+
* 获取基础告警策略条件
|
|
267
218
|
*/
|
|
268
|
-
async
|
|
269
|
-
return this.request("
|
|
219
|
+
async DescribePolicyConditionList(req, cb) {
|
|
220
|
+
return this.request("DescribePolicyConditionList", req, cb);
|
|
270
221
|
}
|
|
271
222
|
/**
|
|
272
|
-
*
|
|
223
|
+
* 修改告警策略触发条件
|
|
273
224
|
*/
|
|
274
|
-
async
|
|
275
|
-
return this.request("
|
|
225
|
+
async ModifyAlarmPolicyCondition(req, cb) {
|
|
226
|
+
return this.request("ModifyAlarmPolicyCondition", req, cb);
|
|
276
227
|
}
|
|
277
228
|
/**
|
|
278
|
-
*
|
|
229
|
+
* 获取 Prometheus Agent 管理相关的命令行
|
|
279
230
|
*/
|
|
280
|
-
async
|
|
281
|
-
return this.request("
|
|
231
|
+
async GetPrometheusAgentManagementCommand(req, cb) {
|
|
232
|
+
return this.request("GetPrometheusAgentManagementCommand", req, cb);
|
|
282
233
|
}
|
|
283
234
|
/**
|
|
284
|
-
*
|
|
235
|
+
* 更新 Prometheus 抓取任务
|
|
285
236
|
*/
|
|
286
|
-
async
|
|
287
|
-
return this.request("
|
|
237
|
+
async UpdatePrometheusScrapeJob(req, cb) {
|
|
238
|
+
return this.request("UpdatePrometheusScrapeJob", req, cb);
|
|
288
239
|
}
|
|
289
240
|
/**
|
|
290
|
-
*
|
|
241
|
+
* 升级 Grafana 实例
|
|
291
242
|
*/
|
|
292
|
-
async
|
|
293
|
-
return this.request("
|
|
243
|
+
async UpgradeGrafanaInstance(req, cb) {
|
|
244
|
+
return this.request("UpgradeGrafanaInstance", req, cb);
|
|
294
245
|
}
|
|
295
246
|
/**
|
|
296
|
-
*
|
|
247
|
+
* 删除 Grafana 集成配置
|
|
297
248
|
*/
|
|
298
|
-
async
|
|
299
|
-
return this.request("
|
|
249
|
+
async DeleteGrafanaIntegration(req, cb) {
|
|
250
|
+
return this.request("DeleteGrafanaIntegration", req, cb);
|
|
300
251
|
}
|
|
301
252
|
/**
|
|
302
|
-
*
|
|
253
|
+
* 绑定 Grafana 可视化服务实例
|
|
303
254
|
*/
|
|
304
|
-
async
|
|
305
|
-
return this.request("
|
|
255
|
+
async BindPrometheusManagedGrafana(req, cb) {
|
|
256
|
+
return this.request("BindPrometheusManagedGrafana", req, cb);
|
|
306
257
|
}
|
|
307
258
|
/**
|
|
308
|
-
*
|
|
259
|
+
* 删除全部的关联对象
|
|
309
260
|
*/
|
|
310
|
-
async
|
|
311
|
-
return this.request("
|
|
261
|
+
async UnBindingAllPolicyObject(req, cb) {
|
|
262
|
+
return this.request("UnBindingAllPolicyObject", req, cb);
|
|
312
263
|
}
|
|
313
264
|
/**
|
|
314
265
|
* 删除告警策略组
|
|
@@ -316,12 +267,6 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
316
267
|
async DeletePolicyGroup(req, cb) {
|
|
317
268
|
return this.request("DeletePolicyGroup", req, cb);
|
|
318
269
|
}
|
|
319
|
-
/**
|
|
320
|
-
* 获取 Prometheus Agent 管理相关的命令行
|
|
321
|
-
*/
|
|
322
|
-
async GetPrometheusAgentManagementCommand(req, cb) {
|
|
323
|
-
return this.request("GetPrometheusAgentManagementCommand", req, cb);
|
|
324
|
-
}
|
|
325
270
|
/**
|
|
326
271
|
* 在腾讯云容器服务下更新 Prometheus 服务发现。
|
|
327
272
|
<p>注意:前提条件,已经通过 Prometheus 控制台集成了对应的腾讯云容器服务,具体请参考
|
|
@@ -330,12 +275,6 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
330
275
|
async UpdateServiceDiscovery(req, cb) {
|
|
331
276
|
return this.request("UpdateServiceDiscovery", req, cb);
|
|
332
277
|
}
|
|
333
|
-
/**
|
|
334
|
-
* 云监控告警编辑告警通知模板
|
|
335
|
-
*/
|
|
336
|
-
async ModifyAlarmNotice(req, cb) {
|
|
337
|
-
return this.request("ModifyAlarmNotice", req, cb);
|
|
338
|
-
}
|
|
339
278
|
/**
|
|
340
279
|
* 云监控支持多种类型的监控,此接口列出支持的所有类型
|
|
341
280
|
*/
|
|
@@ -343,12 +282,16 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
343
282
|
return this.request("DescribeMonitorTypes", req, cb);
|
|
344
283
|
}
|
|
345
284
|
/**
|
|
346
|
-
*
|
|
347
|
-
|
|
348
|
-
请注意,**告警对象和告警消息是 Prometheus Rule Annotations 的特殊字段,需要通过 annotations 来传递,对应的 Key 分别为summary/description**,,请参考 [Prometheus Rule更多配置请参考](https://prometheus.io/docs/prometheus/latest/configuration/alerting_rules/)。
|
|
285
|
+
* SSO单点登录时,设置是否cam鉴权
|
|
349
286
|
*/
|
|
350
|
-
async
|
|
351
|
-
return this.request("
|
|
287
|
+
async EnableSSOCamCheck(req, cb) {
|
|
288
|
+
return this.request("EnableSSOCamCheck", req, cb);
|
|
289
|
+
}
|
|
290
|
+
/**
|
|
291
|
+
* 安装 Grafana Plugin
|
|
292
|
+
*/
|
|
293
|
+
async InstallPlugins(req, cb) {
|
|
294
|
+
return this.request("InstallPlugins", req, cb);
|
|
352
295
|
}
|
|
353
296
|
/**
|
|
354
297
|
* 创建 exporter 集成
|
|
@@ -363,97 +306,215 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
363
306
|
return this.request("DeleteRecordingRules", req, cb);
|
|
364
307
|
}
|
|
365
308
|
/**
|
|
366
|
-
*
|
|
309
|
+
* 分页获取产品事件的列表
|
|
367
310
|
*/
|
|
368
|
-
async
|
|
369
|
-
return this.request("
|
|
311
|
+
async DescribeProductEventList(req, cb) {
|
|
312
|
+
return this.request("DescribeProductEventList", req, cb);
|
|
370
313
|
}
|
|
371
314
|
/**
|
|
372
|
-
*
|
|
315
|
+
* 查询告警历史
|
|
316
|
+
|
|
317
|
+
请注意,**如果使用子用户进行告警历史的查询,只能查询到被授权项目下的告警历史**,或不区分项目的产品的告警历史。如何对子账户授予项目的权限,请参考 [访问管理-项目与标签](https://cloud.tencent.com/document/product/598/32738)。
|
|
373
318
|
*/
|
|
374
|
-
async
|
|
375
|
-
return this.request("
|
|
319
|
+
async DescribeAlarmHistories(req, cb) {
|
|
320
|
+
return this.request("DescribeAlarmHistories", req, cb);
|
|
376
321
|
}
|
|
377
322
|
/**
|
|
378
|
-
*
|
|
323
|
+
* Grafana可视化服务 删除授权用户
|
|
379
324
|
*/
|
|
380
|
-
async
|
|
381
|
-
return this.request("
|
|
325
|
+
async DeleteSSOAccount(req, cb) {
|
|
326
|
+
return this.request("DeleteSSOAccount", req, cb);
|
|
382
327
|
}
|
|
383
328
|
/**
|
|
384
|
-
*
|
|
329
|
+
* 查询单个通知模板的详情
|
|
385
330
|
*/
|
|
386
|
-
async
|
|
387
|
-
return this.request("
|
|
331
|
+
async DescribeAlarmNotice(req, cb) {
|
|
332
|
+
return this.request("DescribeAlarmNotice", req, cb);
|
|
388
333
|
}
|
|
389
334
|
/**
|
|
390
|
-
*
|
|
335
|
+
* 创建 Grafana 集成配置
|
|
391
336
|
*/
|
|
392
|
-
async
|
|
393
|
-
return this.request("
|
|
337
|
+
async CreateGrafanaIntegration(req, cb) {
|
|
338
|
+
return this.request("CreateGrafanaIntegration", req, cb);
|
|
394
339
|
}
|
|
395
340
|
/**
|
|
396
|
-
*
|
|
341
|
+
* 设置一个策略为该告警策略类型、该项目的默认告警策略。
|
|
342
|
+
同一项目下相同的告警策略类型,就会被设置为非默认。
|
|
397
343
|
*/
|
|
398
|
-
async
|
|
399
|
-
return this.request("
|
|
344
|
+
async SetDefaultAlarmPolicy(req, cb) {
|
|
345
|
+
return this.request("SetDefaultAlarmPolicy", req, cb);
|
|
400
346
|
}
|
|
401
347
|
/**
|
|
402
|
-
*
|
|
403
|
-
|
|
404
|
-
请注意,**如果使用子用户进行告警历史的查询,只能查询到被授权项目下的告警历史**,或不区分项目的产品的告警历史。如何对子账户授予项目的权限,请参考 [访问管理-项目与标签](https://cloud.tencent.com/document/product/598/32738)。
|
|
348
|
+
* 删除 Grafana 实例
|
|
405
349
|
*/
|
|
406
|
-
async
|
|
407
|
-
return this.request("
|
|
350
|
+
async DeleteGrafanaInstance(req, cb) {
|
|
351
|
+
return this.request("DeleteGrafanaInstance", req, cb);
|
|
408
352
|
}
|
|
409
353
|
/**
|
|
410
|
-
*
|
|
354
|
+
* Grafana实例授权其他腾讯云用户
|
|
411
355
|
*/
|
|
412
|
-
async
|
|
413
|
-
return this.request("
|
|
356
|
+
async CreateSSOAccount(req, cb) {
|
|
357
|
+
return this.request("CreateSSOAccount", req, cb);
|
|
414
358
|
}
|
|
415
359
|
/**
|
|
416
|
-
*
|
|
417
|
-
同一项目下相同的告警策略类型,就会被设置为非默认。
|
|
360
|
+
* 发送自定义消息告警
|
|
418
361
|
*/
|
|
419
|
-
async
|
|
420
|
-
return this.request("
|
|
362
|
+
async SendCustomAlarmMsg(req, cb) {
|
|
363
|
+
return this.request("SendCustomAlarmMsg", req, cb);
|
|
421
364
|
}
|
|
422
365
|
/**
|
|
423
|
-
*
|
|
366
|
+
* 云监控告警修改告警策略绑定的告警通知模板
|
|
424
367
|
*/
|
|
425
|
-
async
|
|
426
|
-
return this.request("
|
|
368
|
+
async ModifyAlarmPolicyNotice(req, cb) {
|
|
369
|
+
return this.request("ModifyAlarmPolicyNotice", req, cb);
|
|
427
370
|
}
|
|
428
371
|
/**
|
|
429
|
-
*
|
|
372
|
+
* 设置 Grafana 公网访问
|
|
430
373
|
*/
|
|
431
|
-
async
|
|
432
|
-
return this.request("
|
|
374
|
+
async EnableGrafanaInternet(req, cb) {
|
|
375
|
+
return this.request("EnableGrafanaInternet", req, cb);
|
|
433
376
|
}
|
|
434
377
|
/**
|
|
435
|
-
*
|
|
378
|
+
* 创建 Grafana 告警通道
|
|
436
379
|
*/
|
|
437
|
-
async
|
|
438
|
-
return this.request("
|
|
380
|
+
async CreateGrafanaNotificationChannel(req, cb) {
|
|
381
|
+
return this.request("CreateGrafanaNotificationChannel", req, cb);
|
|
439
382
|
}
|
|
440
383
|
/**
|
|
441
|
-
*
|
|
384
|
+
* 修改 Grafana 实例属性
|
|
442
385
|
*/
|
|
443
|
-
async
|
|
444
|
-
return this.request("
|
|
386
|
+
async ModifyGrafanaInstance(req, cb) {
|
|
387
|
+
return this.request("ModifyGrafanaInstance", req, cb);
|
|
445
388
|
}
|
|
446
389
|
/**
|
|
447
|
-
*
|
|
390
|
+
* 恢复 Grafana 实例
|
|
448
391
|
*/
|
|
449
|
-
async
|
|
450
|
-
return this.request("
|
|
392
|
+
async ResumeGrafanaInstance(req, cb) {
|
|
393
|
+
return this.request("ResumeGrafanaInstance", req, cb);
|
|
451
394
|
}
|
|
452
395
|
/**
|
|
453
|
-
*
|
|
396
|
+
* 列出当前grafana实例的所有授权账号
|
|
454
397
|
*/
|
|
455
|
-
async
|
|
456
|
-
return this.request("
|
|
398
|
+
async DescribeSSOAccount(req, cb) {
|
|
399
|
+
return this.request("DescribeSSOAccount", req, cb);
|
|
400
|
+
}
|
|
401
|
+
/**
|
|
402
|
+
* 创建云监控告警策略
|
|
403
|
+
*/
|
|
404
|
+
async CreateAlarmPolicy(req, cb) {
|
|
405
|
+
return this.request("CreateAlarmPolicy", req, cb);
|
|
406
|
+
}
|
|
407
|
+
/**
|
|
408
|
+
* 创建 Prometheus CVM Agent
|
|
409
|
+
*/
|
|
410
|
+
async CreatePrometheusAgent(req, cb) {
|
|
411
|
+
return this.request("CreatePrometheusAgent", req, cb);
|
|
412
|
+
}
|
|
413
|
+
/**
|
|
414
|
+
* 创建通知模板
|
|
415
|
+
*/
|
|
416
|
+
async CreateAlarmNotice(req, cb) {
|
|
417
|
+
return this.request("CreateAlarmNotice", req, cb);
|
|
418
|
+
}
|
|
419
|
+
/**
|
|
420
|
+
* 更新 Prometheus 报警策略状态
|
|
421
|
+
*/
|
|
422
|
+
async UpdateAlertRuleState(req, cb) {
|
|
423
|
+
return this.request("UpdateAlertRuleState", req, cb);
|
|
424
|
+
}
|
|
425
|
+
/**
|
|
426
|
+
* 解除实例绑定的 Grafana 可视化实例
|
|
427
|
+
*/
|
|
428
|
+
async UnbindPrometheusManagedGrafana(req, cb) {
|
|
429
|
+
return this.request("UnbindPrometheusManagedGrafana", req, cb);
|
|
430
|
+
}
|
|
431
|
+
/**
|
|
432
|
+
* 查询 exporter 集成列表
|
|
433
|
+
*/
|
|
434
|
+
async DescribeExporterIntegrations(req, cb) {
|
|
435
|
+
return this.request("DescribeExporterIntegrations", req, cb);
|
|
436
|
+
}
|
|
437
|
+
/**
|
|
438
|
+
* 列出实例已安装的插件
|
|
439
|
+
*/
|
|
440
|
+
async DescribeInstalledPlugins(req, cb) {
|
|
441
|
+
return this.request("DescribeInstalledPlugins", req, cb);
|
|
442
|
+
}
|
|
443
|
+
/**
|
|
444
|
+
* 升级 Grafana Dashboard
|
|
445
|
+
*/
|
|
446
|
+
async UpgradeGrafanaDashboard(req, cb) {
|
|
447
|
+
return this.request("UpgradeGrafanaDashboard", req, cb);
|
|
448
|
+
}
|
|
449
|
+
/**
|
|
450
|
+
* 查询通知模板列表
|
|
451
|
+
*/
|
|
452
|
+
async DescribeAlarmNotices(req, cb) {
|
|
453
|
+
return this.request("DescribeAlarmNotices", req, cb);
|
|
454
|
+
}
|
|
455
|
+
/**
|
|
456
|
+
* 列出 Grafana DNS 配置
|
|
457
|
+
*/
|
|
458
|
+
async DescribeDNSConfig(req, cb) {
|
|
459
|
+
return this.request("DescribeDNSConfig", req, cb);
|
|
460
|
+
}
|
|
461
|
+
/**
|
|
462
|
+
* 本接口 (DescribePrometheusInstances) 用于查询一个或多个实例的详细信息。
|
|
463
|
+
<ul>
|
|
464
|
+
<li>可以根据实例ID、实例名称或者实例状态等信息来查询实例的详细信息</li>
|
|
465
|
+
<li>如果参数为空,返回当前用户一定数量(Limit所指定的数量,默认为20)的实例。</li>
|
|
466
|
+
</ul>
|
|
467
|
+
*/
|
|
468
|
+
async DescribePrometheusInstances(req, cb) {
|
|
469
|
+
return this.request("DescribePrometheusInstances", req, cb);
|
|
470
|
+
}
|
|
471
|
+
/**
|
|
472
|
+
* 列出用户所有的 Grafana 服务
|
|
473
|
+
*/
|
|
474
|
+
async DescribeGrafanaInstances(req, cb) {
|
|
475
|
+
return this.request("DescribeGrafanaInstances", req, cb);
|
|
476
|
+
}
|
|
477
|
+
/**
|
|
478
|
+
* 更新 Grafana 配置
|
|
479
|
+
*/
|
|
480
|
+
async UpdateGrafanaConfig(req, cb) {
|
|
481
|
+
return this.request("UpdateGrafanaConfig", req, cb);
|
|
482
|
+
}
|
|
483
|
+
/**
|
|
484
|
+
* 列出 Grafana 告警通道
|
|
485
|
+
*/
|
|
486
|
+
async DescribeGrafanaNotificationChannels(req, cb) {
|
|
487
|
+
return this.request("DescribeGrafanaNotificationChannels", req, cb);
|
|
488
|
+
}
|
|
489
|
+
/**
|
|
490
|
+
* 更新策略组
|
|
491
|
+
*/
|
|
492
|
+
async ModifyPolicyGroup(req, cb) {
|
|
493
|
+
return this.request("ModifyPolicyGroup", req, cb);
|
|
494
|
+
}
|
|
495
|
+
/**
|
|
496
|
+
* 获取平台事件列表
|
|
497
|
+
*/
|
|
498
|
+
async DescribeAccidentEventList(req, cb) {
|
|
499
|
+
return this.request("DescribeAccidentEventList", req, cb);
|
|
500
|
+
}
|
|
501
|
+
/**
|
|
502
|
+
* 查询告警指标列表
|
|
503
|
+
*/
|
|
504
|
+
async DescribeAlarmMetrics(req, cb) {
|
|
505
|
+
return this.request("DescribeAlarmMetrics", req, cb);
|
|
506
|
+
}
|
|
507
|
+
/**
|
|
508
|
+
* 云监控告警修改告警策略的触发任务,TriggerTasks字段放触发任务列表,TriggerTasks传空数组时,代表解绑该策略的所有触发任务。
|
|
509
|
+
*/
|
|
510
|
+
async ModifyAlarmPolicyTasks(req, cb) {
|
|
511
|
+
return this.request("ModifyAlarmPolicyTasks", req, cb);
|
|
512
|
+
}
|
|
513
|
+
/**
|
|
514
|
+
* 删除 exporter 集成
|
|
515
|
+
*/
|
|
516
|
+
async DeleteExporterIntegration(req, cb) {
|
|
517
|
+
return this.request("DeleteExporterIntegration", req, cb);
|
|
457
518
|
}
|
|
458
519
|
/**
|
|
459
520
|
* 更新 Prometheus CVM Agent 状态
|
|
@@ -462,16 +523,97 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
462
523
|
return this.request("UpdatePrometheusAgentStatus", req, cb);
|
|
463
524
|
}
|
|
464
525
|
/**
|
|
465
|
-
*
|
|
526
|
+
* 创建 Prometheus 的预聚合规则
|
|
466
527
|
*/
|
|
467
|
-
async
|
|
468
|
-
return this.request("
|
|
528
|
+
async CreateRecordingRule(req, cb) {
|
|
529
|
+
return this.request("CreateRecordingRule", req, cb);
|
|
469
530
|
}
|
|
470
531
|
/**
|
|
471
|
-
*
|
|
532
|
+
* Prometheus 报警规则查询接口
|
|
472
533
|
*/
|
|
473
|
-
async
|
|
474
|
-
return this.request("
|
|
534
|
+
async DescribeAlertRules(req, cb) {
|
|
535
|
+
return this.request("DescribeAlertRules", req, cb);
|
|
536
|
+
}
|
|
537
|
+
/**
|
|
538
|
+
* 更新 Grafana 白名单
|
|
539
|
+
*/
|
|
540
|
+
async UpdateGrafanaWhiteList(req, cb) {
|
|
541
|
+
return this.request("UpdateGrafanaWhiteList", req, cb);
|
|
542
|
+
}
|
|
543
|
+
/**
|
|
544
|
+
* 列出 Prometheus CVM Agent
|
|
545
|
+
*/
|
|
546
|
+
async DescribePrometheusAgents(req, cb) {
|
|
547
|
+
return this.request("DescribePrometheusAgents", req, cb);
|
|
548
|
+
}
|
|
549
|
+
/**
|
|
550
|
+
* 查询告警策略列表
|
|
551
|
+
*/
|
|
552
|
+
async DescribeAlarmPolicies(req, cb) {
|
|
553
|
+
return this.request("DescribeAlarmPolicies", req, cb);
|
|
554
|
+
}
|
|
555
|
+
/**
|
|
556
|
+
* 列出 Grafana 白名单
|
|
557
|
+
*/
|
|
558
|
+
async DescribeGrafanaWhiteList(req, cb) {
|
|
559
|
+
return this.request("DescribeGrafanaWhiteList", req, cb);
|
|
560
|
+
}
|
|
561
|
+
/**
|
|
562
|
+
* 强制销毁 Grafana 实例
|
|
563
|
+
*/
|
|
564
|
+
async CleanGrafanaInstance(req, cb) {
|
|
565
|
+
return this.request("CleanGrafanaInstance", req, cb);
|
|
566
|
+
}
|
|
567
|
+
/**
|
|
568
|
+
* 删除 Grafana Dashboard
|
|
569
|
+
*/
|
|
570
|
+
async UninstallGrafanaDashboard(req, cb) {
|
|
571
|
+
return this.request("UninstallGrafanaDashboard", req, cb);
|
|
572
|
+
}
|
|
573
|
+
/**
|
|
574
|
+
* 获取基础策略告警组列表
|
|
575
|
+
*/
|
|
576
|
+
async DescribePolicyGroupList(req, cb) {
|
|
577
|
+
return this.request("DescribePolicyGroupList", req, cb);
|
|
578
|
+
}
|
|
579
|
+
/**
|
|
580
|
+
* 修改 Prometheus 实例相关属性
|
|
581
|
+
*/
|
|
582
|
+
async ModifyPrometheusInstanceAttributes(req, cb) {
|
|
583
|
+
return this.request("ModifyPrometheusInstanceAttributes", req, cb);
|
|
584
|
+
}
|
|
585
|
+
/**
|
|
586
|
+
* 删除告警策略
|
|
587
|
+
*/
|
|
588
|
+
async DeleteAlarmPolicy(req, cb) {
|
|
589
|
+
return this.request("DeleteAlarmPolicy", req, cb);
|
|
590
|
+
}
|
|
591
|
+
/**
|
|
592
|
+
* 获取云产品的监控数据。此接口不适用于拉取容器服务监控数据,如需拉取容器服务监控数据,请使用[根据维度条件查询监控数据](https://cloud.tencent.com/document/product/248/51845)接口。
|
|
593
|
+
传入产品的命名空间、对象维度描述和监控指标即可获得相应的监控数据。
|
|
594
|
+
接口调用频率限制为:20次/秒,1200次/分钟。单请求最多可支持批量拉取10个实例的监控数据,单请求的数据点数限制为1440个。
|
|
595
|
+
若您需要调用的指标、对象较多,可能存在因限频出现拉取失败的情况,建议尽量将请求按时间维度均摊。
|
|
596
|
+
*/
|
|
597
|
+
async GetMonitorData(req, cb) {
|
|
598
|
+
return this.request("GetMonitorData", req, cb);
|
|
599
|
+
}
|
|
600
|
+
/**
|
|
601
|
+
* 默认接口请求频率限制:50次/秒。
|
|
602
|
+
默认单租户指标上限:100个。
|
|
603
|
+
单次上报最多 30 个指标/值对,请求返回错误时,请求中所有的指标/值均不会被保存。
|
|
604
|
+
|
|
605
|
+
上报的时间戳为期望保存的时间戳,建议构造整数分钟时刻的时间戳。
|
|
606
|
+
时间戳时间范围必须为当前时间到 300 秒前之间。
|
|
607
|
+
同一 IP 指标对的数据需按分钟先后顺序上报。
|
|
608
|
+
*/
|
|
609
|
+
async PutMonitorData(req, cb) {
|
|
610
|
+
return this.request("PutMonitorData", req, cb);
|
|
611
|
+
}
|
|
612
|
+
/**
|
|
613
|
+
* 更新 Grafana 的 DNS 配置
|
|
614
|
+
*/
|
|
615
|
+
async UpdateDNSConfig(req, cb) {
|
|
616
|
+
return this.request("UpdateDNSConfig", req, cb);
|
|
475
617
|
}
|
|
476
618
|
/**
|
|
477
619
|
* 列出在腾讯云容器服务下创建的 Prometheus 服务发现。
|
|
@@ -482,40 +624,102 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
482
624
|
return this.request("DescribeServiceDiscovery", req, cb);
|
|
483
625
|
}
|
|
484
626
|
/**
|
|
485
|
-
*
|
|
627
|
+
* 列出 Grafana 已安装的集成
|
|
486
628
|
*/
|
|
487
|
-
async
|
|
488
|
-
return this.request("
|
|
629
|
+
async DescribeGrafanaIntegrations(req, cb) {
|
|
630
|
+
return this.request("DescribeGrafanaIntegrations", req, cb);
|
|
489
631
|
}
|
|
490
632
|
/**
|
|
491
|
-
*
|
|
633
|
+
* 获取基础策略组详情
|
|
492
634
|
*/
|
|
493
|
-
async
|
|
494
|
-
return this.request("
|
|
635
|
+
async DescribePolicyGroupInfo(req, cb) {
|
|
636
|
+
return this.request("DescribePolicyGroupInfo", req, cb);
|
|
495
637
|
}
|
|
496
638
|
/**
|
|
497
|
-
*
|
|
639
|
+
* 更新 exporter 集成配置
|
|
498
640
|
*/
|
|
499
|
-
async
|
|
500
|
-
return this.request("
|
|
641
|
+
async UpdateExporterIntegration(req, cb) {
|
|
642
|
+
return this.request("UpdateExporterIntegration", req, cb);
|
|
501
643
|
}
|
|
502
644
|
/**
|
|
503
|
-
*
|
|
645
|
+
* 查询所有名字空间
|
|
504
646
|
*/
|
|
505
|
-
async
|
|
506
|
-
return this.request("
|
|
647
|
+
async DescribeAllNamespaces(req, cb) {
|
|
648
|
+
return this.request("DescribeAllNamespaces", req, cb);
|
|
507
649
|
}
|
|
508
650
|
/**
|
|
509
|
-
*
|
|
651
|
+
* 在腾讯云容器服务下创建 Prometheus 服务发现。
|
|
652
|
+
<p>注意:前提条件,已经通过 Prometheus 控制台集成了对应的腾讯云容器服务,具体请参考
|
|
653
|
+
<a href="https://cloud.tencent.com/document/product/248/48859" target="_blank">Agent 安装</a>。</p>
|
|
510
654
|
*/
|
|
511
|
-
async
|
|
512
|
-
return this.request("
|
|
655
|
+
async CreateServiceDiscovery(req, cb) {
|
|
656
|
+
return this.request("CreateServiceDiscovery", req, cb);
|
|
513
657
|
}
|
|
514
658
|
/**
|
|
515
|
-
*
|
|
659
|
+
* 根据维度条件查询监控数据
|
|
516
660
|
*/
|
|
517
|
-
async
|
|
518
|
-
return this.request("
|
|
661
|
+
async DescribeStatisticData(req, cb) {
|
|
662
|
+
return this.request("DescribeStatisticData", req, cb);
|
|
663
|
+
}
|
|
664
|
+
/**
|
|
665
|
+
* 策略绑定标签
|
|
666
|
+
*/
|
|
667
|
+
async BindingPolicyTag(req, cb) {
|
|
668
|
+
return this.request("BindingPolicyTag", req, cb);
|
|
669
|
+
}
|
|
670
|
+
/**
|
|
671
|
+
* 云监控告警获取告警通知模板所有回调URL
|
|
672
|
+
*/
|
|
673
|
+
async DescribeAlarmNoticeCallbacks(req, cb) {
|
|
674
|
+
return this.request("DescribeAlarmNoticeCallbacks", req, cb);
|
|
675
|
+
}
|
|
676
|
+
/**
|
|
677
|
+
* 彻底删除 Prometheus 实例相关数据,给定的实例必须先被 Terminate
|
|
678
|
+
*/
|
|
679
|
+
async DestroyPrometheusInstance(req, cb) {
|
|
680
|
+
return this.request("DestroyPrometheusInstance", req, cb);
|
|
681
|
+
}
|
|
682
|
+
/**
|
|
683
|
+
* 删除已安装的插件
|
|
684
|
+
*/
|
|
685
|
+
async UninstallGrafanaPlugins(req, cb) {
|
|
686
|
+
return this.request("UninstallGrafanaPlugins", req, cb);
|
|
687
|
+
}
|
|
688
|
+
/**
|
|
689
|
+
* 更新 Grafana 集成配置
|
|
690
|
+
*/
|
|
691
|
+
async UpdateGrafanaIntegration(req, cb) {
|
|
692
|
+
return this.request("UpdateGrafanaIntegration", req, cb);
|
|
693
|
+
}
|
|
694
|
+
/**
|
|
695
|
+
* 增加策略组
|
|
696
|
+
*/
|
|
697
|
+
async CreatePolicyGroup(req, cb) {
|
|
698
|
+
return this.request("CreatePolicyGroup", req, cb);
|
|
699
|
+
}
|
|
700
|
+
/**
|
|
701
|
+
* 销毁按量 Prometheus 实例
|
|
702
|
+
*/
|
|
703
|
+
async TerminatePrometheusInstances(req, cb) {
|
|
704
|
+
return this.request("TerminatePrometheusInstances", req, cb);
|
|
705
|
+
}
|
|
706
|
+
/**
|
|
707
|
+
* 列出可安装的所有 Grafana 插件
|
|
708
|
+
*/
|
|
709
|
+
async DescribePluginOverviews(req, cb) {
|
|
710
|
+
return this.request("DescribePluginOverviews", req, cb);
|
|
711
|
+
}
|
|
712
|
+
/**
|
|
713
|
+
* 根据条件查询 Prometheus 预聚合规则
|
|
714
|
+
*/
|
|
715
|
+
async DescribeRecordingRules(req, cb) {
|
|
716
|
+
return this.request("DescribeRecordingRules", req, cb);
|
|
717
|
+
}
|
|
718
|
+
/**
|
|
719
|
+
* 获取单个告警策略详情
|
|
720
|
+
*/
|
|
721
|
+
async DescribeAlarmPolicy(req, cb) {
|
|
722
|
+
return this.request("DescribeAlarmPolicy", req, cb);
|
|
519
723
|
}
|
|
520
724
|
}
|
|
521
725
|
exports.Client = Client;
|