tencentcloud-sdk-nodejs-intl-en 3.0.1388 → 3.0.1389
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/package.json +1 -1
- package/tencentcloud/cam/v20190116/cam_client.js +27 -0
- package/tencentcloud/cam/v20190116/models.js +221 -0
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/cwp/v20180228/cwp_client.js +1 -1
- package/tencentcloud/cwp/v20180228/models.js +1 -1
- package/tencentcloud/monitor/index.js +1 -1
- package/tencentcloud/monitor/v20230616/index.js +4 -0
- package/tencentcloud/monitor/v20230616/models.js +536 -0
- package/tencentcloud/monitor/v20230616/monitor_client.js +52 -0
- package/tencentcloud/mps/v20190612/models.js +1205 -224
- package/tencentcloud/mps/v20190612/mps_client.js +65 -4
- package/tencentcloud/ocr/v20181119/models.js +2049 -7844
- package/tencentcloud/ocr/v20181119/ocr_client.js +33 -393
|
@@ -0,0 +1,536 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2018 Tencent. All Rights Reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing,
|
|
11
|
+
* software distributed under the License is distributed on an
|
|
12
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
13
|
+
* KIND, either express or implied. See the License for the
|
|
14
|
+
* specific language governing permissions and limitations
|
|
15
|
+
* under the License.
|
|
16
|
+
*/
|
|
17
|
+
const AbstractModel = require("../../common/abstract_model");
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Pagination request parameters
|
|
21
|
+
* @class
|
|
22
|
+
*/
|
|
23
|
+
class PageByNoParams extends AbstractModel {
|
|
24
|
+
constructor(){
|
|
25
|
+
super();
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Number of items per page.
|
|
29
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
30
|
+
* @type {number || null}
|
|
31
|
+
*/
|
|
32
|
+
this.PerPage = null;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Page number, starting from 1.
|
|
36
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
37
|
+
* @type {string || null}
|
|
38
|
+
*/
|
|
39
|
+
this.PageNo = null;
|
|
40
|
+
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @private
|
|
45
|
+
*/
|
|
46
|
+
deserialize(params) {
|
|
47
|
+
if (!params) {
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
this.PerPage = 'PerPage' in params ? params.PerPage : null;
|
|
51
|
+
this.PageNo = 'PageNo' in params ? params.PageNo : null;
|
|
52
|
+
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* DescribeAlarmNotifyHistories request structure.
|
|
58
|
+
* @class
|
|
59
|
+
*/
|
|
60
|
+
class DescribeAlarmNotifyHistoriesRequest extends AbstractModel {
|
|
61
|
+
constructor(){
|
|
62
|
+
super();
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Monitoring type
|
|
66
|
+
* @type {string || null}
|
|
67
|
+
*/
|
|
68
|
+
this.MonitorType = null;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Start time, used as a Unix timestamp in seconds.
|
|
72
|
+
* @type {number || null}
|
|
73
|
+
*/
|
|
74
|
+
this.QueryBaseTime = null;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Period to query before QueryBaseTime, in seconds.
|
|
78
|
+
* @type {number || null}
|
|
79
|
+
*/
|
|
80
|
+
this.QueryBeforeSeconds = null;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Pagination parameter.
|
|
84
|
+
* @type {PageByNoParams || null}
|
|
85
|
+
*/
|
|
86
|
+
this.PageParams = null;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Fill in when the monitoring type is MT_QCE. Namespace of the affiliation.
|
|
90
|
+
* @type {string || null}
|
|
91
|
+
*/
|
|
92
|
+
this.Namespace = null;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Fill in when the monitoring type is MT_QCE. Alarm policy type
|
|
96
|
+
* @type {string || null}
|
|
97
|
+
*/
|
|
98
|
+
this.ModelName = null;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Query the notification history of a policy
|
|
102
|
+
* @type {string || null}
|
|
103
|
+
*/
|
|
104
|
+
this.PolicyId = null;
|
|
105
|
+
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* @private
|
|
110
|
+
*/
|
|
111
|
+
deserialize(params) {
|
|
112
|
+
if (!params) {
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
115
|
+
this.MonitorType = 'MonitorType' in params ? params.MonitorType : null;
|
|
116
|
+
this.QueryBaseTime = 'QueryBaseTime' in params ? params.QueryBaseTime : null;
|
|
117
|
+
this.QueryBeforeSeconds = 'QueryBeforeSeconds' in params ? params.QueryBeforeSeconds : null;
|
|
118
|
+
|
|
119
|
+
if (params.PageParams) {
|
|
120
|
+
let obj = new PageByNoParams();
|
|
121
|
+
obj.deserialize(params.PageParams)
|
|
122
|
+
this.PageParams = obj;
|
|
123
|
+
}
|
|
124
|
+
this.Namespace = 'Namespace' in params ? params.Namespace : null;
|
|
125
|
+
this.ModelName = 'ModelName' in params ? params.ModelName : null;
|
|
126
|
+
this.PolicyId = 'PolicyId' in params ? params.PolicyId : null;
|
|
127
|
+
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Pagination result parameters
|
|
133
|
+
* @class
|
|
134
|
+
*/
|
|
135
|
+
class PageByNoResult extends AbstractModel {
|
|
136
|
+
constructor(){
|
|
137
|
+
super();
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Total data.
|
|
141
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
142
|
+
* @type {number || null}
|
|
143
|
+
*/
|
|
144
|
+
this.TotalCount = null;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Total number of pages.
|
|
148
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
149
|
+
* @type {number || null}
|
|
150
|
+
*/
|
|
151
|
+
this.TotalPage = null;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Current page number.
|
|
155
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
156
|
+
* @type {number || null}
|
|
157
|
+
*/
|
|
158
|
+
this.CurrentPageNo = null;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* [Deprecated] Whether it has reached the end.
|
|
162
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
163
|
+
* @type {boolean || null}
|
|
164
|
+
*/
|
|
165
|
+
this.IsEnd = null;
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Whether it has traversed to the end.
|
|
169
|
+
* @type {boolean || null}
|
|
170
|
+
*/
|
|
171
|
+
this.End = null;
|
|
172
|
+
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* @private
|
|
177
|
+
*/
|
|
178
|
+
deserialize(params) {
|
|
179
|
+
if (!params) {
|
|
180
|
+
return;
|
|
181
|
+
}
|
|
182
|
+
this.TotalCount = 'TotalCount' in params ? params.TotalCount : null;
|
|
183
|
+
this.TotalPage = 'TotalPage' in params ? params.TotalPage : null;
|
|
184
|
+
this.CurrentPageNo = 'CurrentPageNo' in params ? params.CurrentPageNo : null;
|
|
185
|
+
this.IsEnd = 'IsEnd' in params ? params.IsEnd : null;
|
|
186
|
+
this.End = 'End' in params ? params.End : null;
|
|
187
|
+
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* DescribeAlarmNotifyHistories response structure.
|
|
193
|
+
* @class
|
|
194
|
+
*/
|
|
195
|
+
class DescribeAlarmNotifyHistoriesResponse extends AbstractModel {
|
|
196
|
+
constructor(){
|
|
197
|
+
super();
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* Alarm history
|
|
201
|
+
* @type {Array.<AlarmNotifyHistory> || null}
|
|
202
|
+
*/
|
|
203
|
+
this.AlarmNotifyHistoryList = null;
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* Pagination condition
|
|
207
|
+
* @type {PageByNoResult || null}
|
|
208
|
+
*/
|
|
209
|
+
this.PageResult = null;
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
213
|
+
* @type {string || null}
|
|
214
|
+
*/
|
|
215
|
+
this.RequestId = null;
|
|
216
|
+
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* @private
|
|
221
|
+
*/
|
|
222
|
+
deserialize(params) {
|
|
223
|
+
if (!params) {
|
|
224
|
+
return;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
if (params.AlarmNotifyHistoryList) {
|
|
228
|
+
this.AlarmNotifyHistoryList = new Array();
|
|
229
|
+
for (let z in params.AlarmNotifyHistoryList) {
|
|
230
|
+
let obj = new AlarmNotifyHistory();
|
|
231
|
+
obj.deserialize(params.AlarmNotifyHistoryList[z]);
|
|
232
|
+
this.AlarmNotifyHistoryList.push(obj);
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
if (params.PageResult) {
|
|
237
|
+
let obj = new PageByNoResult();
|
|
238
|
+
obj.deserialize(params.PageResult)
|
|
239
|
+
this.PageResult = obj;
|
|
240
|
+
}
|
|
241
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
242
|
+
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* Alarming Label
|
|
248
|
+
* @class
|
|
249
|
+
*/
|
|
250
|
+
class AlarmLable extends AbstractModel {
|
|
251
|
+
constructor(){
|
|
252
|
+
super();
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* label name
|
|
256
|
+
* @type {string || null}
|
|
257
|
+
*/
|
|
258
|
+
this.Name = null;
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* label value
|
|
262
|
+
* @type {string || null}
|
|
263
|
+
*/
|
|
264
|
+
this.Value = null;
|
|
265
|
+
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* @private
|
|
270
|
+
*/
|
|
271
|
+
deserialize(params) {
|
|
272
|
+
if (!params) {
|
|
273
|
+
return;
|
|
274
|
+
}
|
|
275
|
+
this.Name = 'Name' in params ? params.Name : null;
|
|
276
|
+
this.Value = 'Value' in params ? params.Value : null;
|
|
277
|
+
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* Receiver details
|
|
283
|
+
* @class
|
|
284
|
+
*/
|
|
285
|
+
class ChannelsReceivers extends AbstractModel {
|
|
286
|
+
constructor(){
|
|
287
|
+
super();
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* Notification channel name.
|
|
291
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
292
|
+
* @type {string || null}
|
|
293
|
+
*/
|
|
294
|
+
this.ChannelName = null;
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* Recipient.
|
|
298
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
299
|
+
* @type {Array.<string> || null}
|
|
300
|
+
*/
|
|
301
|
+
this.Receivers = null;
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* Sending result. Valid values: 0, (invalid), 1 (successful), 2 (failed), and 3 (no sending required).
|
|
305
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
306
|
+
* @type {string || null}
|
|
307
|
+
*/
|
|
308
|
+
this.SendStatus = null;
|
|
309
|
+
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* @private
|
|
314
|
+
*/
|
|
315
|
+
deserialize(params) {
|
|
316
|
+
if (!params) {
|
|
317
|
+
return;
|
|
318
|
+
}
|
|
319
|
+
this.ChannelName = 'ChannelName' in params ? params.ChannelName : null;
|
|
320
|
+
this.Receivers = 'Receivers' in params ? params.Receivers : null;
|
|
321
|
+
this.SendStatus = 'SendStatus' in params ? params.SendStatus : null;
|
|
322
|
+
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* Notification template information associated with notification history
|
|
328
|
+
* @class
|
|
329
|
+
*/
|
|
330
|
+
class NotifyRelatedNotice extends AbstractModel {
|
|
331
|
+
constructor(){
|
|
332
|
+
super();
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* Notification template ID
|
|
336
|
+
* @type {string || null}
|
|
337
|
+
*/
|
|
338
|
+
this.NoticeId = null;
|
|
339
|
+
|
|
340
|
+
/**
|
|
341
|
+
* Name of the notification template
|
|
342
|
+
* @type {string || null}
|
|
343
|
+
*/
|
|
344
|
+
this.NoticeName = null;
|
|
345
|
+
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* @private
|
|
350
|
+
*/
|
|
351
|
+
deserialize(params) {
|
|
352
|
+
if (!params) {
|
|
353
|
+
return;
|
|
354
|
+
}
|
|
355
|
+
this.NoticeId = 'NoticeId' in params ? params.NoticeId : null;
|
|
356
|
+
this.NoticeName = 'NoticeName' in params ? params.NoticeName : null;
|
|
357
|
+
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* Notification history for each alert
|
|
363
|
+
* @class
|
|
364
|
+
*/
|
|
365
|
+
class AlarmNotifyHistory extends AbstractModel {
|
|
366
|
+
constructor(){
|
|
367
|
+
super();
|
|
368
|
+
|
|
369
|
+
/**
|
|
370
|
+
* Unique notification ID.
|
|
371
|
+
* @type {string || null}
|
|
372
|
+
*/
|
|
373
|
+
this.NotifyId = null;
|
|
374
|
+
|
|
375
|
+
/**
|
|
376
|
+
* Alert policy ID
|
|
377
|
+
* @type {string || null}
|
|
378
|
+
*/
|
|
379
|
+
this.PolicyId = null;
|
|
380
|
+
|
|
381
|
+
/**
|
|
382
|
+
* Alarm cycle iD
|
|
383
|
+
* @type {string || null}
|
|
384
|
+
*/
|
|
385
|
+
this.SessionId = null;
|
|
386
|
+
|
|
387
|
+
/**
|
|
388
|
+
* Notification time in Unix timestamp (in seconds).
|
|
389
|
+
* @type {number || null}
|
|
390
|
+
*/
|
|
391
|
+
this.NotifyTime = null;
|
|
392
|
+
|
|
393
|
+
/**
|
|
394
|
+
* Trigger time in Unix timestamp (in seconds).
|
|
395
|
+
* @type {number || null}
|
|
396
|
+
*/
|
|
397
|
+
this.TriggerTime = null;
|
|
398
|
+
|
|
399
|
+
/**
|
|
400
|
+
* Alarm severity level. Valid values: None, Note, Warn, and Serious.
|
|
401
|
+
* @type {string || null}
|
|
402
|
+
*/
|
|
403
|
+
this.TriggerLevel = null;
|
|
404
|
+
|
|
405
|
+
/**
|
|
406
|
+
* alert content
|
|
407
|
+
* @type {string || null}
|
|
408
|
+
*/
|
|
409
|
+
this.AlarmContent = null;
|
|
410
|
+
|
|
411
|
+
/**
|
|
412
|
+
* Alarm object
|
|
413
|
+
* @type {string || null}
|
|
414
|
+
*/
|
|
415
|
+
this.AlarmObject = null;
|
|
416
|
+
|
|
417
|
+
/**
|
|
418
|
+
* Alarm notification channel collection involved this time
|
|
419
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
420
|
+
* @type {Array.<string> || null}
|
|
421
|
+
*/
|
|
422
|
+
this.ChannelSet = null;
|
|
423
|
+
|
|
424
|
+
/**
|
|
425
|
+
* Recipient information of the channel
|
|
426
|
+
* @type {Array.<ChannelsReceivers> || null}
|
|
427
|
+
*/
|
|
428
|
+
this.ChannelsReceivers = null;
|
|
429
|
+
|
|
430
|
+
/**
|
|
431
|
+
* Alarm policy name
|
|
432
|
+
* @type {string || null}
|
|
433
|
+
*/
|
|
434
|
+
this.PolicyName = null;
|
|
435
|
+
|
|
436
|
+
/**
|
|
437
|
+
* Prometheus Instance ID, valid only when MT_PROME
|
|
438
|
+
* @type {string || null}
|
|
439
|
+
*/
|
|
440
|
+
this.PromeInstanceID = null;
|
|
441
|
+
|
|
442
|
+
/**
|
|
443
|
+
* Region of the Prometheus Instance. Valid at that time only for MT_PROME.
|
|
444
|
+
* @type {string || null}
|
|
445
|
+
*/
|
|
446
|
+
this.PromeInstanceRegion = null;
|
|
447
|
+
|
|
448
|
+
/**
|
|
449
|
+
* Notification template related configuration information
|
|
450
|
+
* @type {Array.<NotifyRelatedNotice> || null}
|
|
451
|
+
*/
|
|
452
|
+
this.Notices = null;
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* Alarm trigger status. Valid values: Trigger and Recovery.
|
|
456
|
+
* @type {string || null}
|
|
457
|
+
*/
|
|
458
|
+
this.TriggerStatus = null;
|
|
459
|
+
|
|
460
|
+
/**
|
|
461
|
+
* Console page address related to the present Prometheus notification history, valid only when MR_PROME
|
|
462
|
+
* @type {string || null}
|
|
463
|
+
*/
|
|
464
|
+
this.PromeConsoleURL = null;
|
|
465
|
+
|
|
466
|
+
/**
|
|
467
|
+
* Alarm label
|
|
468
|
+
* @type {Array.<AlarmLable> || null}
|
|
469
|
+
*/
|
|
470
|
+
this.Labels = null;
|
|
471
|
+
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
/**
|
|
475
|
+
* @private
|
|
476
|
+
*/
|
|
477
|
+
deserialize(params) {
|
|
478
|
+
if (!params) {
|
|
479
|
+
return;
|
|
480
|
+
}
|
|
481
|
+
this.NotifyId = 'NotifyId' in params ? params.NotifyId : null;
|
|
482
|
+
this.PolicyId = 'PolicyId' in params ? params.PolicyId : null;
|
|
483
|
+
this.SessionId = 'SessionId' in params ? params.SessionId : null;
|
|
484
|
+
this.NotifyTime = 'NotifyTime' in params ? params.NotifyTime : null;
|
|
485
|
+
this.TriggerTime = 'TriggerTime' in params ? params.TriggerTime : null;
|
|
486
|
+
this.TriggerLevel = 'TriggerLevel' in params ? params.TriggerLevel : null;
|
|
487
|
+
this.AlarmContent = 'AlarmContent' in params ? params.AlarmContent : null;
|
|
488
|
+
this.AlarmObject = 'AlarmObject' in params ? params.AlarmObject : null;
|
|
489
|
+
this.ChannelSet = 'ChannelSet' in params ? params.ChannelSet : null;
|
|
490
|
+
|
|
491
|
+
if (params.ChannelsReceivers) {
|
|
492
|
+
this.ChannelsReceivers = new Array();
|
|
493
|
+
for (let z in params.ChannelsReceivers) {
|
|
494
|
+
let obj = new ChannelsReceivers();
|
|
495
|
+
obj.deserialize(params.ChannelsReceivers[z]);
|
|
496
|
+
this.ChannelsReceivers.push(obj);
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
this.PolicyName = 'PolicyName' in params ? params.PolicyName : null;
|
|
500
|
+
this.PromeInstanceID = 'PromeInstanceID' in params ? params.PromeInstanceID : null;
|
|
501
|
+
this.PromeInstanceRegion = 'PromeInstanceRegion' in params ? params.PromeInstanceRegion : null;
|
|
502
|
+
|
|
503
|
+
if (params.Notices) {
|
|
504
|
+
this.Notices = new Array();
|
|
505
|
+
for (let z in params.Notices) {
|
|
506
|
+
let obj = new NotifyRelatedNotice();
|
|
507
|
+
obj.deserialize(params.Notices[z]);
|
|
508
|
+
this.Notices.push(obj);
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
this.TriggerStatus = 'TriggerStatus' in params ? params.TriggerStatus : null;
|
|
512
|
+
this.PromeConsoleURL = 'PromeConsoleURL' in params ? params.PromeConsoleURL : null;
|
|
513
|
+
|
|
514
|
+
if (params.Labels) {
|
|
515
|
+
this.Labels = new Array();
|
|
516
|
+
for (let z in params.Labels) {
|
|
517
|
+
let obj = new AlarmLable();
|
|
518
|
+
obj.deserialize(params.Labels[z]);
|
|
519
|
+
this.Labels.push(obj);
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
module.exports = {
|
|
527
|
+
PageByNoParams: PageByNoParams,
|
|
528
|
+
DescribeAlarmNotifyHistoriesRequest: DescribeAlarmNotifyHistoriesRequest,
|
|
529
|
+
PageByNoResult: PageByNoResult,
|
|
530
|
+
DescribeAlarmNotifyHistoriesResponse: DescribeAlarmNotifyHistoriesResponse,
|
|
531
|
+
AlarmLable: AlarmLable,
|
|
532
|
+
ChannelsReceivers: ChannelsReceivers,
|
|
533
|
+
NotifyRelatedNotice: NotifyRelatedNotice,
|
|
534
|
+
AlarmNotifyHistory: AlarmNotifyHistory,
|
|
535
|
+
|
|
536
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2018 Tencent. All Rights Reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing,
|
|
11
|
+
* software distributed under the License is distributed on an
|
|
12
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
13
|
+
* KIND, either express or implied. See the License for the
|
|
14
|
+
* specific language governing permissions and limitations
|
|
15
|
+
* under the License.
|
|
16
|
+
*/
|
|
17
|
+
const models = require("./models");
|
|
18
|
+
const AbstractClient = require('../../common/abstract_client')
|
|
19
|
+
const PageByNoParams = models.PageByNoParams;
|
|
20
|
+
const DescribeAlarmNotifyHistoriesRequest = models.DescribeAlarmNotifyHistoriesRequest;
|
|
21
|
+
const PageByNoResult = models.PageByNoResult;
|
|
22
|
+
const DescribeAlarmNotifyHistoriesResponse = models.DescribeAlarmNotifyHistoriesResponse;
|
|
23
|
+
const AlarmLable = models.AlarmLable;
|
|
24
|
+
const ChannelsReceivers = models.ChannelsReceivers;
|
|
25
|
+
const NotifyRelatedNotice = models.NotifyRelatedNotice;
|
|
26
|
+
const AlarmNotifyHistory = models.AlarmNotifyHistory;
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* monitor client
|
|
31
|
+
* @class
|
|
32
|
+
*/
|
|
33
|
+
class MonitorClient extends AbstractClient {
|
|
34
|
+
|
|
35
|
+
constructor(credential, region, profile) {
|
|
36
|
+
super("monitor.intl.tencentcloudapi.com", "2023-06-16", credential, region, profile);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Query alarm notification history as needed
|
|
41
|
+
* @param {DescribeAlarmNotifyHistoriesRequest} req
|
|
42
|
+
* @param {function(string, DescribeAlarmNotifyHistoriesResponse):void} cb
|
|
43
|
+
* @public
|
|
44
|
+
*/
|
|
45
|
+
DescribeAlarmNotifyHistories(req, cb) {
|
|
46
|
+
let resp = new DescribeAlarmNotifyHistoriesResponse();
|
|
47
|
+
this.request("DescribeAlarmNotifyHistories", req, resp, cb);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
}
|
|
52
|
+
module.exports = MonitorClient;
|