tencentcloud-sdk-nodejs 4.0.418 → 4.0.421

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.
Files changed (62) hide show
  1. package/CHANGELOG.md +394 -0
  2. package/README.md +3 -3
  3. package/SERVICE_CHANGELOG.md +297 -260
  4. package/package.json +1 -1
  5. package/products.md +16 -16
  6. package/src/common/sdk_version.ts +1 -1
  7. package/src/services/bma/v20210624/bma_client.ts +20 -8
  8. package/src/services/bma/v20210624/bma_models.ts +100 -50
  9. package/src/services/captcha/v20190722/captcha_models.ts +0 -1
  10. package/src/services/ccc/v20200210/ccc_models.ts +6 -1
  11. package/src/services/cfw/v20190904/cfw_models.ts +2 -2
  12. package/src/services/clb/v20180317/clb_models.ts +1 -1
  13. package/src/services/cls/v20201016/cls_models.ts +5 -0
  14. package/src/services/cvm/v20170312/cvm_models.ts +10 -3
  15. package/src/services/ess/v20201111/ess_models.ts +2 -2
  16. package/src/services/gme/v20180711/gme_client.ts +21 -61
  17. package/src/services/gme/v20180711/gme_models.ts +50 -236
  18. package/src/services/live/v20180801/live_client.ts +2 -1
  19. package/src/services/live/v20180801/live_models.ts +88 -5
  20. package/src/services/monitor/v20180724/monitor_client.ts +909 -495
  21. package/src/services/monitor/v20180724/monitor_models.ts +1606 -403
  22. package/src/services/partners/v20180321/partners_models.ts +5 -4
  23. package/src/services/sms/v20210111/sms_client.ts +14 -0
  24. package/src/services/sms/v20210111/sms_models.ts +50 -0
  25. package/src/services/teo/v20220106/teo_client.ts +3 -2
  26. package/src/services/teo/v20220106/teo_models.ts +252 -183
  27. package/src/services/tke/v20180525/tke_client.ts +54 -42
  28. package/src/services/tke/v20180525/tke_models.ts +111 -41
  29. package/tencentcloud/common/sdk_version.d.ts +1 -1
  30. package/tencentcloud/common/sdk_version.js +1 -1
  31. package/tencentcloud/services/bma/v20210624/bma_client.d.ts +7 -3
  32. package/tencentcloud/services/bma/v20210624/bma_client.js +9 -3
  33. package/tencentcloud/services/bma/v20210624/bma_models.d.ts +86 -44
  34. package/tencentcloud/services/captcha/v20190722/captcha_models.d.ts +0 -1
  35. package/tencentcloud/services/ccc/v20200210/ccc_models.d.ts +5 -1
  36. package/tencentcloud/services/cfw/v20190904/cfw_models.d.ts +2 -2
  37. package/tencentcloud/services/clb/v20180317/clb_models.d.ts +1 -1
  38. package/tencentcloud/services/cls/v20201016/cls_models.d.ts +4 -0
  39. package/tencentcloud/services/cvm/v20170312/cvm_models.d.ts +7 -1
  40. package/tencentcloud/services/ess/v20201111/ess_models.d.ts +2 -2
  41. package/tencentcloud/services/gme/v20180711/gme_client.d.ts +7 -21
  42. package/tencentcloud/services/gme/v20180711/gme_client.js +9 -29
  43. package/tencentcloud/services/gme/v20180711/gme_models.d.ts +41 -200
  44. package/tencentcloud/services/live/v20180801/live_client.d.ts +1 -1
  45. package/tencentcloud/services/live/v20180801/live_models.d.ts +77 -5
  46. package/tencentcloud/services/monitor/v20180724/monitor_client.d.ts +305 -169
  47. package/tencentcloud/services/monitor/v20180724/monitor_client.js +449 -245
  48. package/tencentcloud/services/monitor/v20180724/monitor_models.d.ts +1368 -332
  49. package/tencentcloud/services/partners/v20180321/partners_models.d.ts +3 -2
  50. package/tencentcloud/services/sms/v20210111/sms_client.d.ts +6 -1
  51. package/tencentcloud/services/sms/v20210111/sms_client.js +7 -0
  52. package/tencentcloud/services/sms/v20210111/sms_models.d.ts +43 -0
  53. package/tencentcloud/services/teo/v20220106/teo_client.d.ts +1 -1
  54. package/tencentcloud/services/teo/v20220106/teo_models.d.ts +216 -150
  55. package/tencentcloud/services/tke/v20180525/tke_client.d.ts +19 -15
  56. package/tencentcloud/services/tke/v20180525/tke_client.js +27 -21
  57. package/tencentcloud/services/tke/v20180525/tke_models.d.ts +98 -40
  58. package/test/bma.v20210624.test.js +12 -2
  59. package/test/gme.v20180711.test.js +6 -36
  60. package/test/monitor.v20180724.test.js +492 -152
  61. package/test/sms.v20210111.test.js +10 -0
  62. package/test/tke.v20180525.test.js +30 -20
@@ -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
- * 默认接口请求频率限制:50次/秒。
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 UnBindingPolicyObject(req, cb) {
52
- return this.request("UnBindingPolicyObject", req, cb);
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
- * 列出 Prometheus 抓取任务
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 DescribePrometheusScrapeJobs(req, cb) {
84
- return this.request("DescribePrometheusScrapeJobs", req, cb);
55
+ async UpdateAlertRule(req, cb) {
56
+ return this.request("UpdateAlertRule", req, cb);
85
57
  }
86
58
  /**
87
- * 云监控告警修改告警策略绑定的告警通知模板
59
+ * 修改告警接收人
88
60
  */
89
- async ModifyAlarmPolicyNotice(req, cb) {
90
- return this.request("ModifyAlarmPolicyNotice", req, cb);
61
+ async ModifyAlarmReceivers(req, cb) {
62
+ return this.request("ModifyAlarmReceivers", req, cb);
91
63
  }
92
64
  /**
93
- * 删除在腾讯云容器服务下创建的 Prometheus 服务发现。
94
- <p>注意:前提条件,已经通过 Prometheus 控制台集成了对应的腾讯云容器服务,具体请参考
95
- <a href="https://cloud.tencent.com/document/product/248/48859" target="_blank">Agent 安装</a>。</p>
65
+ * 将告警策略绑定到特定对象
96
66
  */
97
- async DeleteServiceDiscovery(req, cb) {
98
- return this.request("DeleteServiceDiscovery", req, cb);
67
+ async BindingPolicyObject(req, cb) {
68
+ return this.request("BindingPolicyObject", req, cb);
99
69
  }
100
70
  /**
101
- * 删除 Grafana Dashboard
71
+ * 创建 Grafana 实例
102
72
  */
103
- async UninstallGrafanaDashboard(req, cb) {
104
- return this.request("UninstallGrafanaDashboard", req, cb);
73
+ async CreateGrafanaInstance(req, cb) {
74
+ return this.request("CreateGrafanaInstance", req, cb);
105
75
  }
106
76
  /**
107
- * 获取基础策略告警组列表
77
+ * 获取基础告警列表
108
78
  */
109
- async DescribePolicyGroupList(req, cb) {
110
- return this.request("DescribePolicyGroupList", req, cb);
79
+ async DescribeBasicAlarmList(req, cb) {
80
+ return this.request("DescribeBasicAlarmList", req, cb);
111
81
  }
112
82
  /**
113
- * 修改 Prometheus 实例相关属性
83
+ * 查询云监控产品列表,支持云服务器CVM、云数据库、云消息队列、负载均衡、容器服务、专线等云产品。
114
84
  */
115
- async ModifyPrometheusInstanceAttributes(req, cb) {
116
- return this.request("ModifyPrometheusInstanceAttributes", req, cb);
85
+ async DescribeProductList(req, cb) {
86
+ return this.request("DescribeProductList", req, cb);
117
87
  }
118
88
  /**
119
- * 删除告警策略
89
+ * 更新已授权账号的备注、权限信息,会直接覆盖原有的信息,不传则不会更新。
120
90
  */
121
- async DeleteAlarmPolicy(req, cb) {
122
- return this.request("DeleteAlarmPolicy", req, cb);
91
+ async UpdateSSOAccount(req, cb) {
92
+ return this.request("UpdateSSOAccount", req, cb);
123
93
  }
124
94
  /**
125
- * 获取云产品的监控数据。此接口不适用于拉取容器服务监控数据,如需拉取容器服务监控数据,请使用[根据维度条件查询监控数据](https://cloud.tencent.com/document/product/248/51845)接口。
126
- 传入产品的命名空间、对象维度描述和监控指标即可获得相应的监控数据。
127
- 接口调用频率限制为:20次/秒,1200次/分钟。单请求最多可支持批量拉取10个实例的监控数据,单请求的数据点数限制为1440个。
128
- 若您需要调用的指标、对象较多,可能存在因限频出现拉取失败的情况,建议尽量将请求按时间维度均摊。
95
+ * 列出 Grafana 环境变量
129
96
  */
130
- async GetMonitorData(req, cb) {
131
- return this.request("GetMonitorData", req, cb);
97
+ async DescribeGrafanaEnvironments(req, cb) {
98
+ return this.request("DescribeGrafanaEnvironments", req, cb);
132
99
  }
133
100
  /**
134
- * 创建按量 Prometheus 实例,根据用量收费实例
101
+ * 更新 Prometheus 的预聚合规则
135
102
  */
136
- async CreatePrometheusMultiTenantInstancePostPayMode(req, cb) {
137
- return this.request("CreatePrometheusMultiTenantInstancePostPayMode", req, cb);
103
+ async UpdateRecordingRule(req, cb) {
104
+ return this.request("UpdateRecordingRule", req, cb);
138
105
  }
139
106
  /**
140
- * 本接口 (DescribePrometheusInstances) 用于查询一个或多个实例的详细信息。
141
- <ul>
142
- <li>可以根据实例ID、实例名称或者实例状态等信息来查询实例的详细信息</li>
143
- <li>如果参数为空,返回当前用户一定数量(Limit所指定的数量,默认为20)的实例。</li>
144
- </ul>
107
+ * 删除 Grafana 告警通道
145
108
  */
146
- async DescribePrometheusInstances(req, cb) {
147
- return this.request("DescribePrometheusInstances", req, cb);
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 DescribePolicyConditionList(req, cb) {
153
- return this.request("DescribePolicyConditionList", req, cb);
115
+ async DescribeGrafanaConfig(req, cb) {
116
+ return this.request("DescribeGrafanaConfig", req, cb);
154
117
  }
155
118
  /**
156
- * 修改告警策略触发条件
119
+ * 批量删除 Prometheus 报警规则
157
120
  */
158
- async ModifyAlarmPolicyCondition(req, cb) {
159
- return this.request("ModifyAlarmPolicyCondition", req, cb);
121
+ async DeleteAlertRules(req, cb) {
122
+ return this.request("DeleteAlertRules", req, cb);
160
123
  }
161
124
  /**
162
- * 获取基础告警列表
125
+ * 启停告警策略
163
126
  */
164
- async DescribeBasicAlarmList(req, cb) {
165
- return this.request("DescribeBasicAlarmList", req, cb);
127
+ async ModifyAlarmPolicyStatus(req, cb) {
128
+ return this.request("ModifyAlarmPolicyStatus", req, cb);
166
129
  }
167
130
  /**
168
- * 创建 Prometheus CVM Agent
131
+ * 删除 Prometheus 抓取任务
169
132
  */
170
- async CreatePrometheusAgent(req, cb) {
171
- return this.request("CreatePrometheusAgent", req, cb);
133
+ async DeletePrometheusScrapeJobs(req, cb) {
134
+ return this.request("DeletePrometheusScrapeJobs", req, cb);
172
135
  }
173
136
  /**
174
- * 将告警策略绑定到特定对象
137
+ * 设置 Grafana 单点登录,使用腾讯云账号
175
138
  */
176
- async BindingPolicyObject(req, cb) {
177
- return this.request("BindingPolicyObject", req, cb);
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 UpdateExporterIntegration(req, cb) {
201
- return this.request("UpdateExporterIntegration", req, cb);
151
+ async DescribeBaseMetrics(req, cb) {
152
+ return this.request("DescribeBaseMetrics", req, cb);
202
153
  }
203
154
  /**
204
- * 更新 Prometheus 抓取任务
155
+ * 查询告警事件列表
205
156
  */
206
- async UpdatePrometheusScrapeJob(req, cb) {
207
- return this.request("UpdatePrometheusScrapeJob", req, cb);
157
+ async DescribeAlarmEvents(req, cb) {
158
+ return this.request("DescribeAlarmEvents", req, cb);
208
159
  }
209
160
  /**
210
- * 解除实例绑定的 Grafana 可视化实例
161
+ * 云监控告警删除告警通知模板
211
162
  */
212
- async UnbindPrometheusManagedGrafana(req, cb) {
213
- return this.request("UnbindPrometheusManagedGrafana", req, cb);
163
+ async DeleteAlarmNotices(req, cb) {
164
+ return this.request("DeleteAlarmNotices", req, cb);
214
165
  }
215
166
  /**
216
- * 创建云监控告警策略
167
+ * 云监控告警编辑告警通知模板
217
168
  */
218
- async CreateAlarmPolicy(req, cb) {
219
- return this.request("CreateAlarmPolicy", req, cb);
169
+ async ModifyAlarmNotice(req, cb) {
170
+ return this.request("ModifyAlarmNotice", req, cb);
220
171
  }
221
172
  /**
222
- * 获取基础策略组详情
173
+ * 创建 Prometheus 抓取任务
223
174
  */
224
- async DescribePolicyGroupInfo(req, cb) {
225
- return this.request("DescribePolicyGroupInfo", req, cb);
175
+ async CreatePrometheusScrapeJob(req, cb) {
176
+ return this.request("CreatePrometheusScrapeJob", req, cb);
226
177
  }
227
178
  /**
228
- * 查询云监控产品列表,支持云服务器CVM、云数据库、云消息队列、负载均衡、容器服务、专线等云产品。
179
+ * 删除策略的关联对象
229
180
  */
230
- async DescribeProductList(req, cb) {
231
- return this.request("DescribeProductList", req, cb);
181
+ async UnBindingPolicyObject(req, cb) {
182
+ return this.request("UnBindingPolicyObject", req, cb);
232
183
  }
233
184
  /**
234
- * 查询 exporter 集成列表
185
+ * 获取条件模板列表
235
186
  */
236
- async DescribeExporterIntegrations(req, cb) {
237
- return this.request("DescribeExporterIntegrations", req, cb);
187
+ async DescribeConditionsTemplateList(req, cb) {
188
+ return this.request("DescribeConditionsTemplateList", req, cb);
238
189
  }
239
190
  /**
240
- * 查询所有名字空间
191
+ * 列出 Prometheus 抓取任务
241
192
  */
242
- async DescribeAllNamespaces(req, cb) {
243
- return this.request("DescribeAllNamespaces", req, cb);
193
+ async DescribePrometheusScrapeJobs(req, cb) {
194
+ return this.request("DescribePrometheusScrapeJobs", req, cb);
244
195
  }
245
196
  /**
246
- * 在腾讯云容器服务下创建 Prometheus 服务发现。
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 CreateServiceDiscovery(req, cb) {
251
- return this.request("CreateServiceDiscovery", req, cb);
201
+ async DeleteServiceDiscovery(req, cb) {
202
+ return this.request("DeleteServiceDiscovery", req, cb);
252
203
  }
253
204
  /**
254
- * 删除全部的关联对象
205
+ * 创建按量 Prometheus 实例,根据用量收费实例
255
206
  */
256
- async UnBindingAllPolicyObject(req, cb) {
257
- return this.request("UnBindingAllPolicyObject", req, cb);
207
+ async CreatePrometheusMultiTenantInstancePostPayMode(req, cb) {
208
+ return this.request("CreatePrometheusMultiTenantInstancePostPayMode", req, cb);
258
209
  }
259
210
  /**
260
- * 根据维度条件查询监控数据
211
+ * 更新 Grafana 环境变量
261
212
  */
262
- async DescribeStatisticData(req, cb) {
263
- return this.request("DescribeStatisticData", req, cb);
213
+ async UpdateGrafanaEnvironments(req, cb) {
214
+ return this.request("UpdateGrafanaEnvironments", req, cb);
264
215
  }
265
216
  /**
266
- * 升级 Grafana Dashboard
217
+ * 获取基础告警策略条件
267
218
  */
268
- async UpgradeGrafanaDashboard(req, cb) {
269
- return this.request("UpgradeGrafanaDashboard", req, cb);
219
+ async DescribePolicyConditionList(req, cb) {
220
+ return this.request("DescribePolicyConditionList", req, cb);
270
221
  }
271
222
  /**
272
- * 绑定 Grafana 可视化服务实例
223
+ * 修改告警策略触发条件
273
224
  */
274
- async BindPrometheusManagedGrafana(req, cb) {
275
- return this.request("BindPrometheusManagedGrafana", req, cb);
225
+ async ModifyAlarmPolicyCondition(req, cb) {
226
+ return this.request("ModifyAlarmPolicyCondition", req, cb);
276
227
  }
277
228
  /**
278
- * 查询通知模板列表
229
+ * 获取 Prometheus Agent 管理相关的命令行
279
230
  */
280
- async DescribeAlarmNotices(req, cb) {
281
- return this.request("DescribeAlarmNotices", req, cb);
231
+ async GetPrometheusAgentManagementCommand(req, cb) {
232
+ return this.request("GetPrometheusAgentManagementCommand", req, cb);
282
233
  }
283
234
  /**
284
- * 策略绑定标签
235
+ * 更新 Prometheus 抓取任务
285
236
  */
286
- async BindingPolicyTag(req, cb) {
287
- return this.request("BindingPolicyTag", req, cb);
237
+ async UpdatePrometheusScrapeJob(req, cb) {
238
+ return this.request("UpdatePrometheusScrapeJob", req, cb);
288
239
  }
289
240
  /**
290
- * 启停告警策略
241
+ * 升级 Grafana 实例
291
242
  */
292
- async ModifyAlarmPolicyStatus(req, cb) {
293
- return this.request("ModifyAlarmPolicyStatus", req, cb);
243
+ async UpgradeGrafanaInstance(req, cb) {
244
+ return this.request("UpgradeGrafanaInstance", req, cb);
294
245
  }
295
246
  /**
296
- * 云监控告警获取告警通知模板所有回调URL
247
+ * 删除 Grafana 集成配置
297
248
  */
298
- async DescribeAlarmNoticeCallbacks(req, cb) {
299
- return this.request("DescribeAlarmNoticeCallbacks", req, cb);
249
+ async DeleteGrafanaIntegration(req, cb) {
250
+ return this.request("DeleteGrafanaIntegration", req, cb);
300
251
  }
301
252
  /**
302
- * 修改告警接收人
253
+ * 绑定 Grafana 可视化服务实例
303
254
  */
304
- async ModifyAlarmReceivers(req, cb) {
305
- return this.request("ModifyAlarmReceivers", req, cb);
255
+ async BindPrometheusManagedGrafana(req, cb) {
256
+ return this.request("BindPrometheusManagedGrafana", req, cb);
306
257
  }
307
258
  /**
308
- * 彻底删除 Prometheus 实例相关数据,给定的实例必须先被 Terminate
259
+ * 删除全部的关联对象
309
260
  */
310
- async DestroyPrometheusInstance(req, cb) {
311
- return this.request("DestroyPrometheusInstance", req, cb);
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
- * 更新 Prometheus 的报警规则。
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 UpdateAlertRule(req, cb) {
351
- return this.request("UpdateAlertRule", req, cb);
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 CreatePolicyGroup(req, cb) {
369
- return this.request("CreatePolicyGroup", req, cb);
311
+ async DescribeProductEventList(req, cb) {
312
+ return this.request("DescribeProductEventList", req, cb);
370
313
  }
371
314
  /**
372
- * 销毁按量 Prometheus 实例
315
+ * 查询告警历史
316
+
317
+ 请注意,**如果使用子用户进行告警历史的查询,只能查询到被授权项目下的告警历史**,或不区分项目的产品的告警历史。如何对子账户授予项目的权限,请参考 [访问管理-项目与标签](https://cloud.tencent.com/document/product/598/32738)。
373
318
  */
374
- async TerminatePrometheusInstances(req, cb) {
375
- return this.request("TerminatePrometheusInstances", req, cb);
319
+ async DescribeAlarmHistories(req, cb) {
320
+ return this.request("DescribeAlarmHistories", req, cb);
376
321
  }
377
322
  /**
378
- * 删除 Prometheus 抓取任务
323
+ * Grafana可视化服务 删除授权用户
379
324
  */
380
- async DeletePrometheusScrapeJobs(req, cb) {
381
- return this.request("DeletePrometheusScrapeJobs", req, cb);
325
+ async DeleteSSOAccount(req, cb) {
326
+ return this.request("DeleteSSOAccount", req, cb);
382
327
  }
383
328
  /**
384
- * 分页获取产品事件的列表
329
+ * 查询单个通知模板的详情
385
330
  */
386
- async DescribeProductEventList(req, cb) {
387
- return this.request("DescribeProductEventList", req, cb);
331
+ async DescribeAlarmNotice(req, cb) {
332
+ return this.request("DescribeAlarmNotice", req, cb);
388
333
  }
389
334
  /**
390
- * 获取平台事件列表
335
+ * 创建 Grafana 集成配置
391
336
  */
392
- async DescribeAccidentEventList(req, cb) {
393
- return this.request("DescribeAccidentEventList", req, cb);
337
+ async CreateGrafanaIntegration(req, cb) {
338
+ return this.request("CreateGrafanaIntegration", req, cb);
394
339
  }
395
340
  /**
396
- * 批量删除 Prometheus 报警规则
341
+ * 设置一个策略为该告警策略类型、该项目的默认告警策略。
342
+ 同一项目下相同的告警策略类型,就会被设置为非默认。
397
343
  */
398
- async DeleteAlertRules(req, cb) {
399
- return this.request("DeleteAlertRules", req, cb);
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 DescribeAlarmHistories(req, cb) {
407
- return this.request("DescribeAlarmHistories", req, cb);
350
+ async DeleteGrafanaInstance(req, cb) {
351
+ return this.request("DeleteGrafanaInstance", req, cb);
408
352
  }
409
353
  /**
410
- * 查询告警指标列表
354
+ * Grafana实例授权其他腾讯云用户
411
355
  */
412
- async DescribeAlarmMetrics(req, cb) {
413
- return this.request("DescribeAlarmMetrics", req, cb);
356
+ async CreateSSOAccount(req, cb) {
357
+ return this.request("CreateSSOAccount", req, cb);
414
358
  }
415
359
  /**
416
- * 设置一个策略为该告警策略类型、该项目的默认告警策略。
417
- 同一项目下相同的告警策略类型,就会被设置为非默认。
360
+ * 发送自定义消息告警
418
361
  */
419
- async SetDefaultAlarmPolicy(req, cb) {
420
- return this.request("SetDefaultAlarmPolicy", req, cb);
362
+ async SendCustomAlarmMsg(req, cb) {
363
+ return this.request("SendCustomAlarmMsg", req, cb);
421
364
  }
422
365
  /**
423
- * 云监控告警修改告警策略的触发任务,TriggerTasks字段放触发任务列表,TriggerTasks传空数组时,代表解绑该策略的所有触发任务。
366
+ * 云监控告警修改告警策略绑定的告警通知模板
424
367
  */
425
- async ModifyAlarmPolicyTasks(req, cb) {
426
- return this.request("ModifyAlarmPolicyTasks", req, cb);
368
+ async ModifyAlarmPolicyNotice(req, cb) {
369
+ return this.request("ModifyAlarmPolicyNotice", req, cb);
427
370
  }
428
371
  /**
429
- * 根据条件查询 Prometheus 预聚合规则
372
+ * 设置 Grafana 公网访问
430
373
  */
431
- async DescribeRecordingRules(req, cb) {
432
- return this.request("DescribeRecordingRules", req, cb);
374
+ async EnableGrafanaInternet(req, cb) {
375
+ return this.request("EnableGrafanaInternet", req, cb);
433
376
  }
434
377
  /**
435
- * 删除 exporter 集成
378
+ * 创建 Grafana 告警通道
436
379
  */
437
- async DeleteExporterIntegration(req, cb) {
438
- return this.request("DeleteExporterIntegration", req, cb);
380
+ async CreateGrafanaNotificationChannel(req, cb) {
381
+ return this.request("CreateGrafanaNotificationChannel", req, cb);
439
382
  }
440
383
  /**
441
- * 获取基础指标属性
384
+ * 修改 Grafana 实例属性
442
385
  */
443
- async DescribeBaseMetrics(req, cb) {
444
- return this.request("DescribeBaseMetrics", req, cb);
386
+ async ModifyGrafanaInstance(req, cb) {
387
+ return this.request("ModifyGrafanaInstance", req, cb);
445
388
  }
446
389
  /**
447
- * 查询单个通知模板的详情
390
+ * 恢复 Grafana 实例
448
391
  */
449
- async DescribeAlarmNotice(req, cb) {
450
- return this.request("DescribeAlarmNotice", req, cb);
392
+ async ResumeGrafanaInstance(req, cb) {
393
+ return this.request("ResumeGrafanaInstance", req, cb);
451
394
  }
452
395
  /**
453
- * 查询告警事件列表
396
+ * 列出当前grafana实例的所有授权账号
454
397
  */
455
- async DescribeAlarmEvents(req, cb) {
456
- return this.request("DescribeAlarmEvents", req, cb);
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 DeleteAlarmNotices(req, cb) {
468
- return this.request("DeleteAlarmNotices", req, cb);
528
+ async CreateRecordingRule(req, cb) {
529
+ return this.request("CreateRecordingRule", req, cb);
469
530
  }
470
531
  /**
471
- * 更新 Prometheus 的预聚合规则
532
+ * Prometheus 报警规则查询接口
472
533
  */
473
- async UpdateRecordingRule(req, cb) {
474
- return this.request("UpdateRecordingRule", req, cb);
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
- * 创建 Prometheus 的预聚合规则
627
+ * 列出 Grafana 已安装的集成
486
628
  */
487
- async CreateRecordingRule(req, cb) {
488
- return this.request("CreateRecordingRule", req, cb);
629
+ async DescribeGrafanaIntegrations(req, cb) {
630
+ return this.request("DescribeGrafanaIntegrations", req, cb);
489
631
  }
490
632
  /**
491
- * 更新策略组
633
+ * 获取基础策略组详情
492
634
  */
493
- async ModifyPolicyGroup(req, cb) {
494
- return this.request("ModifyPolicyGroup", req, cb);
635
+ async DescribePolicyGroupInfo(req, cb) {
636
+ return this.request("DescribePolicyGroupInfo", req, cb);
495
637
  }
496
638
  /**
497
- * Prometheus 报警规则查询接口
639
+ * 更新 exporter 集成配置
498
640
  */
499
- async DescribeAlertRules(req, cb) {
500
- return this.request("DescribeAlertRules", req, cb);
641
+ async UpdateExporterIntegration(req, cb) {
642
+ return this.request("UpdateExporterIntegration", req, cb);
501
643
  }
502
644
  /**
503
- * 获取单个告警策略详情
645
+ * 查询所有名字空间
504
646
  */
505
- async DescribeAlarmPolicy(req, cb) {
506
- return this.request("DescribeAlarmPolicy", req, cb);
647
+ async DescribeAllNamespaces(req, cb) {
648
+ return this.request("DescribeAllNamespaces", req, cb);
507
649
  }
508
650
  /**
509
- * 创建 Prometheus 抓取任务
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 CreatePrometheusScrapeJob(req, cb) {
512
- return this.request("CreatePrometheusScrapeJob", req, cb);
655
+ async CreateServiceDiscovery(req, cb) {
656
+ return this.request("CreateServiceDiscovery", req, cb);
513
657
  }
514
658
  /**
515
- * 列出 Prometheus CVM Agent
659
+ * 根据维度条件查询监控数据
516
660
  */
517
- async DescribePrometheusAgents(req, cb) {
518
- return this.request("DescribePrometheusAgents", req, cb);
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;