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
|
@@ -18,41 +18,52 @@
|
|
|
18
18
|
import { AbstractClient } from "../../../common/abstract_client"
|
|
19
19
|
import { ClientConfig } from "../../../common/interface"
|
|
20
20
|
import {
|
|
21
|
+
UpdateAlertRuleStateRequest,
|
|
21
22
|
TagInstance,
|
|
22
23
|
DescribePolicyConditionListConfigManual,
|
|
23
|
-
|
|
24
|
+
InstallPluginsRequest,
|
|
25
|
+
UpdateGrafanaEnvironmentsResponse,
|
|
24
26
|
ModifyAlarmPolicyInfoRequest,
|
|
25
27
|
CreatePolicyGroupEventCondition,
|
|
26
28
|
DescribeProductEventListRequest,
|
|
27
29
|
AlarmPolicyTriggerTask,
|
|
28
30
|
DescribeServiceDiscoveryResponse,
|
|
31
|
+
ModifyAlarmNoticeResponse,
|
|
32
|
+
UpdateServiceDiscoveryRequest,
|
|
29
33
|
DescribeRecordingRulesResponse,
|
|
34
|
+
MetricConfig,
|
|
35
|
+
GrafanaPlugin,
|
|
30
36
|
PrometheusTag,
|
|
31
37
|
DestroyPrometheusInstanceResponse,
|
|
32
38
|
DescribePolicyConditionListMetric,
|
|
33
39
|
DescribeAlertRulesRequest,
|
|
34
40
|
DescribePrometheusInstancesResponse,
|
|
35
41
|
DescribePolicyGroupListResponse,
|
|
42
|
+
PrometheusAgent,
|
|
36
43
|
BindingPolicyObjectRequest,
|
|
37
|
-
|
|
44
|
+
CreateServiceDiscoveryResponse,
|
|
45
|
+
UpdateGrafanaWhiteListResponse,
|
|
38
46
|
DescribeBindingPolicyObjectListResponse,
|
|
39
47
|
PutMonitorDataResponse,
|
|
40
48
|
DescribePolicyGroupInfoRequest,
|
|
41
|
-
|
|
49
|
+
EnableSSOCamCheckResponse,
|
|
42
50
|
BindingPolicyTagResponse,
|
|
43
51
|
MonitorTypeInfo,
|
|
44
52
|
DeleteServiceDiscoveryResponse,
|
|
45
53
|
CreatePrometheusScrapeJobResponse,
|
|
46
54
|
DescribePolicyGroupInfoCallback,
|
|
55
|
+
ModifyGrafanaInstanceRequest,
|
|
47
56
|
AlarmHistoryMetric,
|
|
48
57
|
CreateAlarmPolicyRequest,
|
|
58
|
+
EnableGrafanaSSOResponse,
|
|
49
59
|
CreateExporterIntegrationRequest,
|
|
50
60
|
DescribeAlarmEventsResponse,
|
|
51
61
|
DescribeProductEventListDimensions,
|
|
52
62
|
DescribePolicyGroupInfoResponse,
|
|
53
|
-
|
|
63
|
+
Operator,
|
|
54
64
|
ModifyAlarmPolicyNoticeRequest,
|
|
55
65
|
DeleteAlarmPolicyRequest,
|
|
66
|
+
UpdatePrometheusAgentStatusResponse,
|
|
56
67
|
PolicyTag,
|
|
57
68
|
EventCondition,
|
|
58
69
|
MetricSet,
|
|
@@ -62,12 +73,15 @@ import {
|
|
|
62
73
|
CreatePolicyGroupResponse,
|
|
63
74
|
ModifyAlarmPolicyTasksResponse,
|
|
64
75
|
DescribeBaseMetricsResponse,
|
|
65
|
-
|
|
76
|
+
DimensionNew,
|
|
66
77
|
CreatePrometheusMultiTenantInstancePostPayModeRequest,
|
|
67
78
|
MetricDataPoint,
|
|
68
79
|
DescribePolicyConditionListConfigManualContinueTime,
|
|
69
80
|
DeleteAlertRulesResponse,
|
|
81
|
+
CommonNamespaceNew,
|
|
82
|
+
DeleteGrafanaNotificationChannelResponse,
|
|
70
83
|
GetMonitorDataRequest,
|
|
84
|
+
CreateSSOAccountResponse,
|
|
71
85
|
DataPoint,
|
|
72
86
|
DescribeAlarmPoliciesResponse,
|
|
73
87
|
DescribeStatisticDataRequest,
|
|
@@ -76,46 +90,61 @@ import {
|
|
|
76
90
|
CreateRecordingRuleRequest,
|
|
77
91
|
ModifyPrometheusInstanceAttributesRequest,
|
|
78
92
|
DescribePolicyConditionListConfigManualPeriod,
|
|
79
|
-
|
|
93
|
+
DescribeGrafanaEnvironmentsResponse,
|
|
94
|
+
IntegrationConfiguration,
|
|
80
95
|
DescribeServiceDiscoveryRequest,
|
|
81
96
|
CommonNamespace,
|
|
82
97
|
DescribePolicyConditionListRequest,
|
|
98
|
+
URLNotice,
|
|
83
99
|
DeletePolicyGroupResponse,
|
|
84
100
|
DescribeConditionsTemplateListResponse,
|
|
101
|
+
ResumeGrafanaInstanceRequest,
|
|
85
102
|
DescribeMonitorTypesRequest,
|
|
86
|
-
|
|
103
|
+
DescribeGrafanaConfigResponse,
|
|
104
|
+
DeleteGrafanaInstanceRequest,
|
|
105
|
+
DescribeGrafanaIntegrationsResponse,
|
|
87
106
|
ModifyAlarmPolicyTasksRequest,
|
|
107
|
+
GrafanaIntegrationConfig,
|
|
88
108
|
DimensionsDesc,
|
|
109
|
+
DeleteGrafanaIntegrationRequest,
|
|
89
110
|
ModifyAlarmPolicyStatusRequest,
|
|
90
111
|
CreatePrometheusMultiTenantInstancePostPayModeResponse,
|
|
91
|
-
|
|
112
|
+
GrafanaAccountInfo,
|
|
113
|
+
UpdateGrafanaNotificationChannelRequest,
|
|
114
|
+
UninstallGrafanaPluginsResponse,
|
|
92
115
|
ServiceDiscoveryItem,
|
|
93
116
|
SetDefaultAlarmPolicyRequest,
|
|
94
117
|
ModifyAlarmNoticeRequest,
|
|
95
118
|
CreateServiceDiscoveryRequest,
|
|
96
119
|
DescribeAlertRulesResponse,
|
|
97
120
|
DescribeBasicAlarmListResponse,
|
|
121
|
+
DescribeGrafanaEnvironmentsRequest,
|
|
98
122
|
DescribeProductListRequest,
|
|
99
123
|
PeriodsSt,
|
|
124
|
+
GrafanaAccountRole,
|
|
100
125
|
BindPrometheusManagedGrafanaResponse,
|
|
101
126
|
AlarmPolicy,
|
|
102
127
|
DeleteExporterIntegrationRequest,
|
|
103
128
|
ModifyAlarmReceiversResponse,
|
|
104
|
-
|
|
129
|
+
EnableGrafanaSSORequest,
|
|
105
130
|
DescribePolicyConditionListResponse,
|
|
106
131
|
PrometheusRuleSet,
|
|
107
132
|
DescribeAllNamespacesResponse,
|
|
108
133
|
GetPrometheusAgentManagementCommandRequest,
|
|
109
134
|
ModifyPrometheusInstanceAttributesResponse,
|
|
110
135
|
DeleteAlarmNoticesResponse,
|
|
136
|
+
DescribeGrafanaNotificationChannelsRequest,
|
|
137
|
+
DescribePluginOverviewsRequest,
|
|
111
138
|
TerminatePrometheusInstancesRequest,
|
|
112
|
-
|
|
139
|
+
DescribeSSOAccountResponse,
|
|
113
140
|
UpdatePrometheusAgentStatusRequest,
|
|
141
|
+
InstallPluginsResponse,
|
|
114
142
|
CreateAlarmPolicyResponse,
|
|
115
143
|
ProductSimple,
|
|
116
144
|
ModifyAlarmReceiversRequest,
|
|
117
145
|
AlarmPolicyRule,
|
|
118
|
-
|
|
146
|
+
DeleteGrafanaNotificationChannelRequest,
|
|
147
|
+
CreateGrafanaIntegrationRequest,
|
|
119
148
|
CreatePrometheusAgentResponse,
|
|
120
149
|
DescribeExporterIntegrationsRequest,
|
|
121
150
|
DescribeProductEventListEventsDimensions,
|
|
@@ -128,46 +157,65 @@ import {
|
|
|
128
157
|
TemplateGroup,
|
|
129
158
|
DescribeBindingPolicyObjectListInstance,
|
|
130
159
|
Point,
|
|
131
|
-
|
|
160
|
+
UpdateAlertRuleResponse,
|
|
132
161
|
ModifyPolicyGroupEventCondition,
|
|
133
|
-
|
|
162
|
+
CreateGrafanaNotificationChannelRequest,
|
|
163
|
+
ModifyGrafanaInstanceResponse,
|
|
134
164
|
ModifyPolicyGroupRequest,
|
|
135
165
|
DescribeAlarmHistoriesResponse,
|
|
136
166
|
DescribeAlarmMetricsRequest,
|
|
137
167
|
DescribeBaseMetricsRequest,
|
|
168
|
+
CreateSSOAccountRequest,
|
|
138
169
|
UserNotice,
|
|
139
170
|
UpdatePrometheusScrapeJobRequest,
|
|
171
|
+
UpdateGrafanaNotificationChannelResponse,
|
|
140
172
|
AlarmPolicyFilter,
|
|
173
|
+
UpgradeGrafanaInstanceRequest,
|
|
174
|
+
DescribeAlarmNoticeCallbacksRequest,
|
|
141
175
|
DescribeAlarmNoticeCallbacksResponse,
|
|
142
176
|
UpdateExporterIntegrationResponse,
|
|
143
177
|
ModifyAlarmPolicyConditionRequest,
|
|
144
|
-
|
|
178
|
+
DeleteSSOAccountRequest,
|
|
179
|
+
PrometheusScrapeJob,
|
|
180
|
+
CreateGrafanaIntegrationResponse,
|
|
145
181
|
BindPrometheusManagedGrafanaRequest,
|
|
182
|
+
ResumeGrafanaInstanceResponse,
|
|
183
|
+
UpdateAlertRuleStateResponse,
|
|
146
184
|
Instance,
|
|
185
|
+
DescribeProductEventListResponse,
|
|
186
|
+
CreateGrafanaInstanceRequest,
|
|
147
187
|
BindingPolicyObjectDimension,
|
|
148
|
-
|
|
188
|
+
UnbindPrometheusManagedGrafanaResponse,
|
|
189
|
+
DescribeBasicAlarmListAlarms,
|
|
149
190
|
DescribeAlarmPolicyResponse,
|
|
150
191
|
DeleteExporterIntegrationResponse,
|
|
151
192
|
UpdateServiceDiscoveryResponse,
|
|
152
193
|
DescribeMonitorTypesResponse,
|
|
194
|
+
GrafanaInstanceInfo,
|
|
153
195
|
Dimension,
|
|
154
|
-
|
|
196
|
+
DescribeAccidentEventListAlarms,
|
|
155
197
|
UpdateRecordingRuleResponse,
|
|
156
198
|
CreateAlarmNoticeResponse,
|
|
157
199
|
DescribeAlarmHistoriesRequest,
|
|
158
200
|
MetricObjectMeaning,
|
|
159
|
-
|
|
201
|
+
DeletePolicyGroupRequest,
|
|
202
|
+
EnableSSOCamCheckRequest,
|
|
160
203
|
ModifyPolicyGroupResponse,
|
|
204
|
+
DeleteGrafanaIntegrationResponse,
|
|
205
|
+
DescribeInstalledPluginsRequest,
|
|
161
206
|
DescribeAlarmMetricsResponse,
|
|
162
207
|
Condition,
|
|
163
|
-
|
|
208
|
+
DeleteGrafanaInstanceResponse,
|
|
209
|
+
DescribeGrafanaWhiteListRequest,
|
|
164
210
|
PutMonitorDataRequest,
|
|
165
211
|
DescribePrometheusAgentsRequest,
|
|
166
212
|
TerminatePrometheusInstancesResponse,
|
|
167
213
|
MetricData,
|
|
214
|
+
UpdateGrafanaIntegrationResponse,
|
|
168
215
|
AlarmEvent,
|
|
216
|
+
ModifyAlarmPolicyNoticeResponse,
|
|
169
217
|
BindingPolicyTagRequest,
|
|
170
|
-
|
|
218
|
+
CreateGrafanaInstanceResponse,
|
|
171
219
|
UpdateAlertRuleRequest,
|
|
172
220
|
AlarmPolicyEventCondition,
|
|
173
221
|
DescribePolicyGroupInfoConditionTpl,
|
|
@@ -182,6 +230,7 @@ import {
|
|
|
182
230
|
UpgradeGrafanaDashboardResponse,
|
|
183
231
|
DescribeAllNamespacesRequest,
|
|
184
232
|
PolicyGroup,
|
|
233
|
+
DescribeGrafanaNotificationChannelsResponse,
|
|
185
234
|
DeleteRecordingRulesRequest,
|
|
186
235
|
UpdatePrometheusScrapeJobResponse,
|
|
187
236
|
DescribePolicyConditionListConfigManualCalcType,
|
|
@@ -189,20 +238,30 @@ import {
|
|
|
189
238
|
DescribeAlarmPoliciesRequest,
|
|
190
239
|
DescribeAccidentEventListResponse,
|
|
191
240
|
DescribePrometheusScrapeJobsResponse,
|
|
241
|
+
EnableGrafanaInternetRequest,
|
|
242
|
+
DescribePluginOverviewsResponse,
|
|
243
|
+
UpdateSSOAccountRequest,
|
|
244
|
+
GetPrometheusAgentManagementCommandResponse,
|
|
192
245
|
DescribePolicyConditionListConfigManualStatType,
|
|
193
246
|
ModifyAlarmPolicyInfoResponse,
|
|
194
247
|
AlarmNotice,
|
|
195
248
|
DeleteRecordingRulesResponse,
|
|
196
249
|
PolicyGroupReceiverInfo,
|
|
197
250
|
DescribePrometheusAgentsResponse,
|
|
251
|
+
Metric,
|
|
198
252
|
DescribeAlarmEventsRequest,
|
|
199
253
|
MidQueryCondition,
|
|
200
254
|
DeletePrometheusScrapeJobsRequest,
|
|
255
|
+
UpdateGrafanaIntegrationRequest,
|
|
201
256
|
UnBindingPolicyObjectRequest,
|
|
202
|
-
|
|
257
|
+
CleanGrafanaInstanceResponse,
|
|
258
|
+
UpdateDNSConfigRequest,
|
|
203
259
|
CreateAlertRuleRequest,
|
|
260
|
+
DescribeDNSConfigResponse,
|
|
261
|
+
UpdateGrafanaConfigRequest,
|
|
262
|
+
UpdateGrafanaEnvironmentsRequest,
|
|
204
263
|
DescribeProductListResponse,
|
|
205
|
-
|
|
264
|
+
DescribeGrafanaIntegrationsRequest,
|
|
206
265
|
AlarmHistory,
|
|
207
266
|
MonitorTypeNamespace,
|
|
208
267
|
DeleteAlarmPolicyResponse,
|
|
@@ -211,6 +270,7 @@ import {
|
|
|
211
270
|
CreatePolicyGroupRequest,
|
|
212
271
|
CreatePolicyGroupCondition,
|
|
213
272
|
DescribePolicyGroupInfoReceiverInfo,
|
|
273
|
+
DescribeAlarmNoticesResponse,
|
|
214
274
|
DescribeStatisticDataResponse,
|
|
215
275
|
CreatePrometheusScrapeJobRequest,
|
|
216
276
|
RecordingRuleSet,
|
|
@@ -218,19 +278,27 @@ import {
|
|
|
218
278
|
DescribePolicyConditionListEventMetric,
|
|
219
279
|
DescribePolicyGroupListRequest,
|
|
220
280
|
DescribeBasicAlarmListRequest,
|
|
221
|
-
|
|
281
|
+
ManagementCommand,
|
|
222
282
|
DescribeAlarmNoticesRequest,
|
|
283
|
+
DescribeGrafanaConfigRequest,
|
|
223
284
|
DescribePolicyGroupListGroup,
|
|
285
|
+
DescribeGrafanaInstancesRequest,
|
|
224
286
|
UpdateExporterIntegrationRequest,
|
|
225
287
|
DescribeAccidentEventListRequest,
|
|
226
288
|
CreateRecordingRuleResponse,
|
|
227
289
|
MetricDatum,
|
|
290
|
+
CreateGrafanaNotificationChannelResponse,
|
|
228
291
|
DescribeAlarmNoticeResponse,
|
|
229
292
|
DescribeBindingPolicyObjectListInstanceGroup,
|
|
230
|
-
|
|
293
|
+
DescribeProductEventListEventsGroupInfo,
|
|
294
|
+
UninstallGrafanaPluginsRequest,
|
|
295
|
+
CleanGrafanaInstanceRequest,
|
|
296
|
+
UpgradeGrafanaInstanceResponse,
|
|
231
297
|
DeleteAlertRulesRequest,
|
|
298
|
+
DescribeSSOAccountRequest,
|
|
232
299
|
DescribeAlarmNoticeRequest,
|
|
233
300
|
UninstallGrafanaDashboardRequest,
|
|
301
|
+
GrafanaNotificationChannel,
|
|
234
302
|
CreatePrometheusAgentRequest,
|
|
235
303
|
DescribeBindingPolicyObjectListDimension,
|
|
236
304
|
CreateAlarmNoticeRequest,
|
|
@@ -240,17 +308,26 @@ import {
|
|
|
240
308
|
DescribeRecordingRulesRequest,
|
|
241
309
|
UnBindingAllPolicyObjectRequest,
|
|
242
310
|
CLSNotice,
|
|
311
|
+
EnableGrafanaInternetResponse,
|
|
243
312
|
DescribePolicyGroupInfoEventCondition,
|
|
244
313
|
PrometheusRuleKV,
|
|
245
314
|
ModifyAlarmPolicyStatusResponse,
|
|
246
|
-
|
|
315
|
+
DescribeGrafanaWhiteListResponse,
|
|
247
316
|
UpdateRecordingRuleRequest,
|
|
248
317
|
AlarmPolicyCondition,
|
|
249
318
|
ModifyPolicyGroupCondition,
|
|
319
|
+
DescribeDNSConfigRequest,
|
|
320
|
+
UpdateDNSConfigResponse,
|
|
250
321
|
DescribePolicyConditionListCondition,
|
|
322
|
+
UpdateGrafanaWhiteListRequest,
|
|
251
323
|
PrometheusInstancesItem,
|
|
252
324
|
DeleteServiceDiscoveryRequest,
|
|
253
|
-
|
|
325
|
+
UpdateSSOAccountResponse,
|
|
326
|
+
DescribeInstalledPluginsResponse,
|
|
327
|
+
UpdateGrafanaConfigResponse,
|
|
328
|
+
DeleteSSOAccountResponse,
|
|
329
|
+
DescribeGrafanaInstancesResponse,
|
|
330
|
+
UnBindingAllPolicyObjectResponse,
|
|
254
331
|
DescribePrometheusInstancesRequest,
|
|
255
332
|
DescribeProductEventListOverView,
|
|
256
333
|
DescribePolicyConditionListConfigManualCalcValue,
|
|
@@ -269,39 +346,13 @@ export class Client extends AbstractClient {
|
|
|
269
346
|
}
|
|
270
347
|
|
|
271
348
|
/**
|
|
272
|
-
|
|
273
|
-
默认单租户指标上限:100个。
|
|
274
|
-
单次上报最多 30 个指标/值对,请求返回错误时,请求中所有的指标/值均不会被保存。
|
|
275
|
-
|
|
276
|
-
上报的时间戳为期望保存的时间戳,建议构造整数分钟时刻的时间戳。
|
|
277
|
-
时间戳时间范围必须为当前时间到 300 秒前之间。
|
|
278
|
-
同一 IP 指标对的数据需按分钟先后顺序上报。
|
|
279
|
-
*/
|
|
280
|
-
async PutMonitorData(
|
|
281
|
-
req: PutMonitorDataRequest,
|
|
282
|
-
cb?: (error: string, rep: PutMonitorDataResponse) => void
|
|
283
|
-
): Promise<PutMonitorDataResponse> {
|
|
284
|
-
return this.request("PutMonitorData", req, cb)
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
/**
|
|
288
|
-
* 查询告警策略列表
|
|
289
|
-
*/
|
|
290
|
-
async DescribeAlarmPolicies(
|
|
291
|
-
req: DescribeAlarmPoliciesRequest,
|
|
292
|
-
cb?: (error: string, rep: DescribeAlarmPoliciesResponse) => void
|
|
293
|
-
): Promise<DescribeAlarmPoliciesResponse> {
|
|
294
|
-
return this.request("DescribeAlarmPolicies", req, cb)
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
/**
|
|
298
|
-
* 删除策略的关联对象
|
|
349
|
+
* 更新 Grafana 告警通道
|
|
299
350
|
*/
|
|
300
|
-
async
|
|
301
|
-
req:
|
|
302
|
-
cb?: (error: string, rep:
|
|
303
|
-
): Promise<
|
|
304
|
-
return this.request("
|
|
351
|
+
async UpdateGrafanaNotificationChannel(
|
|
352
|
+
req: UpdateGrafanaNotificationChannelRequest,
|
|
353
|
+
cb?: (error: string, rep: UpdateGrafanaNotificationChannelResponse) => void
|
|
354
|
+
): Promise<UpdateGrafanaNotificationChannelResponse> {
|
|
355
|
+
return this.request("UpdateGrafanaNotificationChannel", req, cb)
|
|
305
356
|
}
|
|
306
357
|
|
|
307
358
|
/**
|
|
@@ -316,26 +367,6 @@ export class Client extends AbstractClient {
|
|
|
316
367
|
return this.request("CreateAlertRule", req, cb)
|
|
317
368
|
}
|
|
318
369
|
|
|
319
|
-
/**
|
|
320
|
-
* 发送自定义消息告警
|
|
321
|
-
*/
|
|
322
|
-
async SendCustomAlarmMsg(
|
|
323
|
-
req: SendCustomAlarmMsgRequest,
|
|
324
|
-
cb?: (error: string, rep: SendCustomAlarmMsgResponse) => void
|
|
325
|
-
): Promise<SendCustomAlarmMsgResponse> {
|
|
326
|
-
return this.request("SendCustomAlarmMsg", req, cb)
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
/**
|
|
330
|
-
* 获取条件模板列表
|
|
331
|
-
*/
|
|
332
|
-
async DescribeConditionsTemplateList(
|
|
333
|
-
req: DescribeConditionsTemplateListRequest,
|
|
334
|
-
cb?: (error: string, rep: DescribeConditionsTemplateListResponse) => void
|
|
335
|
-
): Promise<DescribeConditionsTemplateListResponse> {
|
|
336
|
-
return this.request("DescribeConditionsTemplateList", req, cb)
|
|
337
|
-
}
|
|
338
|
-
|
|
339
370
|
/**
|
|
340
371
|
* 获取已绑定对象列表
|
|
341
372
|
*/
|
|
@@ -347,162 +378,155 @@ export class Client extends AbstractClient {
|
|
|
347
378
|
}
|
|
348
379
|
|
|
349
380
|
/**
|
|
350
|
-
|
|
381
|
+
* 更新 Prometheus 的报警规则。
|
|
382
|
+
|
|
383
|
+
请注意,**告警对象和告警消息是 Prometheus Rule Annotations 的特殊字段,需要通过 annotations 来传递,对应的 Key 分别为summary/description**,,请参考 [Prometheus Rule更多配置请参考](https://prometheus.io/docs/prometheus/latest/configuration/alerting_rules/)。
|
|
384
|
+
*/
|
|
385
|
+
async UpdateAlertRule(
|
|
386
|
+
req: UpdateAlertRuleRequest,
|
|
387
|
+
cb?: (error: string, rep: UpdateAlertRuleResponse) => void
|
|
388
|
+
): Promise<UpdateAlertRuleResponse> {
|
|
389
|
+
return this.request("UpdateAlertRule", req, cb)
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
/**
|
|
393
|
+
* 修改告警接收人
|
|
351
394
|
*/
|
|
352
|
-
async
|
|
353
|
-
req:
|
|
354
|
-
cb?: (error: string, rep:
|
|
355
|
-
): Promise<
|
|
356
|
-
return this.request("
|
|
395
|
+
async ModifyAlarmReceivers(
|
|
396
|
+
req: ModifyAlarmReceiversRequest,
|
|
397
|
+
cb?: (error: string, rep: ModifyAlarmReceiversResponse) => void
|
|
398
|
+
): Promise<ModifyAlarmReceiversResponse> {
|
|
399
|
+
return this.request("ModifyAlarmReceivers", req, cb)
|
|
357
400
|
}
|
|
358
401
|
|
|
359
402
|
/**
|
|
360
|
-
*
|
|
403
|
+
* 将告警策略绑定到特定对象
|
|
361
404
|
*/
|
|
362
|
-
async
|
|
363
|
-
req:
|
|
364
|
-
cb?: (error: string, rep:
|
|
365
|
-
): Promise<
|
|
366
|
-
return this.request("
|
|
405
|
+
async BindingPolicyObject(
|
|
406
|
+
req: BindingPolicyObjectRequest,
|
|
407
|
+
cb?: (error: string, rep: BindingPolicyObjectResponse) => void
|
|
408
|
+
): Promise<BindingPolicyObjectResponse> {
|
|
409
|
+
return this.request("BindingPolicyObject", req, cb)
|
|
367
410
|
}
|
|
368
411
|
|
|
369
412
|
/**
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
): Promise<DeleteServiceDiscoveryResponse> {
|
|
378
|
-
return this.request("DeleteServiceDiscovery", req, cb)
|
|
413
|
+
* 创建 Grafana 实例
|
|
414
|
+
*/
|
|
415
|
+
async CreateGrafanaInstance(
|
|
416
|
+
req: CreateGrafanaInstanceRequest,
|
|
417
|
+
cb?: (error: string, rep: CreateGrafanaInstanceResponse) => void
|
|
418
|
+
): Promise<CreateGrafanaInstanceResponse> {
|
|
419
|
+
return this.request("CreateGrafanaInstance", req, cb)
|
|
379
420
|
}
|
|
380
421
|
|
|
381
422
|
/**
|
|
382
|
-
*
|
|
423
|
+
* 获取基础告警列表
|
|
383
424
|
*/
|
|
384
|
-
async
|
|
385
|
-
req:
|
|
386
|
-
cb?: (error: string, rep:
|
|
387
|
-
): Promise<
|
|
388
|
-
return this.request("
|
|
425
|
+
async DescribeBasicAlarmList(
|
|
426
|
+
req: DescribeBasicAlarmListRequest,
|
|
427
|
+
cb?: (error: string, rep: DescribeBasicAlarmListResponse) => void
|
|
428
|
+
): Promise<DescribeBasicAlarmListResponse> {
|
|
429
|
+
return this.request("DescribeBasicAlarmList", req, cb)
|
|
389
430
|
}
|
|
390
431
|
|
|
391
432
|
/**
|
|
392
|
-
*
|
|
433
|
+
* 查询云监控产品列表,支持云服务器CVM、云数据库、云消息队列、负载均衡、容器服务、专线等云产品。
|
|
393
434
|
*/
|
|
394
|
-
async
|
|
395
|
-
req:
|
|
396
|
-
cb?: (error: string, rep:
|
|
397
|
-
): Promise<
|
|
398
|
-
return this.request("
|
|
435
|
+
async DescribeProductList(
|
|
436
|
+
req: DescribeProductListRequest,
|
|
437
|
+
cb?: (error: string, rep: DescribeProductListResponse) => void
|
|
438
|
+
): Promise<DescribeProductListResponse> {
|
|
439
|
+
return this.request("DescribeProductList", req, cb)
|
|
399
440
|
}
|
|
400
441
|
|
|
401
442
|
/**
|
|
402
|
-
*
|
|
443
|
+
* 更新已授权账号的备注、权限信息,会直接覆盖原有的信息,不传则不会更新。
|
|
403
444
|
*/
|
|
404
|
-
async
|
|
405
|
-
req:
|
|
406
|
-
cb?: (error: string, rep:
|
|
407
|
-
): Promise<
|
|
408
|
-
return this.request("
|
|
445
|
+
async UpdateSSOAccount(
|
|
446
|
+
req: UpdateSSOAccountRequest,
|
|
447
|
+
cb?: (error: string, rep: UpdateSSOAccountResponse) => void
|
|
448
|
+
): Promise<UpdateSSOAccountResponse> {
|
|
449
|
+
return this.request("UpdateSSOAccount", req, cb)
|
|
409
450
|
}
|
|
410
451
|
|
|
411
452
|
/**
|
|
412
|
-
*
|
|
453
|
+
* 列出 Grafana 环境变量
|
|
413
454
|
*/
|
|
414
|
-
async
|
|
415
|
-
req:
|
|
416
|
-
cb?: (error: string, rep:
|
|
417
|
-
): Promise<
|
|
418
|
-
return this.request("
|
|
455
|
+
async DescribeGrafanaEnvironments(
|
|
456
|
+
req: DescribeGrafanaEnvironmentsRequest,
|
|
457
|
+
cb?: (error: string, rep: DescribeGrafanaEnvironmentsResponse) => void
|
|
458
|
+
): Promise<DescribeGrafanaEnvironmentsResponse> {
|
|
459
|
+
return this.request("DescribeGrafanaEnvironments", req, cb)
|
|
419
460
|
}
|
|
420
461
|
|
|
421
462
|
/**
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
req
|
|
429
|
-
cb?: (error: string, rep: GetMonitorDataResponse) => void
|
|
430
|
-
): Promise<GetMonitorDataResponse> {
|
|
431
|
-
return this.request("GetMonitorData", req, cb)
|
|
463
|
+
* 更新 Prometheus 的预聚合规则
|
|
464
|
+
*/
|
|
465
|
+
async UpdateRecordingRule(
|
|
466
|
+
req: UpdateRecordingRuleRequest,
|
|
467
|
+
cb?: (error: string, rep: UpdateRecordingRuleResponse) => void
|
|
468
|
+
): Promise<UpdateRecordingRuleResponse> {
|
|
469
|
+
return this.request("UpdateRecordingRule", req, cb)
|
|
432
470
|
}
|
|
433
471
|
|
|
434
472
|
/**
|
|
435
|
-
*
|
|
473
|
+
* 删除 Grafana 告警通道
|
|
436
474
|
*/
|
|
437
|
-
async
|
|
438
|
-
req:
|
|
439
|
-
cb?: (error: string, rep:
|
|
440
|
-
): Promise<
|
|
441
|
-
return this.request("
|
|
475
|
+
async DeleteGrafanaNotificationChannel(
|
|
476
|
+
req: DeleteGrafanaNotificationChannelRequest,
|
|
477
|
+
cb?: (error: string, rep: DeleteGrafanaNotificationChannelResponse) => void
|
|
478
|
+
): Promise<DeleteGrafanaNotificationChannelResponse> {
|
|
479
|
+
return this.request("DeleteGrafanaNotificationChannel", req, cb)
|
|
442
480
|
}
|
|
443
481
|
|
|
444
482
|
/**
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
req: DescribePrometheusInstancesRequest,
|
|
453
|
-
cb?: (error: string, rep: DescribePrometheusInstancesResponse) => void
|
|
454
|
-
): Promise<DescribePrometheusInstancesResponse> {
|
|
455
|
-
return this.request("DescribePrometheusInstances", req, cb)
|
|
483
|
+
* 列出 Grafana 的设置,即 grafana.ini 文件内容
|
|
484
|
+
*/
|
|
485
|
+
async DescribeGrafanaConfig(
|
|
486
|
+
req: DescribeGrafanaConfigRequest,
|
|
487
|
+
cb?: (error: string, rep: DescribeGrafanaConfigResponse) => void
|
|
488
|
+
): Promise<DescribeGrafanaConfigResponse> {
|
|
489
|
+
return this.request("DescribeGrafanaConfig", req, cb)
|
|
456
490
|
}
|
|
457
491
|
|
|
458
492
|
/**
|
|
459
|
-
*
|
|
493
|
+
* 批量删除 Prometheus 报警规则
|
|
460
494
|
*/
|
|
461
|
-
async
|
|
462
|
-
req:
|
|
463
|
-
cb?: (error: string, rep:
|
|
464
|
-
): Promise<
|
|
465
|
-
return this.request("
|
|
495
|
+
async DeleteAlertRules(
|
|
496
|
+
req: DeleteAlertRulesRequest,
|
|
497
|
+
cb?: (error: string, rep: DeleteAlertRulesResponse) => void
|
|
498
|
+
): Promise<DeleteAlertRulesResponse> {
|
|
499
|
+
return this.request("DeleteAlertRules", req, cb)
|
|
466
500
|
}
|
|
467
501
|
|
|
468
502
|
/**
|
|
469
|
-
*
|
|
503
|
+
* 启停告警策略
|
|
470
504
|
*/
|
|
471
|
-
async
|
|
472
|
-
req:
|
|
473
|
-
cb?: (error: string, rep:
|
|
474
|
-
): Promise<
|
|
475
|
-
return this.request("
|
|
505
|
+
async ModifyAlarmPolicyStatus(
|
|
506
|
+
req: ModifyAlarmPolicyStatusRequest,
|
|
507
|
+
cb?: (error: string, rep: ModifyAlarmPolicyStatusResponse) => void
|
|
508
|
+
): Promise<ModifyAlarmPolicyStatusResponse> {
|
|
509
|
+
return this.request("ModifyAlarmPolicyStatus", req, cb)
|
|
476
510
|
}
|
|
477
511
|
|
|
478
512
|
/**
|
|
479
|
-
*
|
|
513
|
+
* 删除 Prometheus 抓取任务
|
|
480
514
|
*/
|
|
481
|
-
async
|
|
482
|
-
req:
|
|
483
|
-
cb?: (error: string, rep:
|
|
484
|
-
): Promise<
|
|
485
|
-
return this.request("
|
|
515
|
+
async DeletePrometheusScrapeJobs(
|
|
516
|
+
req: DeletePrometheusScrapeJobsRequest,
|
|
517
|
+
cb?: (error: string, rep: DeletePrometheusScrapeJobsResponse) => void
|
|
518
|
+
): Promise<DeletePrometheusScrapeJobsResponse> {
|
|
519
|
+
return this.request("DeletePrometheusScrapeJobs", req, cb)
|
|
486
520
|
}
|
|
487
521
|
|
|
488
522
|
/**
|
|
489
|
-
*
|
|
523
|
+
* 设置 Grafana 单点登录,使用腾讯云账号
|
|
490
524
|
*/
|
|
491
|
-
async
|
|
492
|
-
req:
|
|
493
|
-
cb?: (error: string, rep:
|
|
494
|
-
): Promise<
|
|
495
|
-
return this.request("
|
|
496
|
-
}
|
|
497
|
-
|
|
498
|
-
/**
|
|
499
|
-
* 将告警策略绑定到特定对象
|
|
500
|
-
*/
|
|
501
|
-
async BindingPolicyObject(
|
|
502
|
-
req: BindingPolicyObjectRequest,
|
|
503
|
-
cb?: (error: string, rep: BindingPolicyObjectResponse) => void
|
|
504
|
-
): Promise<BindingPolicyObjectResponse> {
|
|
505
|
-
return this.request("BindingPolicyObject", req, cb)
|
|
525
|
+
async EnableGrafanaSSO(
|
|
526
|
+
req: EnableGrafanaSSORequest,
|
|
527
|
+
cb?: (error: string, rep: EnableGrafanaSSOResponse) => void
|
|
528
|
+
): Promise<EnableGrafanaSSOResponse> {
|
|
529
|
+
return this.request("EnableGrafanaSSO", req, cb)
|
|
506
530
|
}
|
|
507
531
|
|
|
508
532
|
/**
|
|
@@ -516,215 +540,195 @@ export class Client extends AbstractClient {
|
|
|
516
540
|
}
|
|
517
541
|
|
|
518
542
|
/**
|
|
519
|
-
*
|
|
520
|
-
*/
|
|
521
|
-
async CreateAlarmNotice(
|
|
522
|
-
req: CreateAlarmNoticeRequest,
|
|
523
|
-
cb?: (error: string, rep: CreateAlarmNoticeResponse) => void
|
|
524
|
-
): Promise<CreateAlarmNoticeResponse> {
|
|
525
|
-
return this.request("CreateAlarmNotice", req, cb)
|
|
526
|
-
}
|
|
527
|
-
|
|
528
|
-
/**
|
|
529
|
-
* 更新 Prometheus 报警策略状态
|
|
530
|
-
*/
|
|
531
|
-
async UpdateAlertRuleState(
|
|
532
|
-
req: UpdateAlertRuleStateRequest,
|
|
533
|
-
cb?: (error: string, rep: UpdateAlertRuleStateResponse) => void
|
|
534
|
-
): Promise<UpdateAlertRuleStateResponse> {
|
|
535
|
-
return this.request("UpdateAlertRuleState", req, cb)
|
|
536
|
-
}
|
|
537
|
-
|
|
538
|
-
/**
|
|
539
|
-
* 更新 exporter 集成配置
|
|
543
|
+
* 获取基础指标属性
|
|
540
544
|
*/
|
|
541
|
-
async
|
|
542
|
-
req:
|
|
543
|
-
cb?: (error: string, rep:
|
|
544
|
-
): Promise<
|
|
545
|
-
return this.request("
|
|
545
|
+
async DescribeBaseMetrics(
|
|
546
|
+
req: DescribeBaseMetricsRequest,
|
|
547
|
+
cb?: (error: string, rep: DescribeBaseMetricsResponse) => void
|
|
548
|
+
): Promise<DescribeBaseMetricsResponse> {
|
|
549
|
+
return this.request("DescribeBaseMetrics", req, cb)
|
|
546
550
|
}
|
|
547
551
|
|
|
548
552
|
/**
|
|
549
|
-
*
|
|
553
|
+
* 查询告警事件列表
|
|
550
554
|
*/
|
|
551
|
-
async
|
|
552
|
-
req:
|
|
553
|
-
cb?: (error: string, rep:
|
|
554
|
-
): Promise<
|
|
555
|
-
return this.request("
|
|
555
|
+
async DescribeAlarmEvents(
|
|
556
|
+
req: DescribeAlarmEventsRequest,
|
|
557
|
+
cb?: (error: string, rep: DescribeAlarmEventsResponse) => void
|
|
558
|
+
): Promise<DescribeAlarmEventsResponse> {
|
|
559
|
+
return this.request("DescribeAlarmEvents", req, cb)
|
|
556
560
|
}
|
|
557
561
|
|
|
558
562
|
/**
|
|
559
|
-
*
|
|
563
|
+
* 云监控告警删除告警通知模板
|
|
560
564
|
*/
|
|
561
|
-
async
|
|
562
|
-
req:
|
|
563
|
-
cb?: (error: string, rep:
|
|
564
|
-
): Promise<
|
|
565
|
-
return this.request("
|
|
565
|
+
async DeleteAlarmNotices(
|
|
566
|
+
req: DeleteAlarmNoticesRequest,
|
|
567
|
+
cb?: (error: string, rep: DeleteAlarmNoticesResponse) => void
|
|
568
|
+
): Promise<DeleteAlarmNoticesResponse> {
|
|
569
|
+
return this.request("DeleteAlarmNotices", req, cb)
|
|
566
570
|
}
|
|
567
571
|
|
|
568
572
|
/**
|
|
569
|
-
*
|
|
573
|
+
* 云监控告警编辑告警通知模板
|
|
570
574
|
*/
|
|
571
|
-
async
|
|
572
|
-
req:
|
|
573
|
-
cb?: (error: string, rep:
|
|
574
|
-
): Promise<
|
|
575
|
-
return this.request("
|
|
575
|
+
async ModifyAlarmNotice(
|
|
576
|
+
req: ModifyAlarmNoticeRequest,
|
|
577
|
+
cb?: (error: string, rep: ModifyAlarmNoticeResponse) => void
|
|
578
|
+
): Promise<ModifyAlarmNoticeResponse> {
|
|
579
|
+
return this.request("ModifyAlarmNotice", req, cb)
|
|
576
580
|
}
|
|
577
581
|
|
|
578
582
|
/**
|
|
579
|
-
*
|
|
583
|
+
* 创建 Prometheus 抓取任务
|
|
580
584
|
*/
|
|
581
|
-
async
|
|
582
|
-
req:
|
|
583
|
-
cb?: (error: string, rep:
|
|
584
|
-
): Promise<
|
|
585
|
-
return this.request("
|
|
585
|
+
async CreatePrometheusScrapeJob(
|
|
586
|
+
req: CreatePrometheusScrapeJobRequest,
|
|
587
|
+
cb?: (error: string, rep: CreatePrometheusScrapeJobResponse) => void
|
|
588
|
+
): Promise<CreatePrometheusScrapeJobResponse> {
|
|
589
|
+
return this.request("CreatePrometheusScrapeJob", req, cb)
|
|
586
590
|
}
|
|
587
591
|
|
|
588
592
|
/**
|
|
589
|
-
*
|
|
593
|
+
* 删除策略的关联对象
|
|
590
594
|
*/
|
|
591
|
-
async
|
|
592
|
-
req:
|
|
593
|
-
cb?: (error: string, rep:
|
|
594
|
-
): Promise<
|
|
595
|
-
return this.request("
|
|
595
|
+
async UnBindingPolicyObject(
|
|
596
|
+
req: UnBindingPolicyObjectRequest,
|
|
597
|
+
cb?: (error: string, rep: UnBindingPolicyObjectResponse) => void
|
|
598
|
+
): Promise<UnBindingPolicyObjectResponse> {
|
|
599
|
+
return this.request("UnBindingPolicyObject", req, cb)
|
|
596
600
|
}
|
|
597
601
|
|
|
598
602
|
/**
|
|
599
|
-
*
|
|
603
|
+
* 获取条件模板列表
|
|
600
604
|
*/
|
|
601
|
-
async
|
|
602
|
-
req:
|
|
603
|
-
cb?: (error: string, rep:
|
|
604
|
-
): Promise<
|
|
605
|
-
return this.request("
|
|
605
|
+
async DescribeConditionsTemplateList(
|
|
606
|
+
req: DescribeConditionsTemplateListRequest,
|
|
607
|
+
cb?: (error: string, rep: DescribeConditionsTemplateListResponse) => void
|
|
608
|
+
): Promise<DescribeConditionsTemplateListResponse> {
|
|
609
|
+
return this.request("DescribeConditionsTemplateList", req, cb)
|
|
606
610
|
}
|
|
607
611
|
|
|
608
612
|
/**
|
|
609
|
-
*
|
|
613
|
+
* 列出 Prometheus 抓取任务
|
|
610
614
|
*/
|
|
611
|
-
async
|
|
612
|
-
req:
|
|
613
|
-
cb?: (error: string, rep:
|
|
614
|
-
): Promise<
|
|
615
|
-
return this.request("
|
|
615
|
+
async DescribePrometheusScrapeJobs(
|
|
616
|
+
req: DescribePrometheusScrapeJobsRequest,
|
|
617
|
+
cb?: (error: string, rep: DescribePrometheusScrapeJobsResponse) => void
|
|
618
|
+
): Promise<DescribePrometheusScrapeJobsResponse> {
|
|
619
|
+
return this.request("DescribePrometheusScrapeJobs", req, cb)
|
|
616
620
|
}
|
|
617
621
|
|
|
618
622
|
/**
|
|
619
|
-
*
|
|
623
|
+
* 删除在腾讯云容器服务下创建的 Prometheus 服务发现。
|
|
620
624
|
<p>注意:前提条件,已经通过 Prometheus 控制台集成了对应的腾讯云容器服务,具体请参考
|
|
621
625
|
<a href="https://cloud.tencent.com/document/product/248/48859" target="_blank">Agent 安装</a>。</p>
|
|
622
626
|
*/
|
|
623
|
-
async
|
|
624
|
-
req:
|
|
625
|
-
cb?: (error: string, rep:
|
|
626
|
-
): Promise<
|
|
627
|
-
return this.request("
|
|
627
|
+
async DeleteServiceDiscovery(
|
|
628
|
+
req: DeleteServiceDiscoveryRequest,
|
|
629
|
+
cb?: (error: string, rep: DeleteServiceDiscoveryResponse) => void
|
|
630
|
+
): Promise<DeleteServiceDiscoveryResponse> {
|
|
631
|
+
return this.request("DeleteServiceDiscovery", req, cb)
|
|
628
632
|
}
|
|
629
633
|
|
|
630
634
|
/**
|
|
631
|
-
*
|
|
635
|
+
* 创建按量 Prometheus 实例,根据用量收费实例
|
|
632
636
|
*/
|
|
633
|
-
async
|
|
634
|
-
req:
|
|
635
|
-
cb?: (error: string, rep:
|
|
636
|
-
): Promise<
|
|
637
|
-
return this.request("
|
|
637
|
+
async CreatePrometheusMultiTenantInstancePostPayMode(
|
|
638
|
+
req: CreatePrometheusMultiTenantInstancePostPayModeRequest,
|
|
639
|
+
cb?: (error: string, rep: CreatePrometheusMultiTenantInstancePostPayModeResponse) => void
|
|
640
|
+
): Promise<CreatePrometheusMultiTenantInstancePostPayModeResponse> {
|
|
641
|
+
return this.request("CreatePrometheusMultiTenantInstancePostPayMode", req, cb)
|
|
638
642
|
}
|
|
639
643
|
|
|
640
644
|
/**
|
|
641
|
-
*
|
|
645
|
+
* 更新 Grafana 环境变量
|
|
642
646
|
*/
|
|
643
|
-
async
|
|
644
|
-
req:
|
|
645
|
-
cb?: (error: string, rep:
|
|
646
|
-
): Promise<
|
|
647
|
-
return this.request("
|
|
647
|
+
async UpdateGrafanaEnvironments(
|
|
648
|
+
req: UpdateGrafanaEnvironmentsRequest,
|
|
649
|
+
cb?: (error: string, rep: UpdateGrafanaEnvironmentsResponse) => void
|
|
650
|
+
): Promise<UpdateGrafanaEnvironmentsResponse> {
|
|
651
|
+
return this.request("UpdateGrafanaEnvironments", req, cb)
|
|
648
652
|
}
|
|
649
653
|
|
|
650
654
|
/**
|
|
651
|
-
*
|
|
655
|
+
* 获取基础告警策略条件
|
|
652
656
|
*/
|
|
653
|
-
async
|
|
654
|
-
req:
|
|
655
|
-
cb?: (error: string, rep:
|
|
656
|
-
): Promise<
|
|
657
|
-
return this.request("
|
|
657
|
+
async DescribePolicyConditionList(
|
|
658
|
+
req: DescribePolicyConditionListRequest,
|
|
659
|
+
cb?: (error: string, rep: DescribePolicyConditionListResponse) => void
|
|
660
|
+
): Promise<DescribePolicyConditionListResponse> {
|
|
661
|
+
return this.request("DescribePolicyConditionList", req, cb)
|
|
658
662
|
}
|
|
659
663
|
|
|
660
664
|
/**
|
|
661
|
-
*
|
|
665
|
+
* 修改告警策略触发条件
|
|
662
666
|
*/
|
|
663
|
-
async
|
|
664
|
-
req:
|
|
665
|
-
cb?: (error: string, rep:
|
|
666
|
-
): Promise<
|
|
667
|
-
return this.request("
|
|
667
|
+
async ModifyAlarmPolicyCondition(
|
|
668
|
+
req: ModifyAlarmPolicyConditionRequest,
|
|
669
|
+
cb?: (error: string, rep: ModifyAlarmPolicyConditionResponse) => void
|
|
670
|
+
): Promise<ModifyAlarmPolicyConditionResponse> {
|
|
671
|
+
return this.request("ModifyAlarmPolicyCondition", req, cb)
|
|
668
672
|
}
|
|
669
673
|
|
|
670
674
|
/**
|
|
671
|
-
*
|
|
675
|
+
* 获取 Prometheus Agent 管理相关的命令行
|
|
672
676
|
*/
|
|
673
|
-
async
|
|
674
|
-
req:
|
|
675
|
-
cb?: (error: string, rep:
|
|
676
|
-
): Promise<
|
|
677
|
-
return this.request("
|
|
677
|
+
async GetPrometheusAgentManagementCommand(
|
|
678
|
+
req: GetPrometheusAgentManagementCommandRequest,
|
|
679
|
+
cb?: (error: string, rep: GetPrometheusAgentManagementCommandResponse) => void
|
|
680
|
+
): Promise<GetPrometheusAgentManagementCommandResponse> {
|
|
681
|
+
return this.request("GetPrometheusAgentManagementCommand", req, cb)
|
|
678
682
|
}
|
|
679
683
|
|
|
680
684
|
/**
|
|
681
|
-
*
|
|
685
|
+
* 更新 Prometheus 抓取任务
|
|
682
686
|
*/
|
|
683
|
-
async
|
|
684
|
-
req:
|
|
685
|
-
cb?: (error: string, rep:
|
|
686
|
-
): Promise<
|
|
687
|
-
return this.request("
|
|
687
|
+
async UpdatePrometheusScrapeJob(
|
|
688
|
+
req: UpdatePrometheusScrapeJobRequest,
|
|
689
|
+
cb?: (error: string, rep: UpdatePrometheusScrapeJobResponse) => void
|
|
690
|
+
): Promise<UpdatePrometheusScrapeJobResponse> {
|
|
691
|
+
return this.request("UpdatePrometheusScrapeJob", req, cb)
|
|
688
692
|
}
|
|
689
693
|
|
|
690
694
|
/**
|
|
691
|
-
*
|
|
695
|
+
* 升级 Grafana 实例
|
|
692
696
|
*/
|
|
693
|
-
async
|
|
694
|
-
req:
|
|
695
|
-
cb?: (error: string, rep:
|
|
696
|
-
): Promise<
|
|
697
|
-
return this.request("
|
|
697
|
+
async UpgradeGrafanaInstance(
|
|
698
|
+
req: UpgradeGrafanaInstanceRequest,
|
|
699
|
+
cb?: (error: string, rep: UpgradeGrafanaInstanceResponse) => void
|
|
700
|
+
): Promise<UpgradeGrafanaInstanceResponse> {
|
|
701
|
+
return this.request("UpgradeGrafanaInstance", req, cb)
|
|
698
702
|
}
|
|
699
703
|
|
|
700
704
|
/**
|
|
701
|
-
*
|
|
705
|
+
* 删除 Grafana 集成配置
|
|
702
706
|
*/
|
|
703
|
-
async
|
|
704
|
-
req:
|
|
705
|
-
cb?: (error: string, rep:
|
|
706
|
-
): Promise<
|
|
707
|
-
return this.request("
|
|
707
|
+
async DeleteGrafanaIntegration(
|
|
708
|
+
req: DeleteGrafanaIntegrationRequest,
|
|
709
|
+
cb?: (error: string, rep: DeleteGrafanaIntegrationResponse) => void
|
|
710
|
+
): Promise<DeleteGrafanaIntegrationResponse> {
|
|
711
|
+
return this.request("DeleteGrafanaIntegration", req, cb)
|
|
708
712
|
}
|
|
709
713
|
|
|
710
714
|
/**
|
|
711
|
-
*
|
|
715
|
+
* 绑定 Grafana 可视化服务实例
|
|
712
716
|
*/
|
|
713
|
-
async
|
|
714
|
-
req:
|
|
715
|
-
cb?: (error: string, rep:
|
|
716
|
-
): Promise<
|
|
717
|
-
return this.request("
|
|
717
|
+
async BindPrometheusManagedGrafana(
|
|
718
|
+
req: BindPrometheusManagedGrafanaRequest,
|
|
719
|
+
cb?: (error: string, rep: BindPrometheusManagedGrafanaResponse) => void
|
|
720
|
+
): Promise<BindPrometheusManagedGrafanaResponse> {
|
|
721
|
+
return this.request("BindPrometheusManagedGrafana", req, cb)
|
|
718
722
|
}
|
|
719
723
|
|
|
720
724
|
/**
|
|
721
|
-
*
|
|
725
|
+
* 删除全部的关联对象
|
|
722
726
|
*/
|
|
723
|
-
async
|
|
724
|
-
req:
|
|
725
|
-
cb?: (error: string, rep:
|
|
726
|
-
): Promise<
|
|
727
|
-
return this.request("
|
|
727
|
+
async UnBindingAllPolicyObject(
|
|
728
|
+
req: UnBindingAllPolicyObjectRequest,
|
|
729
|
+
cb?: (error: string, rep: UnBindingAllPolicyObjectResponse) => void
|
|
730
|
+
): Promise<UnBindingAllPolicyObjectResponse> {
|
|
731
|
+
return this.request("UnBindingAllPolicyObject", req, cb)
|
|
728
732
|
}
|
|
729
733
|
|
|
730
734
|
/**
|
|
@@ -737,16 +741,6 @@ export class Client extends AbstractClient {
|
|
|
737
741
|
return this.request("DeletePolicyGroup", req, cb)
|
|
738
742
|
}
|
|
739
743
|
|
|
740
|
-
/**
|
|
741
|
-
* 获取 Prometheus Agent 管理相关的命令行
|
|
742
|
-
*/
|
|
743
|
-
async GetPrometheusAgentManagementCommand(
|
|
744
|
-
req: GetPrometheusAgentManagementCommandRequest,
|
|
745
|
-
cb?: (error: string, rep: GetPrometheusAgentManagementCommandResponse) => void
|
|
746
|
-
): Promise<GetPrometheusAgentManagementCommandResponse> {
|
|
747
|
-
return this.request("GetPrometheusAgentManagementCommand", req, cb)
|
|
748
|
-
}
|
|
749
|
-
|
|
750
744
|
/**
|
|
751
745
|
* 在腾讯云容器服务下更新 Prometheus 服务发现。
|
|
752
746
|
<p>注意:前提条件,已经通过 Prometheus 控制台集成了对应的腾讯云容器服务,具体请参考
|
|
@@ -759,16 +753,6 @@ export class Client extends AbstractClient {
|
|
|
759
753
|
return this.request("UpdateServiceDiscovery", req, cb)
|
|
760
754
|
}
|
|
761
755
|
|
|
762
|
-
/**
|
|
763
|
-
* 云监控告警编辑告警通知模板
|
|
764
|
-
*/
|
|
765
|
-
async ModifyAlarmNotice(
|
|
766
|
-
req: ModifyAlarmNoticeRequest,
|
|
767
|
-
cb?: (error: string, rep: ModifyAlarmNoticeResponse) => void
|
|
768
|
-
): Promise<ModifyAlarmNoticeResponse> {
|
|
769
|
-
return this.request("ModifyAlarmNotice", req, cb)
|
|
770
|
-
}
|
|
771
|
-
|
|
772
756
|
/**
|
|
773
757
|
* 云监控支持多种类型的监控,此接口列出支持的所有类型
|
|
774
758
|
*/
|
|
@@ -780,15 +764,23 @@ export class Client extends AbstractClient {
|
|
|
780
764
|
}
|
|
781
765
|
|
|
782
766
|
/**
|
|
783
|
-
|
|
767
|
+
* SSO单点登录时,设置是否cam鉴权
|
|
768
|
+
*/
|
|
769
|
+
async EnableSSOCamCheck(
|
|
770
|
+
req: EnableSSOCamCheckRequest,
|
|
771
|
+
cb?: (error: string, rep: EnableSSOCamCheckResponse) => void
|
|
772
|
+
): Promise<EnableSSOCamCheckResponse> {
|
|
773
|
+
return this.request("EnableSSOCamCheck", req, cb)
|
|
774
|
+
}
|
|
784
775
|
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
776
|
+
/**
|
|
777
|
+
* 安装 Grafana Plugin
|
|
778
|
+
*/
|
|
779
|
+
async InstallPlugins(
|
|
780
|
+
req: InstallPluginsRequest,
|
|
781
|
+
cb?: (error: string, rep: InstallPluginsResponse) => void
|
|
782
|
+
): Promise<InstallPluginsResponse> {
|
|
783
|
+
return this.request("InstallPlugins", req, cb)
|
|
792
784
|
}
|
|
793
785
|
|
|
794
786
|
/**
|
|
@@ -811,36 +803,6 @@ export class Client extends AbstractClient {
|
|
|
811
803
|
return this.request("DeleteRecordingRules", req, cb)
|
|
812
804
|
}
|
|
813
805
|
|
|
814
|
-
/**
|
|
815
|
-
* 增加策略组
|
|
816
|
-
*/
|
|
817
|
-
async CreatePolicyGroup(
|
|
818
|
-
req: CreatePolicyGroupRequest,
|
|
819
|
-
cb?: (error: string, rep: CreatePolicyGroupResponse) => void
|
|
820
|
-
): Promise<CreatePolicyGroupResponse> {
|
|
821
|
-
return this.request("CreatePolicyGroup", req, cb)
|
|
822
|
-
}
|
|
823
|
-
|
|
824
|
-
/**
|
|
825
|
-
* 销毁按量 Prometheus 实例
|
|
826
|
-
*/
|
|
827
|
-
async TerminatePrometheusInstances(
|
|
828
|
-
req: TerminatePrometheusInstancesRequest,
|
|
829
|
-
cb?: (error: string, rep: TerminatePrometheusInstancesResponse) => void
|
|
830
|
-
): Promise<TerminatePrometheusInstancesResponse> {
|
|
831
|
-
return this.request("TerminatePrometheusInstances", req, cb)
|
|
832
|
-
}
|
|
833
|
-
|
|
834
|
-
/**
|
|
835
|
-
* 删除 Prometheus 抓取任务
|
|
836
|
-
*/
|
|
837
|
-
async DeletePrometheusScrapeJobs(
|
|
838
|
-
req: DeletePrometheusScrapeJobsRequest,
|
|
839
|
-
cb?: (error: string, rep: DeletePrometheusScrapeJobsResponse) => void
|
|
840
|
-
): Promise<DeletePrometheusScrapeJobsResponse> {
|
|
841
|
-
return this.request("DeletePrometheusScrapeJobs", req, cb)
|
|
842
|
-
}
|
|
843
|
-
|
|
844
806
|
/**
|
|
845
807
|
* 分页获取产品事件的列表
|
|
846
808
|
*/
|
|
@@ -851,26 +813,6 @@ export class Client extends AbstractClient {
|
|
|
851
813
|
return this.request("DescribeProductEventList", req, cb)
|
|
852
814
|
}
|
|
853
815
|
|
|
854
|
-
/**
|
|
855
|
-
* 获取平台事件列表
|
|
856
|
-
*/
|
|
857
|
-
async DescribeAccidentEventList(
|
|
858
|
-
req: DescribeAccidentEventListRequest,
|
|
859
|
-
cb?: (error: string, rep: DescribeAccidentEventListResponse) => void
|
|
860
|
-
): Promise<DescribeAccidentEventListResponse> {
|
|
861
|
-
return this.request("DescribeAccidentEventList", req, cb)
|
|
862
|
-
}
|
|
863
|
-
|
|
864
|
-
/**
|
|
865
|
-
* 批量删除 Prometheus 报警规则
|
|
866
|
-
*/
|
|
867
|
-
async DeleteAlertRules(
|
|
868
|
-
req: DeleteAlertRulesRequest,
|
|
869
|
-
cb?: (error: string, rep: DeleteAlertRulesResponse) => void
|
|
870
|
-
): Promise<DeleteAlertRulesResponse> {
|
|
871
|
-
return this.request("DeleteAlertRules", req, cb)
|
|
872
|
-
}
|
|
873
|
-
|
|
874
816
|
/**
|
|
875
817
|
* 查询告警历史
|
|
876
818
|
|
|
@@ -884,13 +826,33 @@ export class Client extends AbstractClient {
|
|
|
884
826
|
}
|
|
885
827
|
|
|
886
828
|
/**
|
|
887
|
-
*
|
|
829
|
+
* Grafana可视化服务 删除授权用户
|
|
888
830
|
*/
|
|
889
|
-
async
|
|
890
|
-
req:
|
|
891
|
-
cb?: (error: string, rep:
|
|
892
|
-
): Promise<
|
|
893
|
-
return this.request("
|
|
831
|
+
async DeleteSSOAccount(
|
|
832
|
+
req: DeleteSSOAccountRequest,
|
|
833
|
+
cb?: (error: string, rep: DeleteSSOAccountResponse) => void
|
|
834
|
+
): Promise<DeleteSSOAccountResponse> {
|
|
835
|
+
return this.request("DeleteSSOAccount", req, cb)
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
/**
|
|
839
|
+
* 查询单个通知模板的详情
|
|
840
|
+
*/
|
|
841
|
+
async DescribeAlarmNotice(
|
|
842
|
+
req: DescribeAlarmNoticeRequest,
|
|
843
|
+
cb?: (error: string, rep: DescribeAlarmNoticeResponse) => void
|
|
844
|
+
): Promise<DescribeAlarmNoticeResponse> {
|
|
845
|
+
return this.request("DescribeAlarmNotice", req, cb)
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
/**
|
|
849
|
+
* 创建 Grafana 集成配置
|
|
850
|
+
*/
|
|
851
|
+
async CreateGrafanaIntegration(
|
|
852
|
+
req: CreateGrafanaIntegrationRequest,
|
|
853
|
+
cb?: (error: string, rep: CreateGrafanaIntegrationResponse) => void
|
|
854
|
+
): Promise<CreateGrafanaIntegrationResponse> {
|
|
855
|
+
return this.request("CreateGrafanaIntegration", req, cb)
|
|
894
856
|
}
|
|
895
857
|
|
|
896
858
|
/**
|
|
@@ -905,164 +867,619 @@ export class Client extends AbstractClient {
|
|
|
905
867
|
}
|
|
906
868
|
|
|
907
869
|
/**
|
|
908
|
-
*
|
|
870
|
+
* 删除 Grafana 实例
|
|
909
871
|
*/
|
|
910
|
-
async
|
|
911
|
-
req:
|
|
912
|
-
cb?: (error: string, rep:
|
|
913
|
-
): Promise<
|
|
914
|
-
return this.request("
|
|
872
|
+
async DeleteGrafanaInstance(
|
|
873
|
+
req: DeleteGrafanaInstanceRequest,
|
|
874
|
+
cb?: (error: string, rep: DeleteGrafanaInstanceResponse) => void
|
|
875
|
+
): Promise<DeleteGrafanaInstanceResponse> {
|
|
876
|
+
return this.request("DeleteGrafanaInstance", req, cb)
|
|
915
877
|
}
|
|
916
878
|
|
|
917
879
|
/**
|
|
918
|
-
*
|
|
880
|
+
* Grafana实例授权其他腾讯云用户
|
|
919
881
|
*/
|
|
920
|
-
async
|
|
921
|
-
req:
|
|
922
|
-
cb?: (error: string, rep:
|
|
923
|
-
): Promise<
|
|
924
|
-
return this.request("
|
|
882
|
+
async CreateSSOAccount(
|
|
883
|
+
req: CreateSSOAccountRequest,
|
|
884
|
+
cb?: (error: string, rep: CreateSSOAccountResponse) => void
|
|
885
|
+
): Promise<CreateSSOAccountResponse> {
|
|
886
|
+
return this.request("CreateSSOAccount", req, cb)
|
|
925
887
|
}
|
|
926
888
|
|
|
927
889
|
/**
|
|
928
|
-
*
|
|
890
|
+
* 发送自定义消息告警
|
|
929
891
|
*/
|
|
930
|
-
async
|
|
931
|
-
req:
|
|
932
|
-
cb?: (error: string, rep:
|
|
933
|
-
): Promise<
|
|
934
|
-
return this.request("
|
|
892
|
+
async SendCustomAlarmMsg(
|
|
893
|
+
req: SendCustomAlarmMsgRequest,
|
|
894
|
+
cb?: (error: string, rep: SendCustomAlarmMsgResponse) => void
|
|
895
|
+
): Promise<SendCustomAlarmMsgResponse> {
|
|
896
|
+
return this.request("SendCustomAlarmMsg", req, cb)
|
|
935
897
|
}
|
|
936
898
|
|
|
937
899
|
/**
|
|
938
|
-
*
|
|
900
|
+
* 云监控告警修改告警策略绑定的告警通知模板
|
|
939
901
|
*/
|
|
940
|
-
async
|
|
941
|
-
req:
|
|
942
|
-
cb?: (error: string, rep:
|
|
943
|
-
): Promise<
|
|
944
|
-
return this.request("
|
|
902
|
+
async ModifyAlarmPolicyNotice(
|
|
903
|
+
req: ModifyAlarmPolicyNoticeRequest,
|
|
904
|
+
cb?: (error: string, rep: ModifyAlarmPolicyNoticeResponse) => void
|
|
905
|
+
): Promise<ModifyAlarmPolicyNoticeResponse> {
|
|
906
|
+
return this.request("ModifyAlarmPolicyNotice", req, cb)
|
|
945
907
|
}
|
|
946
908
|
|
|
947
909
|
/**
|
|
948
|
-
*
|
|
910
|
+
* 设置 Grafana 公网访问
|
|
949
911
|
*/
|
|
950
|
-
async
|
|
951
|
-
req:
|
|
952
|
-
cb?: (error: string, rep:
|
|
953
|
-
): Promise<
|
|
954
|
-
return this.request("
|
|
912
|
+
async EnableGrafanaInternet(
|
|
913
|
+
req: EnableGrafanaInternetRequest,
|
|
914
|
+
cb?: (error: string, rep: EnableGrafanaInternetResponse) => void
|
|
915
|
+
): Promise<EnableGrafanaInternetResponse> {
|
|
916
|
+
return this.request("EnableGrafanaInternet", req, cb)
|
|
955
917
|
}
|
|
956
918
|
|
|
957
919
|
/**
|
|
958
|
-
*
|
|
920
|
+
* 创建 Grafana 告警通道
|
|
959
921
|
*/
|
|
960
|
-
async
|
|
961
|
-
req:
|
|
962
|
-
cb?: (error: string, rep:
|
|
963
|
-
): Promise<
|
|
964
|
-
return this.request("
|
|
922
|
+
async CreateGrafanaNotificationChannel(
|
|
923
|
+
req: CreateGrafanaNotificationChannelRequest,
|
|
924
|
+
cb?: (error: string, rep: CreateGrafanaNotificationChannelResponse) => void
|
|
925
|
+
): Promise<CreateGrafanaNotificationChannelResponse> {
|
|
926
|
+
return this.request("CreateGrafanaNotificationChannel", req, cb)
|
|
965
927
|
}
|
|
966
928
|
|
|
967
929
|
/**
|
|
968
|
-
*
|
|
930
|
+
* 修改 Grafana 实例属性
|
|
969
931
|
*/
|
|
970
|
-
async
|
|
971
|
-
req:
|
|
972
|
-
cb?: (error: string, rep:
|
|
973
|
-
): Promise<
|
|
974
|
-
return this.request("
|
|
932
|
+
async ModifyGrafanaInstance(
|
|
933
|
+
req: ModifyGrafanaInstanceRequest,
|
|
934
|
+
cb?: (error: string, rep: ModifyGrafanaInstanceResponse) => void
|
|
935
|
+
): Promise<ModifyGrafanaInstanceResponse> {
|
|
936
|
+
return this.request("ModifyGrafanaInstance", req, cb)
|
|
975
937
|
}
|
|
976
938
|
|
|
977
939
|
/**
|
|
978
|
-
*
|
|
940
|
+
* 恢复 Grafana 实例
|
|
979
941
|
*/
|
|
980
|
-
async
|
|
981
|
-
req:
|
|
982
|
-
cb?: (error: string, rep:
|
|
983
|
-
): Promise<
|
|
984
|
-
return this.request("
|
|
942
|
+
async ResumeGrafanaInstance(
|
|
943
|
+
req: ResumeGrafanaInstanceRequest,
|
|
944
|
+
cb?: (error: string, rep: ResumeGrafanaInstanceResponse) => void
|
|
945
|
+
): Promise<ResumeGrafanaInstanceResponse> {
|
|
946
|
+
return this.request("ResumeGrafanaInstance", req, cb)
|
|
985
947
|
}
|
|
986
948
|
|
|
987
949
|
/**
|
|
988
|
-
*
|
|
950
|
+
* 列出当前grafana实例的所有授权账号
|
|
989
951
|
*/
|
|
990
|
-
async
|
|
991
|
-
req:
|
|
992
|
-
cb?: (error: string, rep:
|
|
993
|
-
): Promise<
|
|
994
|
-
return this.request("
|
|
952
|
+
async DescribeSSOAccount(
|
|
953
|
+
req: DescribeSSOAccountRequest,
|
|
954
|
+
cb?: (error: string, rep: DescribeSSOAccountResponse) => void
|
|
955
|
+
): Promise<DescribeSSOAccountResponse> {
|
|
956
|
+
return this.request("DescribeSSOAccount", req, cb)
|
|
995
957
|
}
|
|
996
958
|
|
|
997
959
|
/**
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
): Promise<DescribeServiceDiscoveryResponse> {
|
|
1006
|
-
return this.request("DescribeServiceDiscovery", req, cb)
|
|
960
|
+
* 创建云监控告警策略
|
|
961
|
+
*/
|
|
962
|
+
async CreateAlarmPolicy(
|
|
963
|
+
req: CreateAlarmPolicyRequest,
|
|
964
|
+
cb?: (error: string, rep: CreateAlarmPolicyResponse) => void
|
|
965
|
+
): Promise<CreateAlarmPolicyResponse> {
|
|
966
|
+
return this.request("CreateAlarmPolicy", req, cb)
|
|
1007
967
|
}
|
|
1008
968
|
|
|
1009
969
|
/**
|
|
1010
|
-
* 创建 Prometheus
|
|
970
|
+
* 创建 Prometheus CVM Agent
|
|
1011
971
|
*/
|
|
1012
|
-
async
|
|
1013
|
-
req:
|
|
1014
|
-
cb?: (error: string, rep:
|
|
1015
|
-
): Promise<
|
|
1016
|
-
return this.request("
|
|
972
|
+
async CreatePrometheusAgent(
|
|
973
|
+
req: CreatePrometheusAgentRequest,
|
|
974
|
+
cb?: (error: string, rep: CreatePrometheusAgentResponse) => void
|
|
975
|
+
): Promise<CreatePrometheusAgentResponse> {
|
|
976
|
+
return this.request("CreatePrometheusAgent", req, cb)
|
|
1017
977
|
}
|
|
1018
978
|
|
|
1019
979
|
/**
|
|
1020
|
-
*
|
|
980
|
+
* 创建通知模板
|
|
1021
981
|
*/
|
|
1022
|
-
async
|
|
1023
|
-
req:
|
|
1024
|
-
cb?: (error: string, rep:
|
|
1025
|
-
): Promise<
|
|
1026
|
-
return this.request("
|
|
982
|
+
async CreateAlarmNotice(
|
|
983
|
+
req: CreateAlarmNoticeRequest,
|
|
984
|
+
cb?: (error: string, rep: CreateAlarmNoticeResponse) => void
|
|
985
|
+
): Promise<CreateAlarmNoticeResponse> {
|
|
986
|
+
return this.request("CreateAlarmNotice", req, cb)
|
|
1027
987
|
}
|
|
1028
988
|
|
|
1029
989
|
/**
|
|
1030
|
-
* Prometheus
|
|
990
|
+
* 更新 Prometheus 报警策略状态
|
|
1031
991
|
*/
|
|
1032
|
-
async
|
|
1033
|
-
req:
|
|
1034
|
-
cb?: (error: string, rep:
|
|
1035
|
-
): Promise<
|
|
1036
|
-
return this.request("
|
|
992
|
+
async UpdateAlertRuleState(
|
|
993
|
+
req: UpdateAlertRuleStateRequest,
|
|
994
|
+
cb?: (error: string, rep: UpdateAlertRuleStateResponse) => void
|
|
995
|
+
): Promise<UpdateAlertRuleStateResponse> {
|
|
996
|
+
return this.request("UpdateAlertRuleState", req, cb)
|
|
1037
997
|
}
|
|
1038
998
|
|
|
1039
999
|
/**
|
|
1040
|
-
*
|
|
1000
|
+
* 解除实例绑定的 Grafana 可视化实例
|
|
1041
1001
|
*/
|
|
1042
|
-
async
|
|
1043
|
-
req:
|
|
1044
|
-
cb?: (error: string, rep:
|
|
1045
|
-
): Promise<
|
|
1046
|
-
return this.request("
|
|
1002
|
+
async UnbindPrometheusManagedGrafana(
|
|
1003
|
+
req: UnbindPrometheusManagedGrafanaRequest,
|
|
1004
|
+
cb?: (error: string, rep: UnbindPrometheusManagedGrafanaResponse) => void
|
|
1005
|
+
): Promise<UnbindPrometheusManagedGrafanaResponse> {
|
|
1006
|
+
return this.request("UnbindPrometheusManagedGrafana", req, cb)
|
|
1047
1007
|
}
|
|
1048
1008
|
|
|
1049
1009
|
/**
|
|
1050
|
-
*
|
|
1010
|
+
* 查询 exporter 集成列表
|
|
1051
1011
|
*/
|
|
1052
|
-
async
|
|
1053
|
-
req:
|
|
1054
|
-
cb?: (error: string, rep:
|
|
1055
|
-
): Promise<
|
|
1056
|
-
return this.request("
|
|
1012
|
+
async DescribeExporterIntegrations(
|
|
1013
|
+
req: DescribeExporterIntegrationsRequest,
|
|
1014
|
+
cb?: (error: string, rep: DescribeExporterIntegrationsResponse) => void
|
|
1015
|
+
): Promise<DescribeExporterIntegrationsResponse> {
|
|
1016
|
+
return this.request("DescribeExporterIntegrations", req, cb)
|
|
1057
1017
|
}
|
|
1058
1018
|
|
|
1059
1019
|
/**
|
|
1060
|
-
*
|
|
1020
|
+
* 列出实例已安装的插件
|
|
1061
1021
|
*/
|
|
1062
|
-
async
|
|
1063
|
-
req:
|
|
1064
|
-
cb?: (error: string, rep:
|
|
1065
|
-
): Promise<
|
|
1066
|
-
return this.request("
|
|
1022
|
+
async DescribeInstalledPlugins(
|
|
1023
|
+
req: DescribeInstalledPluginsRequest,
|
|
1024
|
+
cb?: (error: string, rep: DescribeInstalledPluginsResponse) => void
|
|
1025
|
+
): Promise<DescribeInstalledPluginsResponse> {
|
|
1026
|
+
return this.request("DescribeInstalledPlugins", req, cb)
|
|
1027
|
+
}
|
|
1028
|
+
|
|
1029
|
+
/**
|
|
1030
|
+
* 升级 Grafana Dashboard
|
|
1031
|
+
*/
|
|
1032
|
+
async UpgradeGrafanaDashboard(
|
|
1033
|
+
req: UpgradeGrafanaDashboardRequest,
|
|
1034
|
+
cb?: (error: string, rep: UpgradeGrafanaDashboardResponse) => void
|
|
1035
|
+
): Promise<UpgradeGrafanaDashboardResponse> {
|
|
1036
|
+
return this.request("UpgradeGrafanaDashboard", req, cb)
|
|
1037
|
+
}
|
|
1038
|
+
|
|
1039
|
+
/**
|
|
1040
|
+
* 查询通知模板列表
|
|
1041
|
+
*/
|
|
1042
|
+
async DescribeAlarmNotices(
|
|
1043
|
+
req: DescribeAlarmNoticesRequest,
|
|
1044
|
+
cb?: (error: string, rep: DescribeAlarmNoticesResponse) => void
|
|
1045
|
+
): Promise<DescribeAlarmNoticesResponse> {
|
|
1046
|
+
return this.request("DescribeAlarmNotices", req, cb)
|
|
1047
|
+
}
|
|
1048
|
+
|
|
1049
|
+
/**
|
|
1050
|
+
* 列出 Grafana DNS 配置
|
|
1051
|
+
*/
|
|
1052
|
+
async DescribeDNSConfig(
|
|
1053
|
+
req: DescribeDNSConfigRequest,
|
|
1054
|
+
cb?: (error: string, rep: DescribeDNSConfigResponse) => void
|
|
1055
|
+
): Promise<DescribeDNSConfigResponse> {
|
|
1056
|
+
return this.request("DescribeDNSConfig", req, cb)
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
/**
|
|
1060
|
+
* 本接口 (DescribePrometheusInstances) 用于查询一个或多个实例的详细信息。
|
|
1061
|
+
<ul>
|
|
1062
|
+
<li>可以根据实例ID、实例名称或者实例状态等信息来查询实例的详细信息</li>
|
|
1063
|
+
<li>如果参数为空,返回当前用户一定数量(Limit所指定的数量,默认为20)的实例。</li>
|
|
1064
|
+
</ul>
|
|
1065
|
+
*/
|
|
1066
|
+
async DescribePrometheusInstances(
|
|
1067
|
+
req: DescribePrometheusInstancesRequest,
|
|
1068
|
+
cb?: (error: string, rep: DescribePrometheusInstancesResponse) => void
|
|
1069
|
+
): Promise<DescribePrometheusInstancesResponse> {
|
|
1070
|
+
return this.request("DescribePrometheusInstances", req, cb)
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
/**
|
|
1074
|
+
* 列出用户所有的 Grafana 服务
|
|
1075
|
+
*/
|
|
1076
|
+
async DescribeGrafanaInstances(
|
|
1077
|
+
req: DescribeGrafanaInstancesRequest,
|
|
1078
|
+
cb?: (error: string, rep: DescribeGrafanaInstancesResponse) => void
|
|
1079
|
+
): Promise<DescribeGrafanaInstancesResponse> {
|
|
1080
|
+
return this.request("DescribeGrafanaInstances", req, cb)
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
/**
|
|
1084
|
+
* 更新 Grafana 配置
|
|
1085
|
+
*/
|
|
1086
|
+
async UpdateGrafanaConfig(
|
|
1087
|
+
req: UpdateGrafanaConfigRequest,
|
|
1088
|
+
cb?: (error: string, rep: UpdateGrafanaConfigResponse) => void
|
|
1089
|
+
): Promise<UpdateGrafanaConfigResponse> {
|
|
1090
|
+
return this.request("UpdateGrafanaConfig", req, cb)
|
|
1091
|
+
}
|
|
1092
|
+
|
|
1093
|
+
/**
|
|
1094
|
+
* 列出 Grafana 告警通道
|
|
1095
|
+
*/
|
|
1096
|
+
async DescribeGrafanaNotificationChannels(
|
|
1097
|
+
req: DescribeGrafanaNotificationChannelsRequest,
|
|
1098
|
+
cb?: (error: string, rep: DescribeGrafanaNotificationChannelsResponse) => void
|
|
1099
|
+
): Promise<DescribeGrafanaNotificationChannelsResponse> {
|
|
1100
|
+
return this.request("DescribeGrafanaNotificationChannels", req, cb)
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1103
|
+
/**
|
|
1104
|
+
* 更新策略组
|
|
1105
|
+
*/
|
|
1106
|
+
async ModifyPolicyGroup(
|
|
1107
|
+
req: ModifyPolicyGroupRequest,
|
|
1108
|
+
cb?: (error: string, rep: ModifyPolicyGroupResponse) => void
|
|
1109
|
+
): Promise<ModifyPolicyGroupResponse> {
|
|
1110
|
+
return this.request("ModifyPolicyGroup", req, cb)
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1113
|
+
/**
|
|
1114
|
+
* 获取平台事件列表
|
|
1115
|
+
*/
|
|
1116
|
+
async DescribeAccidentEventList(
|
|
1117
|
+
req: DescribeAccidentEventListRequest,
|
|
1118
|
+
cb?: (error: string, rep: DescribeAccidentEventListResponse) => void
|
|
1119
|
+
): Promise<DescribeAccidentEventListResponse> {
|
|
1120
|
+
return this.request("DescribeAccidentEventList", req, cb)
|
|
1121
|
+
}
|
|
1122
|
+
|
|
1123
|
+
/**
|
|
1124
|
+
* 查询告警指标列表
|
|
1125
|
+
*/
|
|
1126
|
+
async DescribeAlarmMetrics(
|
|
1127
|
+
req: DescribeAlarmMetricsRequest,
|
|
1128
|
+
cb?: (error: string, rep: DescribeAlarmMetricsResponse) => void
|
|
1129
|
+
): Promise<DescribeAlarmMetricsResponse> {
|
|
1130
|
+
return this.request("DescribeAlarmMetrics", req, cb)
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1133
|
+
/**
|
|
1134
|
+
* 云监控告警修改告警策略的触发任务,TriggerTasks字段放触发任务列表,TriggerTasks传空数组时,代表解绑该策略的所有触发任务。
|
|
1135
|
+
*/
|
|
1136
|
+
async ModifyAlarmPolicyTasks(
|
|
1137
|
+
req: ModifyAlarmPolicyTasksRequest,
|
|
1138
|
+
cb?: (error: string, rep: ModifyAlarmPolicyTasksResponse) => void
|
|
1139
|
+
): Promise<ModifyAlarmPolicyTasksResponse> {
|
|
1140
|
+
return this.request("ModifyAlarmPolicyTasks", req, cb)
|
|
1141
|
+
}
|
|
1142
|
+
|
|
1143
|
+
/**
|
|
1144
|
+
* 删除 exporter 集成
|
|
1145
|
+
*/
|
|
1146
|
+
async DeleteExporterIntegration(
|
|
1147
|
+
req: DeleteExporterIntegrationRequest,
|
|
1148
|
+
cb?: (error: string, rep: DeleteExporterIntegrationResponse) => void
|
|
1149
|
+
): Promise<DeleteExporterIntegrationResponse> {
|
|
1150
|
+
return this.request("DeleteExporterIntegration", req, cb)
|
|
1151
|
+
}
|
|
1152
|
+
|
|
1153
|
+
/**
|
|
1154
|
+
* 更新 Prometheus CVM Agent 状态
|
|
1155
|
+
*/
|
|
1156
|
+
async UpdatePrometheusAgentStatus(
|
|
1157
|
+
req: UpdatePrometheusAgentStatusRequest,
|
|
1158
|
+
cb?: (error: string, rep: UpdatePrometheusAgentStatusResponse) => void
|
|
1159
|
+
): Promise<UpdatePrometheusAgentStatusResponse> {
|
|
1160
|
+
return this.request("UpdatePrometheusAgentStatus", req, cb)
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1163
|
+
/**
|
|
1164
|
+
* 创建 Prometheus 的预聚合规则
|
|
1165
|
+
*/
|
|
1166
|
+
async CreateRecordingRule(
|
|
1167
|
+
req: CreateRecordingRuleRequest,
|
|
1168
|
+
cb?: (error: string, rep: CreateRecordingRuleResponse) => void
|
|
1169
|
+
): Promise<CreateRecordingRuleResponse> {
|
|
1170
|
+
return this.request("CreateRecordingRule", req, cb)
|
|
1171
|
+
}
|
|
1172
|
+
|
|
1173
|
+
/**
|
|
1174
|
+
* Prometheus 报警规则查询接口
|
|
1175
|
+
*/
|
|
1176
|
+
async DescribeAlertRules(
|
|
1177
|
+
req: DescribeAlertRulesRequest,
|
|
1178
|
+
cb?: (error: string, rep: DescribeAlertRulesResponse) => void
|
|
1179
|
+
): Promise<DescribeAlertRulesResponse> {
|
|
1180
|
+
return this.request("DescribeAlertRules", req, cb)
|
|
1181
|
+
}
|
|
1182
|
+
|
|
1183
|
+
/**
|
|
1184
|
+
* 更新 Grafana 白名单
|
|
1185
|
+
*/
|
|
1186
|
+
async UpdateGrafanaWhiteList(
|
|
1187
|
+
req: UpdateGrafanaWhiteListRequest,
|
|
1188
|
+
cb?: (error: string, rep: UpdateGrafanaWhiteListResponse) => void
|
|
1189
|
+
): Promise<UpdateGrafanaWhiteListResponse> {
|
|
1190
|
+
return this.request("UpdateGrafanaWhiteList", req, cb)
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1193
|
+
/**
|
|
1194
|
+
* 列出 Prometheus CVM Agent
|
|
1195
|
+
*/
|
|
1196
|
+
async DescribePrometheusAgents(
|
|
1197
|
+
req: DescribePrometheusAgentsRequest,
|
|
1198
|
+
cb?: (error: string, rep: DescribePrometheusAgentsResponse) => void
|
|
1199
|
+
): Promise<DescribePrometheusAgentsResponse> {
|
|
1200
|
+
return this.request("DescribePrometheusAgents", req, cb)
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1203
|
+
/**
|
|
1204
|
+
* 查询告警策略列表
|
|
1205
|
+
*/
|
|
1206
|
+
async DescribeAlarmPolicies(
|
|
1207
|
+
req: DescribeAlarmPoliciesRequest,
|
|
1208
|
+
cb?: (error: string, rep: DescribeAlarmPoliciesResponse) => void
|
|
1209
|
+
): Promise<DescribeAlarmPoliciesResponse> {
|
|
1210
|
+
return this.request("DescribeAlarmPolicies", req, cb)
|
|
1211
|
+
}
|
|
1212
|
+
|
|
1213
|
+
/**
|
|
1214
|
+
* 列出 Grafana 白名单
|
|
1215
|
+
*/
|
|
1216
|
+
async DescribeGrafanaWhiteList(
|
|
1217
|
+
req: DescribeGrafanaWhiteListRequest,
|
|
1218
|
+
cb?: (error: string, rep: DescribeGrafanaWhiteListResponse) => void
|
|
1219
|
+
): Promise<DescribeGrafanaWhiteListResponse> {
|
|
1220
|
+
return this.request("DescribeGrafanaWhiteList", req, cb)
|
|
1221
|
+
}
|
|
1222
|
+
|
|
1223
|
+
/**
|
|
1224
|
+
* 强制销毁 Grafana 实例
|
|
1225
|
+
*/
|
|
1226
|
+
async CleanGrafanaInstance(
|
|
1227
|
+
req: CleanGrafanaInstanceRequest,
|
|
1228
|
+
cb?: (error: string, rep: CleanGrafanaInstanceResponse) => void
|
|
1229
|
+
): Promise<CleanGrafanaInstanceResponse> {
|
|
1230
|
+
return this.request("CleanGrafanaInstance", req, cb)
|
|
1231
|
+
}
|
|
1232
|
+
|
|
1233
|
+
/**
|
|
1234
|
+
* 删除 Grafana Dashboard
|
|
1235
|
+
*/
|
|
1236
|
+
async UninstallGrafanaDashboard(
|
|
1237
|
+
req: UninstallGrafanaDashboardRequest,
|
|
1238
|
+
cb?: (error: string, rep: UninstallGrafanaDashboardResponse) => void
|
|
1239
|
+
): Promise<UninstallGrafanaDashboardResponse> {
|
|
1240
|
+
return this.request("UninstallGrafanaDashboard", req, cb)
|
|
1241
|
+
}
|
|
1242
|
+
|
|
1243
|
+
/**
|
|
1244
|
+
* 获取基础策略告警组列表
|
|
1245
|
+
*/
|
|
1246
|
+
async DescribePolicyGroupList(
|
|
1247
|
+
req: DescribePolicyGroupListRequest,
|
|
1248
|
+
cb?: (error: string, rep: DescribePolicyGroupListResponse) => void
|
|
1249
|
+
): Promise<DescribePolicyGroupListResponse> {
|
|
1250
|
+
return this.request("DescribePolicyGroupList", req, cb)
|
|
1251
|
+
}
|
|
1252
|
+
|
|
1253
|
+
/**
|
|
1254
|
+
* 修改 Prometheus 实例相关属性
|
|
1255
|
+
*/
|
|
1256
|
+
async ModifyPrometheusInstanceAttributes(
|
|
1257
|
+
req: ModifyPrometheusInstanceAttributesRequest,
|
|
1258
|
+
cb?: (error: string, rep: ModifyPrometheusInstanceAttributesResponse) => void
|
|
1259
|
+
): Promise<ModifyPrometheusInstanceAttributesResponse> {
|
|
1260
|
+
return this.request("ModifyPrometheusInstanceAttributes", req, cb)
|
|
1261
|
+
}
|
|
1262
|
+
|
|
1263
|
+
/**
|
|
1264
|
+
* 删除告警策略
|
|
1265
|
+
*/
|
|
1266
|
+
async DeleteAlarmPolicy(
|
|
1267
|
+
req: DeleteAlarmPolicyRequest,
|
|
1268
|
+
cb?: (error: string, rep: DeleteAlarmPolicyResponse) => void
|
|
1269
|
+
): Promise<DeleteAlarmPolicyResponse> {
|
|
1270
|
+
return this.request("DeleteAlarmPolicy", req, cb)
|
|
1271
|
+
}
|
|
1272
|
+
|
|
1273
|
+
/**
|
|
1274
|
+
* 获取云产品的监控数据。此接口不适用于拉取容器服务监控数据,如需拉取容器服务监控数据,请使用[根据维度条件查询监控数据](https://cloud.tencent.com/document/product/248/51845)接口。
|
|
1275
|
+
传入产品的命名空间、对象维度描述和监控指标即可获得相应的监控数据。
|
|
1276
|
+
接口调用频率限制为:20次/秒,1200次/分钟。单请求最多可支持批量拉取10个实例的监控数据,单请求的数据点数限制为1440个。
|
|
1277
|
+
若您需要调用的指标、对象较多,可能存在因限频出现拉取失败的情况,建议尽量将请求按时间维度均摊。
|
|
1278
|
+
*/
|
|
1279
|
+
async GetMonitorData(
|
|
1280
|
+
req: GetMonitorDataRequest,
|
|
1281
|
+
cb?: (error: string, rep: GetMonitorDataResponse) => void
|
|
1282
|
+
): Promise<GetMonitorDataResponse> {
|
|
1283
|
+
return this.request("GetMonitorData", req, cb)
|
|
1284
|
+
}
|
|
1285
|
+
|
|
1286
|
+
/**
|
|
1287
|
+
* 默认接口请求频率限制:50次/秒。
|
|
1288
|
+
默认单租户指标上限:100个。
|
|
1289
|
+
单次上报最多 30 个指标/值对,请求返回错误时,请求中所有的指标/值均不会被保存。
|
|
1290
|
+
|
|
1291
|
+
上报的时间戳为期望保存的时间戳,建议构造整数分钟时刻的时间戳。
|
|
1292
|
+
时间戳时间范围必须为当前时间到 300 秒前之间。
|
|
1293
|
+
同一 IP 指标对的数据需按分钟先后顺序上报。
|
|
1294
|
+
*/
|
|
1295
|
+
async PutMonitorData(
|
|
1296
|
+
req: PutMonitorDataRequest,
|
|
1297
|
+
cb?: (error: string, rep: PutMonitorDataResponse) => void
|
|
1298
|
+
): Promise<PutMonitorDataResponse> {
|
|
1299
|
+
return this.request("PutMonitorData", req, cb)
|
|
1300
|
+
}
|
|
1301
|
+
|
|
1302
|
+
/**
|
|
1303
|
+
* 更新 Grafana 的 DNS 配置
|
|
1304
|
+
*/
|
|
1305
|
+
async UpdateDNSConfig(
|
|
1306
|
+
req: UpdateDNSConfigRequest,
|
|
1307
|
+
cb?: (error: string, rep: UpdateDNSConfigResponse) => void
|
|
1308
|
+
): Promise<UpdateDNSConfigResponse> {
|
|
1309
|
+
return this.request("UpdateDNSConfig", req, cb)
|
|
1310
|
+
}
|
|
1311
|
+
|
|
1312
|
+
/**
|
|
1313
|
+
* 列出在腾讯云容器服务下创建的 Prometheus 服务发现。
|
|
1314
|
+
<p>注意:前提条件,已经通过 Prometheus 控制台集成了对应的腾讯云容器服务,具体请参考
|
|
1315
|
+
<a href="https://cloud.tencent.com/document/product/248/48859" target="_blank">Agent 安装</a>。</p>
|
|
1316
|
+
*/
|
|
1317
|
+
async DescribeServiceDiscovery(
|
|
1318
|
+
req: DescribeServiceDiscoveryRequest,
|
|
1319
|
+
cb?: (error: string, rep: DescribeServiceDiscoveryResponse) => void
|
|
1320
|
+
): Promise<DescribeServiceDiscoveryResponse> {
|
|
1321
|
+
return this.request("DescribeServiceDiscovery", req, cb)
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1324
|
+
/**
|
|
1325
|
+
* 列出 Grafana 已安装的集成
|
|
1326
|
+
*/
|
|
1327
|
+
async DescribeGrafanaIntegrations(
|
|
1328
|
+
req: DescribeGrafanaIntegrationsRequest,
|
|
1329
|
+
cb?: (error: string, rep: DescribeGrafanaIntegrationsResponse) => void
|
|
1330
|
+
): Promise<DescribeGrafanaIntegrationsResponse> {
|
|
1331
|
+
return this.request("DescribeGrafanaIntegrations", req, cb)
|
|
1332
|
+
}
|
|
1333
|
+
|
|
1334
|
+
/**
|
|
1335
|
+
* 获取基础策略组详情
|
|
1336
|
+
*/
|
|
1337
|
+
async DescribePolicyGroupInfo(
|
|
1338
|
+
req: DescribePolicyGroupInfoRequest,
|
|
1339
|
+
cb?: (error: string, rep: DescribePolicyGroupInfoResponse) => void
|
|
1340
|
+
): Promise<DescribePolicyGroupInfoResponse> {
|
|
1341
|
+
return this.request("DescribePolicyGroupInfo", req, cb)
|
|
1342
|
+
}
|
|
1343
|
+
|
|
1344
|
+
/**
|
|
1345
|
+
* 更新 exporter 集成配置
|
|
1346
|
+
*/
|
|
1347
|
+
async UpdateExporterIntegration(
|
|
1348
|
+
req: UpdateExporterIntegrationRequest,
|
|
1349
|
+
cb?: (error: string, rep: UpdateExporterIntegrationResponse) => void
|
|
1350
|
+
): Promise<UpdateExporterIntegrationResponse> {
|
|
1351
|
+
return this.request("UpdateExporterIntegration", req, cb)
|
|
1352
|
+
}
|
|
1353
|
+
|
|
1354
|
+
/**
|
|
1355
|
+
* 查询所有名字空间
|
|
1356
|
+
*/
|
|
1357
|
+
async DescribeAllNamespaces(
|
|
1358
|
+
req: DescribeAllNamespacesRequest,
|
|
1359
|
+
cb?: (error: string, rep: DescribeAllNamespacesResponse) => void
|
|
1360
|
+
): Promise<DescribeAllNamespacesResponse> {
|
|
1361
|
+
return this.request("DescribeAllNamespaces", req, cb)
|
|
1362
|
+
}
|
|
1363
|
+
|
|
1364
|
+
/**
|
|
1365
|
+
* 在腾讯云容器服务下创建 Prometheus 服务发现。
|
|
1366
|
+
<p>注意:前提条件,已经通过 Prometheus 控制台集成了对应的腾讯云容器服务,具体请参考
|
|
1367
|
+
<a href="https://cloud.tencent.com/document/product/248/48859" target="_blank">Agent 安装</a>。</p>
|
|
1368
|
+
*/
|
|
1369
|
+
async CreateServiceDiscovery(
|
|
1370
|
+
req: CreateServiceDiscoveryRequest,
|
|
1371
|
+
cb?: (error: string, rep: CreateServiceDiscoveryResponse) => void
|
|
1372
|
+
): Promise<CreateServiceDiscoveryResponse> {
|
|
1373
|
+
return this.request("CreateServiceDiscovery", req, cb)
|
|
1374
|
+
}
|
|
1375
|
+
|
|
1376
|
+
/**
|
|
1377
|
+
* 根据维度条件查询监控数据
|
|
1378
|
+
*/
|
|
1379
|
+
async DescribeStatisticData(
|
|
1380
|
+
req: DescribeStatisticDataRequest,
|
|
1381
|
+
cb?: (error: string, rep: DescribeStatisticDataResponse) => void
|
|
1382
|
+
): Promise<DescribeStatisticDataResponse> {
|
|
1383
|
+
return this.request("DescribeStatisticData", req, cb)
|
|
1384
|
+
}
|
|
1385
|
+
|
|
1386
|
+
/**
|
|
1387
|
+
* 策略绑定标签
|
|
1388
|
+
*/
|
|
1389
|
+
async BindingPolicyTag(
|
|
1390
|
+
req: BindingPolicyTagRequest,
|
|
1391
|
+
cb?: (error: string, rep: BindingPolicyTagResponse) => void
|
|
1392
|
+
): Promise<BindingPolicyTagResponse> {
|
|
1393
|
+
return this.request("BindingPolicyTag", req, cb)
|
|
1394
|
+
}
|
|
1395
|
+
|
|
1396
|
+
/**
|
|
1397
|
+
* 云监控告警获取告警通知模板所有回调URL
|
|
1398
|
+
*/
|
|
1399
|
+
async DescribeAlarmNoticeCallbacks(
|
|
1400
|
+
req: DescribeAlarmNoticeCallbacksRequest,
|
|
1401
|
+
cb?: (error: string, rep: DescribeAlarmNoticeCallbacksResponse) => void
|
|
1402
|
+
): Promise<DescribeAlarmNoticeCallbacksResponse> {
|
|
1403
|
+
return this.request("DescribeAlarmNoticeCallbacks", req, cb)
|
|
1404
|
+
}
|
|
1405
|
+
|
|
1406
|
+
/**
|
|
1407
|
+
* 彻底删除 Prometheus 实例相关数据,给定的实例必须先被 Terminate
|
|
1408
|
+
*/
|
|
1409
|
+
async DestroyPrometheusInstance(
|
|
1410
|
+
req: DestroyPrometheusInstanceRequest,
|
|
1411
|
+
cb?: (error: string, rep: DestroyPrometheusInstanceResponse) => void
|
|
1412
|
+
): Promise<DestroyPrometheusInstanceResponse> {
|
|
1413
|
+
return this.request("DestroyPrometheusInstance", req, cb)
|
|
1414
|
+
}
|
|
1415
|
+
|
|
1416
|
+
/**
|
|
1417
|
+
* 删除已安装的插件
|
|
1418
|
+
*/
|
|
1419
|
+
async UninstallGrafanaPlugins(
|
|
1420
|
+
req: UninstallGrafanaPluginsRequest,
|
|
1421
|
+
cb?: (error: string, rep: UninstallGrafanaPluginsResponse) => void
|
|
1422
|
+
): Promise<UninstallGrafanaPluginsResponse> {
|
|
1423
|
+
return this.request("UninstallGrafanaPlugins", req, cb)
|
|
1424
|
+
}
|
|
1425
|
+
|
|
1426
|
+
/**
|
|
1427
|
+
* 更新 Grafana 集成配置
|
|
1428
|
+
*/
|
|
1429
|
+
async UpdateGrafanaIntegration(
|
|
1430
|
+
req: UpdateGrafanaIntegrationRequest,
|
|
1431
|
+
cb?: (error: string, rep: UpdateGrafanaIntegrationResponse) => void
|
|
1432
|
+
): Promise<UpdateGrafanaIntegrationResponse> {
|
|
1433
|
+
return this.request("UpdateGrafanaIntegration", req, cb)
|
|
1434
|
+
}
|
|
1435
|
+
|
|
1436
|
+
/**
|
|
1437
|
+
* 增加策略组
|
|
1438
|
+
*/
|
|
1439
|
+
async CreatePolicyGroup(
|
|
1440
|
+
req: CreatePolicyGroupRequest,
|
|
1441
|
+
cb?: (error: string, rep: CreatePolicyGroupResponse) => void
|
|
1442
|
+
): Promise<CreatePolicyGroupResponse> {
|
|
1443
|
+
return this.request("CreatePolicyGroup", req, cb)
|
|
1444
|
+
}
|
|
1445
|
+
|
|
1446
|
+
/**
|
|
1447
|
+
* 销毁按量 Prometheus 实例
|
|
1448
|
+
*/
|
|
1449
|
+
async TerminatePrometheusInstances(
|
|
1450
|
+
req: TerminatePrometheusInstancesRequest,
|
|
1451
|
+
cb?: (error: string, rep: TerminatePrometheusInstancesResponse) => void
|
|
1452
|
+
): Promise<TerminatePrometheusInstancesResponse> {
|
|
1453
|
+
return this.request("TerminatePrometheusInstances", req, cb)
|
|
1454
|
+
}
|
|
1455
|
+
|
|
1456
|
+
/**
|
|
1457
|
+
* 列出可安装的所有 Grafana 插件
|
|
1458
|
+
*/
|
|
1459
|
+
async DescribePluginOverviews(
|
|
1460
|
+
req?: DescribePluginOverviewsRequest,
|
|
1461
|
+
cb?: (error: string, rep: DescribePluginOverviewsResponse) => void
|
|
1462
|
+
): Promise<DescribePluginOverviewsResponse> {
|
|
1463
|
+
return this.request("DescribePluginOverviews", req, cb)
|
|
1464
|
+
}
|
|
1465
|
+
|
|
1466
|
+
/**
|
|
1467
|
+
* 根据条件查询 Prometheus 预聚合规则
|
|
1468
|
+
*/
|
|
1469
|
+
async DescribeRecordingRules(
|
|
1470
|
+
req: DescribeRecordingRulesRequest,
|
|
1471
|
+
cb?: (error: string, rep: DescribeRecordingRulesResponse) => void
|
|
1472
|
+
): Promise<DescribeRecordingRulesResponse> {
|
|
1473
|
+
return this.request("DescribeRecordingRules", req, cb)
|
|
1474
|
+
}
|
|
1475
|
+
|
|
1476
|
+
/**
|
|
1477
|
+
* 获取单个告警策略详情
|
|
1478
|
+
*/
|
|
1479
|
+
async DescribeAlarmPolicy(
|
|
1480
|
+
req: DescribeAlarmPolicyRequest,
|
|
1481
|
+
cb?: (error: string, rep: DescribeAlarmPolicyResponse) => void
|
|
1482
|
+
): Promise<DescribeAlarmPolicyResponse> {
|
|
1483
|
+
return this.request("DescribeAlarmPolicy", req, cb)
|
|
1067
1484
|
}
|
|
1068
1485
|
}
|