tencentcloud-sdk-nodejs-intl-en 3.0.1407 → 3.0.1408
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
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const sdkVersion = "3.0.
|
|
1
|
+
const sdkVersion = "3.0.1408";
|
|
2
2
|
module.exports = sdkVersion
|
|
@@ -11917,6 +11917,49 @@ class DescribeBindingPolicyObjectListDimension extends AbstractModel {
|
|
|
11917
11917
|
}
|
|
11918
11918
|
}
|
|
11919
11919
|
|
|
11920
|
+
/**
|
|
11921
|
+
* Notification template configuration sending user's message
|
|
11922
|
+
* @class
|
|
11923
|
+
*/
|
|
11924
|
+
class NoticeOnCallUsersInfo extends AbstractModel {
|
|
11925
|
+
constructor(){
|
|
11926
|
+
super();
|
|
11927
|
+
|
|
11928
|
+
/**
|
|
11929
|
+
* <p>Notification template id</p><p>Parameter format: notice-xxxxxxxx</p>
|
|
11930
|
+
* @type {string || null}
|
|
11931
|
+
*/
|
|
11932
|
+
this.NoticeId = null;
|
|
11933
|
+
|
|
11934
|
+
/**
|
|
11935
|
+
* <p>Send group information, corresponding to each configuration in the notification template</p>
|
|
11936
|
+
* @type {Array.<NoticeSendGroup> || null}
|
|
11937
|
+
*/
|
|
11938
|
+
this.SendGroups = null;
|
|
11939
|
+
|
|
11940
|
+
}
|
|
11941
|
+
|
|
11942
|
+
/**
|
|
11943
|
+
* @private
|
|
11944
|
+
*/
|
|
11945
|
+
deserialize(params) {
|
|
11946
|
+
if (!params) {
|
|
11947
|
+
return;
|
|
11948
|
+
}
|
|
11949
|
+
this.NoticeId = 'NoticeId' in params ? params.NoticeId : null;
|
|
11950
|
+
|
|
11951
|
+
if (params.SendGroups) {
|
|
11952
|
+
this.SendGroups = new Array();
|
|
11953
|
+
for (let z in params.SendGroups) {
|
|
11954
|
+
let obj = new NoticeSendGroup();
|
|
11955
|
+
obj.deserialize(params.SendGroups[z]);
|
|
11956
|
+
this.SendGroups.push(obj);
|
|
11957
|
+
}
|
|
11958
|
+
}
|
|
11959
|
+
|
|
11960
|
+
}
|
|
11961
|
+
}
|
|
11962
|
+
|
|
11920
11963
|
/**
|
|
11921
11964
|
* Event alarm conditions output by the policy query
|
|
11922
11965
|
* @class
|
|
@@ -13813,6 +13856,49 @@ class DescribeGrafanaEnvironmentsResponse extends AbstractModel {
|
|
|
13813
13856
|
}
|
|
13814
13857
|
}
|
|
13815
13858
|
|
|
13859
|
+
/**
|
|
13860
|
+
* DescribeAlarmNoticeOnCallUsersFromPrometheusAlertID response structure.
|
|
13861
|
+
* @class
|
|
13862
|
+
*/
|
|
13863
|
+
class DescribeAlarmNoticeOnCallUsersFromPrometheusAlertIDResponse extends AbstractModel {
|
|
13864
|
+
constructor(){
|
|
13865
|
+
super();
|
|
13866
|
+
|
|
13867
|
+
/**
|
|
13868
|
+
* <p>Alarm notification template list</p>
|
|
13869
|
+
* @type {Array.<NoticeOnCallUsersInfo> || null}
|
|
13870
|
+
*/
|
|
13871
|
+
this.Notices = null;
|
|
13872
|
+
|
|
13873
|
+
/**
|
|
13874
|
+
* 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.
|
|
13875
|
+
* @type {string || null}
|
|
13876
|
+
*/
|
|
13877
|
+
this.RequestId = null;
|
|
13878
|
+
|
|
13879
|
+
}
|
|
13880
|
+
|
|
13881
|
+
/**
|
|
13882
|
+
* @private
|
|
13883
|
+
*/
|
|
13884
|
+
deserialize(params) {
|
|
13885
|
+
if (!params) {
|
|
13886
|
+
return;
|
|
13887
|
+
}
|
|
13888
|
+
|
|
13889
|
+
if (params.Notices) {
|
|
13890
|
+
this.Notices = new Array();
|
|
13891
|
+
for (let z in params.Notices) {
|
|
13892
|
+
let obj = new NoticeOnCallUsersInfo();
|
|
13893
|
+
obj.deserialize(params.Notices[z]);
|
|
13894
|
+
this.Notices.push(obj);
|
|
13895
|
+
}
|
|
13896
|
+
}
|
|
13897
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
13898
|
+
|
|
13899
|
+
}
|
|
13900
|
+
}
|
|
13901
|
+
|
|
13816
13902
|
/**
|
|
13817
13903
|
* DescribePolicyConditionList request structure.
|
|
13818
13904
|
* @class
|
|
@@ -15544,6 +15630,49 @@ class ModifyAlarmPolicyNoticeResponse extends AbstractModel {
|
|
|
15544
15630
|
}
|
|
15545
15631
|
}
|
|
15546
15632
|
|
|
15633
|
+
/**
|
|
15634
|
+
* Notification template sending group information
|
|
15635
|
+
* @class
|
|
15636
|
+
*/
|
|
15637
|
+
class NoticeSendGroup extends AbstractModel {
|
|
15638
|
+
constructor(){
|
|
15639
|
+
super();
|
|
15640
|
+
|
|
15641
|
+
/**
|
|
15642
|
+
* <p>Send group type</p><p>Enumeration value:</p><ul><li>USER: User</li><li>GROUP: User group</li><li>OnCallForm: Duty schedule</li></ul>
|
|
15643
|
+
* @type {string || null}
|
|
15644
|
+
*/
|
|
15645
|
+
this.ReceiverType = null;
|
|
15646
|
+
|
|
15647
|
+
/**
|
|
15648
|
+
* <p>Notifier info</p>
|
|
15649
|
+
* @type {Array.<NoticeUserInfo> || null}
|
|
15650
|
+
*/
|
|
15651
|
+
this.Users = null;
|
|
15652
|
+
|
|
15653
|
+
}
|
|
15654
|
+
|
|
15655
|
+
/**
|
|
15656
|
+
* @private
|
|
15657
|
+
*/
|
|
15658
|
+
deserialize(params) {
|
|
15659
|
+
if (!params) {
|
|
15660
|
+
return;
|
|
15661
|
+
}
|
|
15662
|
+
this.ReceiverType = 'ReceiverType' in params ? params.ReceiverType : null;
|
|
15663
|
+
|
|
15664
|
+
if (params.Users) {
|
|
15665
|
+
this.Users = new Array();
|
|
15666
|
+
for (let z in params.Users) {
|
|
15667
|
+
let obj = new NoticeUserInfo();
|
|
15668
|
+
obj.deserialize(params.Users[z]);
|
|
15669
|
+
this.Users.push(obj);
|
|
15670
|
+
}
|
|
15671
|
+
}
|
|
15672
|
+
|
|
15673
|
+
}
|
|
15674
|
+
}
|
|
15675
|
+
|
|
15547
15676
|
/**
|
|
15548
15677
|
* TMP internal dynamics API agent response
|
|
15549
15678
|
* @class
|
|
@@ -22544,6 +22673,34 @@ class DescribePrometheusTempRequest extends AbstractModel {
|
|
|
22544
22673
|
}
|
|
22545
22674
|
}
|
|
22546
22675
|
|
|
22676
|
+
/**
|
|
22677
|
+
* DescribeAlarmNoticeOnCallUsersFromPrometheusAlertID request structure.
|
|
22678
|
+
* @class
|
|
22679
|
+
*/
|
|
22680
|
+
class DescribeAlarmNoticeOnCallUsersFromPrometheusAlertIDRequest extends AbstractModel {
|
|
22681
|
+
constructor(){
|
|
22682
|
+
super();
|
|
22683
|
+
|
|
22684
|
+
/**
|
|
22685
|
+
* <p>prometheus alarm group ID</p><p>Parameter format: alert-xxxxxxxx</p>
|
|
22686
|
+
* @type {string || null}
|
|
22687
|
+
*/
|
|
22688
|
+
this.AlertId = null;
|
|
22689
|
+
|
|
22690
|
+
}
|
|
22691
|
+
|
|
22692
|
+
/**
|
|
22693
|
+
* @private
|
|
22694
|
+
*/
|
|
22695
|
+
deserialize(params) {
|
|
22696
|
+
if (!params) {
|
|
22697
|
+
return;
|
|
22698
|
+
}
|
|
22699
|
+
this.AlertId = 'AlertId' in params ? params.AlertId : null;
|
|
22700
|
+
|
|
22701
|
+
}
|
|
22702
|
+
}
|
|
22703
|
+
|
|
22547
22704
|
/**
|
|
22548
22705
|
* UpdateOnCallForm request structure.
|
|
22549
22706
|
* @class
|
|
@@ -23114,6 +23271,41 @@ class DeleteGrafanaInstanceResponse extends AbstractModel {
|
|
|
23114
23271
|
}
|
|
23115
23272
|
}
|
|
23116
23273
|
|
|
23274
|
+
/**
|
|
23275
|
+
* User information configured in the notification template
|
|
23276
|
+
* @class
|
|
23277
|
+
*/
|
|
23278
|
+
class NoticeUserInfo extends AbstractModel {
|
|
23279
|
+
constructor(){
|
|
23280
|
+
super();
|
|
23281
|
+
|
|
23282
|
+
/**
|
|
23283
|
+
* <p>Tencent Cloud user id, <strong>not account uin</strong></p>
|
|
23284
|
+
* @type {string || null}
|
|
23285
|
+
*/
|
|
23286
|
+
this.UserId = null;
|
|
23287
|
+
|
|
23288
|
+
/**
|
|
23289
|
+
* <p>Username.</p>
|
|
23290
|
+
* @type {string || null}
|
|
23291
|
+
*/
|
|
23292
|
+
this.UserName = null;
|
|
23293
|
+
|
|
23294
|
+
}
|
|
23295
|
+
|
|
23296
|
+
/**
|
|
23297
|
+
* @private
|
|
23298
|
+
*/
|
|
23299
|
+
deserialize(params) {
|
|
23300
|
+
if (!params) {
|
|
23301
|
+
return;
|
|
23302
|
+
}
|
|
23303
|
+
this.UserId = 'UserId' in params ? params.UserId : null;
|
|
23304
|
+
this.UserName = 'UserName' in params ? params.UserName : null;
|
|
23305
|
+
|
|
23306
|
+
}
|
|
23307
|
+
}
|
|
23308
|
+
|
|
23117
23309
|
/**
|
|
23118
23310
|
* Overview of managed Prometheus agent
|
|
23119
23311
|
* @class
|
|
@@ -25177,6 +25369,7 @@ module.exports = {
|
|
|
25177
25369
|
ModifyAlarmPolicyTasksRequest: ModifyAlarmPolicyTasksRequest,
|
|
25178
25370
|
GetPrometheusAgentManagementCommandRequest: GetPrometheusAgentManagementCommandRequest,
|
|
25179
25371
|
DescribeBindingPolicyObjectListDimension: DescribeBindingPolicyObjectListDimension,
|
|
25372
|
+
NoticeOnCallUsersInfo: NoticeOnCallUsersInfo,
|
|
25180
25373
|
DescribePolicyGroupInfoEventCondition: DescribePolicyGroupInfoEventCondition,
|
|
25181
25374
|
GetPrometheusAgentManagementCommandResponse: GetPrometheusAgentManagementCommandResponse,
|
|
25182
25375
|
MetricData: MetricData,
|
|
@@ -25208,6 +25401,7 @@ module.exports = {
|
|
|
25208
25401
|
CreateRecordingRuleRequest: CreateRecordingRuleRequest,
|
|
25209
25402
|
ModifyPrometheusConfigRequest: ModifyPrometheusConfigRequest,
|
|
25210
25403
|
DescribeGrafanaEnvironmentsResponse: DescribeGrafanaEnvironmentsResponse,
|
|
25404
|
+
DescribeAlarmNoticeOnCallUsersFromPrometheusAlertIDResponse: DescribeAlarmNoticeOnCallUsersFromPrometheusAlertIDResponse,
|
|
25211
25405
|
DescribePolicyConditionListRequest: DescribePolicyConditionListRequest,
|
|
25212
25406
|
DeletePolicyGroupResponse: DeletePolicyGroupResponse,
|
|
25213
25407
|
DeleteGrafanaInstanceRequest: DeleteGrafanaInstanceRequest,
|
|
@@ -25241,6 +25435,7 @@ module.exports = {
|
|
|
25241
25435
|
CreateSSOAccountRequest: CreateSSOAccountRequest,
|
|
25242
25436
|
AlarmPolicyFilter: AlarmPolicyFilter,
|
|
25243
25437
|
ModifyAlarmPolicyNoticeResponse: ModifyAlarmPolicyNoticeResponse,
|
|
25438
|
+
NoticeSendGroup: NoticeSendGroup,
|
|
25244
25439
|
PrometheusDynamicAPIResponseHTTP: PrometheusDynamicAPIResponseHTTP,
|
|
25245
25440
|
PrometheusAlertRule: PrometheusAlertRule,
|
|
25246
25441
|
UnbindPrometheusManagedGrafanaResponse: UnbindPrometheusManagedGrafanaResponse,
|
|
@@ -25369,6 +25564,7 @@ module.exports = {
|
|
|
25369
25564
|
AlarmHierarchicalNotice: AlarmHierarchicalNotice,
|
|
25370
25565
|
BindingPolicyObjectDimension: BindingPolicyObjectDimension,
|
|
25371
25566
|
DescribePrometheusTempRequest: DescribePrometheusTempRequest,
|
|
25567
|
+
DescribeAlarmNoticeOnCallUsersFromPrometheusAlertIDRequest: DescribeAlarmNoticeOnCallUsersFromPrometheusAlertIDRequest,
|
|
25372
25568
|
UpdateOnCallFormRequest: UpdateOnCallFormRequest,
|
|
25373
25569
|
UpdatePrometheusAlertGroupStateResponse: UpdatePrometheusAlertGroupStateResponse,
|
|
25374
25570
|
CoverStaffInfo: CoverStaffInfo,
|
|
@@ -25376,6 +25572,7 @@ module.exports = {
|
|
|
25376
25572
|
CreateAlarmNoticeResponse: CreateAlarmNoticeResponse,
|
|
25377
25573
|
Condition: Condition,
|
|
25378
25574
|
DeleteGrafanaInstanceResponse: DeleteGrafanaInstanceResponse,
|
|
25575
|
+
NoticeUserInfo: NoticeUserInfo,
|
|
25379
25576
|
PrometheusAgentOverview: PrometheusAgentOverview,
|
|
25380
25577
|
Filter: Filter,
|
|
25381
25578
|
DescribeProductEventListEventsGroupInfo: DescribeProductEventListEventsGroupInfo,
|
|
@@ -228,6 +228,7 @@ const DescribeBindingPolicyObjectListInstanceGroup = models.DescribeBindingPolic
|
|
|
228
228
|
const ModifyAlarmPolicyTasksRequest = models.ModifyAlarmPolicyTasksRequest;
|
|
229
229
|
const GetPrometheusAgentManagementCommandRequest = models.GetPrometheusAgentManagementCommandRequest;
|
|
230
230
|
const DescribeBindingPolicyObjectListDimension = models.DescribeBindingPolicyObjectListDimension;
|
|
231
|
+
const NoticeOnCallUsersInfo = models.NoticeOnCallUsersInfo;
|
|
231
232
|
const DescribePolicyGroupInfoEventCondition = models.DescribePolicyGroupInfoEventCondition;
|
|
232
233
|
const GetPrometheusAgentManagementCommandResponse = models.GetPrometheusAgentManagementCommandResponse;
|
|
233
234
|
const MetricData = models.MetricData;
|
|
@@ -259,6 +260,7 @@ const GetMonitorDataRequest = models.GetMonitorDataRequest;
|
|
|
259
260
|
const CreateRecordingRuleRequest = models.CreateRecordingRuleRequest;
|
|
260
261
|
const ModifyPrometheusConfigRequest = models.ModifyPrometheusConfigRequest;
|
|
261
262
|
const DescribeGrafanaEnvironmentsResponse = models.DescribeGrafanaEnvironmentsResponse;
|
|
263
|
+
const DescribeAlarmNoticeOnCallUsersFromPrometheusAlertIDResponse = models.DescribeAlarmNoticeOnCallUsersFromPrometheusAlertIDResponse;
|
|
262
264
|
const DescribePolicyConditionListRequest = models.DescribePolicyConditionListRequest;
|
|
263
265
|
const DeletePolicyGroupResponse = models.DeletePolicyGroupResponse;
|
|
264
266
|
const DeleteGrafanaInstanceRequest = models.DeleteGrafanaInstanceRequest;
|
|
@@ -292,6 +294,7 @@ const DescribeAlarmMetricsRequest = models.DescribeAlarmMetricsRequest;
|
|
|
292
294
|
const CreateSSOAccountRequest = models.CreateSSOAccountRequest;
|
|
293
295
|
const AlarmPolicyFilter = models.AlarmPolicyFilter;
|
|
294
296
|
const ModifyAlarmPolicyNoticeResponse = models.ModifyAlarmPolicyNoticeResponse;
|
|
297
|
+
const NoticeSendGroup = models.NoticeSendGroup;
|
|
295
298
|
const PrometheusDynamicAPIResponseHTTP = models.PrometheusDynamicAPIResponseHTTP;
|
|
296
299
|
const PrometheusAlertRule = models.PrometheusAlertRule;
|
|
297
300
|
const UnbindPrometheusManagedGrafanaResponse = models.UnbindPrometheusManagedGrafanaResponse;
|
|
@@ -420,6 +423,7 @@ const PrometheusScrapeJob = models.PrometheusScrapeJob;
|
|
|
420
423
|
const AlarmHierarchicalNotice = models.AlarmHierarchicalNotice;
|
|
421
424
|
const BindingPolicyObjectDimension = models.BindingPolicyObjectDimension;
|
|
422
425
|
const DescribePrometheusTempRequest = models.DescribePrometheusTempRequest;
|
|
426
|
+
const DescribeAlarmNoticeOnCallUsersFromPrometheusAlertIDRequest = models.DescribeAlarmNoticeOnCallUsersFromPrometheusAlertIDRequest;
|
|
423
427
|
const UpdateOnCallFormRequest = models.UpdateOnCallFormRequest;
|
|
424
428
|
const UpdatePrometheusAlertGroupStateResponse = models.UpdatePrometheusAlertGroupStateResponse;
|
|
425
429
|
const CoverStaffInfo = models.CoverStaffInfo;
|
|
@@ -427,6 +431,7 @@ const DescribeBasicAlarmListAlarms = models.DescribeBasicAlarmListAlarms;
|
|
|
427
431
|
const CreateAlarmNoticeResponse = models.CreateAlarmNoticeResponse;
|
|
428
432
|
const Condition = models.Condition;
|
|
429
433
|
const DeleteGrafanaInstanceResponse = models.DeleteGrafanaInstanceResponse;
|
|
434
|
+
const NoticeUserInfo = models.NoticeUserInfo;
|
|
430
435
|
const PrometheusAgentOverview = models.PrometheusAgentOverview;
|
|
431
436
|
const Filter = models.Filter;
|
|
432
437
|
const DescribeProductEventListEventsGroupInfo = models.DescribeProductEventListEventsGroupInfo;
|
|
@@ -832,6 +837,17 @@ support the following APIs:
|
|
|
832
837
|
this.request("DeleteAlertRules", req, resp, cb);
|
|
833
838
|
}
|
|
834
839
|
|
|
840
|
+
/**
|
|
841
|
+
* This API is used to query the user information configured in the notification template.
|
|
842
|
+
* @param {DescribeAlarmNoticeOnCallUsersFromPrometheusAlertIDRequest} req
|
|
843
|
+
* @param {function(string, DescribeAlarmNoticeOnCallUsersFromPrometheusAlertIDResponse):void} cb
|
|
844
|
+
* @public
|
|
845
|
+
*/
|
|
846
|
+
DescribeAlarmNoticeOnCallUsersFromPrometheusAlertID(req, cb) {
|
|
847
|
+
let resp = new DescribeAlarmNoticeOnCallUsersFromPrometheusAlertIDResponse();
|
|
848
|
+
this.request("DescribeAlarmNoticeOnCallUsersFromPrometheusAlertID", req, resp, cb);
|
|
849
|
+
}
|
|
850
|
+
|
|
835
851
|
/**
|
|
836
852
|
* This API is used to get the attributes of basic metrics.
|
|
837
853
|
* @param {DescribeBaseMetricsRequest} req
|