tencentcloud-sdk-nodejs-intl-en 3.0.1266 → 3.0.1267
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/clb/v20180317/clb_client.js +1 -1
- package/tencentcloud/clb/v20180317/models.js +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/monitor/v20180724/models.js +1054 -237
- package/tencentcloud/monitor/v20180724/monitor_client.js +92 -20
- package/tencentcloud/quota/v20241204/models.js +8 -1
- package/tencentcloud/redis/v20180412/models.js +199 -84
- package/tencentcloud/redis/v20180412/redis_client.js +4 -4
|
@@ -3055,30 +3055,24 @@ class DescribePrometheusInstanceUsageRequest extends AbstractModel {
|
|
|
3055
3055
|
}
|
|
3056
3056
|
|
|
3057
3057
|
/**
|
|
3058
|
-
*
|
|
3058
|
+
* DeleteSSOAccount request structure.
|
|
3059
3059
|
* @class
|
|
3060
3060
|
*/
|
|
3061
|
-
class
|
|
3061
|
+
class DeleteSSOAccountRequest extends AbstractModel {
|
|
3062
3062
|
constructor(){
|
|
3063
3063
|
super();
|
|
3064
3064
|
|
|
3065
3065
|
/**
|
|
3066
|
-
*
|
|
3066
|
+
* TCMG instance ID, such as “grafana-abcdefgh”.
|
|
3067
3067
|
* @type {string || null}
|
|
3068
3068
|
*/
|
|
3069
3069
|
this.InstanceId = null;
|
|
3070
3070
|
|
|
3071
3071
|
/**
|
|
3072
|
-
*
|
|
3072
|
+
* User account ID, such as “10000000”.
|
|
3073
3073
|
* @type {string || null}
|
|
3074
3074
|
*/
|
|
3075
|
-
this.
|
|
3076
|
-
|
|
3077
|
-
/**
|
|
3078
|
-
* List of task IDs
|
|
3079
|
-
* @type {Array.<string> || null}
|
|
3080
|
-
*/
|
|
3081
|
-
this.JobIds = null;
|
|
3075
|
+
this.UserId = null;
|
|
3082
3076
|
|
|
3083
3077
|
}
|
|
3084
3078
|
|
|
@@ -3090,8 +3084,7 @@ class DeletePrometheusScrapeJobsRequest extends AbstractModel {
|
|
|
3090
3084
|
return;
|
|
3091
3085
|
}
|
|
3092
3086
|
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
|
|
3093
|
-
this.
|
|
3094
|
-
this.JobIds = 'JobIds' in params ? params.JobIds : null;
|
|
3087
|
+
this.UserId = 'UserId' in params ? params.UserId : null;
|
|
3095
3088
|
|
|
3096
3089
|
}
|
|
3097
3090
|
}
|
|
@@ -3282,6 +3275,41 @@ class PrometheusClusterAgentPodConfig extends AbstractModel {
|
|
|
3282
3275
|
}
|
|
3283
3276
|
}
|
|
3284
3277
|
|
|
3278
|
+
/**
|
|
3279
|
+
* DeletePrometheusAlertGroups request structure.
|
|
3280
|
+
* @class
|
|
3281
|
+
*/
|
|
3282
|
+
class DeletePrometheusAlertGroupsRequest extends AbstractModel {
|
|
3283
|
+
constructor(){
|
|
3284
|
+
super();
|
|
3285
|
+
|
|
3286
|
+
/**
|
|
3287
|
+
* prometheus instance id.
|
|
3288
|
+
* @type {string || null}
|
|
3289
|
+
*/
|
|
3290
|
+
this.InstanceId = null;
|
|
3291
|
+
|
|
3292
|
+
/**
|
|
3293
|
+
* Alert group IDs that needs to be deleted, such as alert-xxxxx.
|
|
3294
|
+
* @type {Array.<string> || null}
|
|
3295
|
+
*/
|
|
3296
|
+
this.GroupIds = null;
|
|
3297
|
+
|
|
3298
|
+
}
|
|
3299
|
+
|
|
3300
|
+
/**
|
|
3301
|
+
* @private
|
|
3302
|
+
*/
|
|
3303
|
+
deserialize(params) {
|
|
3304
|
+
if (!params) {
|
|
3305
|
+
return;
|
|
3306
|
+
}
|
|
3307
|
+
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
|
|
3308
|
+
this.GroupIds = 'GroupIds' in params ? params.GroupIds : null;
|
|
3309
|
+
|
|
3310
|
+
}
|
|
3311
|
+
}
|
|
3312
|
+
|
|
3285
3313
|
/**
|
|
3286
3314
|
* Instance type when the Grafana instance is queried
|
|
3287
3315
|
* @class
|
|
@@ -3930,6 +3958,34 @@ class DescribePrometheusRecordRulesRequest extends AbstractModel {
|
|
|
3930
3958
|
}
|
|
3931
3959
|
}
|
|
3932
3960
|
|
|
3961
|
+
/**
|
|
3962
|
+
* ModifyAlarmPolicyStatus response structure.
|
|
3963
|
+
* @class
|
|
3964
|
+
*/
|
|
3965
|
+
class ModifyAlarmPolicyStatusResponse extends AbstractModel {
|
|
3966
|
+
constructor(){
|
|
3967
|
+
super();
|
|
3968
|
+
|
|
3969
|
+
/**
|
|
3970
|
+
* The unique request ID, which is returned for each request. RequestId is required for locating a problem.
|
|
3971
|
+
* @type {string || null}
|
|
3972
|
+
*/
|
|
3973
|
+
this.RequestId = null;
|
|
3974
|
+
|
|
3975
|
+
}
|
|
3976
|
+
|
|
3977
|
+
/**
|
|
3978
|
+
* @private
|
|
3979
|
+
*/
|
|
3980
|
+
deserialize(params) {
|
|
3981
|
+
if (!params) {
|
|
3982
|
+
return;
|
|
3983
|
+
}
|
|
3984
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
3985
|
+
|
|
3986
|
+
}
|
|
3987
|
+
}
|
|
3988
|
+
|
|
3933
3989
|
/**
|
|
3934
3990
|
* DescribeExporterIntegrations response structure.
|
|
3935
3991
|
* @class
|
|
@@ -4202,18 +4258,18 @@ class GrafanaAccountRole extends AbstractModel {
|
|
|
4202
4258
|
}
|
|
4203
4259
|
|
|
4204
4260
|
/**
|
|
4205
|
-
*
|
|
4261
|
+
* DeleteRecordingRules response structure.
|
|
4206
4262
|
* @class
|
|
4207
4263
|
*/
|
|
4208
|
-
class
|
|
4264
|
+
class DeleteRecordingRulesResponse extends AbstractModel {
|
|
4209
4265
|
constructor(){
|
|
4210
4266
|
super();
|
|
4211
4267
|
|
|
4212
4268
|
/**
|
|
4213
|
-
*
|
|
4269
|
+
* The unique request ID, which is returned for each request. RequestId is required for locating a problem.
|
|
4214
4270
|
* @type {string || null}
|
|
4215
4271
|
*/
|
|
4216
|
-
this.
|
|
4272
|
+
this.RequestId = null;
|
|
4217
4273
|
|
|
4218
4274
|
}
|
|
4219
4275
|
|
|
@@ -4224,7 +4280,7 @@ class DestroyPrometheusInstanceRequest extends AbstractModel {
|
|
|
4224
4280
|
if (!params) {
|
|
4225
4281
|
return;
|
|
4226
4282
|
}
|
|
4227
|
-
this.
|
|
4283
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
4228
4284
|
|
|
4229
4285
|
}
|
|
4230
4286
|
}
|
|
@@ -4528,24 +4584,48 @@ class MidQueryCondition extends AbstractModel {
|
|
|
4528
4584
|
}
|
|
4529
4585
|
|
|
4530
4586
|
/**
|
|
4531
|
-
*
|
|
4587
|
+
* DescribeGrafanaInstances request structure.
|
|
4532
4588
|
* @class
|
|
4533
4589
|
*/
|
|
4534
|
-
class
|
|
4590
|
+
class DescribeGrafanaInstancesRequest extends AbstractModel {
|
|
4535
4591
|
constructor(){
|
|
4536
4592
|
super();
|
|
4537
4593
|
|
|
4538
4594
|
/**
|
|
4539
|
-
*
|
|
4540
|
-
* @type {
|
|
4595
|
+
* Offset for query
|
|
4596
|
+
* @type {number || null}
|
|
4541
4597
|
*/
|
|
4542
|
-
this.
|
|
4598
|
+
this.Offset = null;
|
|
4543
4599
|
|
|
4544
4600
|
/**
|
|
4545
|
-
*
|
|
4601
|
+
* Number of items to be queried
|
|
4602
|
+
* @type {number || null}
|
|
4603
|
+
*/
|
|
4604
|
+
this.Limit = null;
|
|
4605
|
+
|
|
4606
|
+
/**
|
|
4607
|
+
* Array of TCMG instance IDs
|
|
4608
|
+
* @type {Array.<string> || null}
|
|
4609
|
+
*/
|
|
4610
|
+
this.InstanceIds = null;
|
|
4611
|
+
|
|
4612
|
+
/**
|
|
4613
|
+
* TCMG instance name, which can be fuzzily matched by prefix.
|
|
4546
4614
|
* @type {string || null}
|
|
4547
4615
|
*/
|
|
4548
|
-
this.
|
|
4616
|
+
this.InstanceName = null;
|
|
4617
|
+
|
|
4618
|
+
/**
|
|
4619
|
+
* Query status
|
|
4620
|
+
* @type {Array.<number> || null}
|
|
4621
|
+
*/
|
|
4622
|
+
this.InstanceStatus = null;
|
|
4623
|
+
|
|
4624
|
+
/**
|
|
4625
|
+
* Array of tag filters
|
|
4626
|
+
* @type {Array.<PrometheusTag> || null}
|
|
4627
|
+
*/
|
|
4628
|
+
this.TagFilters = null;
|
|
4549
4629
|
|
|
4550
4630
|
}
|
|
4551
4631
|
|
|
@@ -4556,8 +4636,20 @@ class DeleteSSOAccountRequest extends AbstractModel {
|
|
|
4556
4636
|
if (!params) {
|
|
4557
4637
|
return;
|
|
4558
4638
|
}
|
|
4559
|
-
this.
|
|
4560
|
-
this.
|
|
4639
|
+
this.Offset = 'Offset' in params ? params.Offset : null;
|
|
4640
|
+
this.Limit = 'Limit' in params ? params.Limit : null;
|
|
4641
|
+
this.InstanceIds = 'InstanceIds' in params ? params.InstanceIds : null;
|
|
4642
|
+
this.InstanceName = 'InstanceName' in params ? params.InstanceName : null;
|
|
4643
|
+
this.InstanceStatus = 'InstanceStatus' in params ? params.InstanceStatus : null;
|
|
4644
|
+
|
|
4645
|
+
if (params.TagFilters) {
|
|
4646
|
+
this.TagFilters = new Array();
|
|
4647
|
+
for (let z in params.TagFilters) {
|
|
4648
|
+
let obj = new PrometheusTag();
|
|
4649
|
+
obj.deserialize(params.TagFilters[z]);
|
|
4650
|
+
this.TagFilters.push(obj);
|
|
4651
|
+
}
|
|
4652
|
+
}
|
|
4561
4653
|
|
|
4562
4654
|
}
|
|
4563
4655
|
}
|
|
@@ -5077,76 +5169,32 @@ class DescribeBasicAlarmListRequest extends AbstractModel {
|
|
|
5077
5169
|
}
|
|
5078
5170
|
|
|
5079
5171
|
/**
|
|
5080
|
-
*
|
|
5081
|
-
* @class
|
|
5082
|
-
*/
|
|
5083
|
-
class ModifyAlarmPolicyStatusResponse extends AbstractModel {
|
|
5084
|
-
constructor(){
|
|
5085
|
-
super();
|
|
5086
|
-
|
|
5087
|
-
/**
|
|
5088
|
-
* The unique request ID, which is returned for each request. RequestId is required for locating a problem.
|
|
5089
|
-
* @type {string || null}
|
|
5090
|
-
*/
|
|
5091
|
-
this.RequestId = null;
|
|
5092
|
-
|
|
5093
|
-
}
|
|
5094
|
-
|
|
5095
|
-
/**
|
|
5096
|
-
* @private
|
|
5097
|
-
*/
|
|
5098
|
-
deserialize(params) {
|
|
5099
|
-
if (!params) {
|
|
5100
|
-
return;
|
|
5101
|
-
}
|
|
5102
|
-
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
5103
|
-
|
|
5104
|
-
}
|
|
5105
|
-
}
|
|
5106
|
-
|
|
5107
|
-
/**
|
|
5108
|
-
* DescribeGrafanaInstances request structure.
|
|
5172
|
+
* DescribePrometheusAlertGroups response structure.
|
|
5109
5173
|
* @class
|
|
5110
5174
|
*/
|
|
5111
|
-
class
|
|
5175
|
+
class DescribePrometheusAlertGroupsResponse extends AbstractModel {
|
|
5112
5176
|
constructor(){
|
|
5113
5177
|
super();
|
|
5114
5178
|
|
|
5115
5179
|
/**
|
|
5116
|
-
*
|
|
5117
|
-
|
|
5180
|
+
* Alert group information.
|
|
5181
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
5182
|
+
* @type {Array.<PrometheusAlertGroupSet> || null}
|
|
5118
5183
|
*/
|
|
5119
|
-
this.
|
|
5184
|
+
this.AlertGroupSet = null;
|
|
5120
5185
|
|
|
5121
5186
|
/**
|
|
5122
|
-
*
|
|
5187
|
+
* Total count of Alert groups.
|
|
5188
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
5123
5189
|
* @type {number || null}
|
|
5124
5190
|
*/
|
|
5125
|
-
this.
|
|
5126
|
-
|
|
5127
|
-
/**
|
|
5128
|
-
* Array of TCMG instance IDs
|
|
5129
|
-
* @type {Array.<string> || null}
|
|
5130
|
-
*/
|
|
5131
|
-
this.InstanceIds = null;
|
|
5191
|
+
this.TotalCount = null;
|
|
5132
5192
|
|
|
5133
5193
|
/**
|
|
5134
|
-
*
|
|
5194
|
+
* 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.
|
|
5135
5195
|
* @type {string || null}
|
|
5136
5196
|
*/
|
|
5137
|
-
this.
|
|
5138
|
-
|
|
5139
|
-
/**
|
|
5140
|
-
* Query status
|
|
5141
|
-
* @type {Array.<number> || null}
|
|
5142
|
-
*/
|
|
5143
|
-
this.InstanceStatus = null;
|
|
5144
|
-
|
|
5145
|
-
/**
|
|
5146
|
-
* Array of tag filters
|
|
5147
|
-
* @type {Array.<PrometheusTag> || null}
|
|
5148
|
-
*/
|
|
5149
|
-
this.TagFilters = null;
|
|
5197
|
+
this.RequestId = null;
|
|
5150
5198
|
|
|
5151
5199
|
}
|
|
5152
5200
|
|
|
@@ -5157,20 +5205,17 @@ class DescribeGrafanaInstancesRequest extends AbstractModel {
|
|
|
5157
5205
|
if (!params) {
|
|
5158
5206
|
return;
|
|
5159
5207
|
}
|
|
5160
|
-
this.Offset = 'Offset' in params ? params.Offset : null;
|
|
5161
|
-
this.Limit = 'Limit' in params ? params.Limit : null;
|
|
5162
|
-
this.InstanceIds = 'InstanceIds' in params ? params.InstanceIds : null;
|
|
5163
|
-
this.InstanceName = 'InstanceName' in params ? params.InstanceName : null;
|
|
5164
|
-
this.InstanceStatus = 'InstanceStatus' in params ? params.InstanceStatus : null;
|
|
5165
5208
|
|
|
5166
|
-
if (params.
|
|
5167
|
-
this.
|
|
5168
|
-
for (let z in params.
|
|
5169
|
-
let obj = new
|
|
5170
|
-
obj.deserialize(params.
|
|
5171
|
-
this.
|
|
5209
|
+
if (params.AlertGroupSet) {
|
|
5210
|
+
this.AlertGroupSet = new Array();
|
|
5211
|
+
for (let z in params.AlertGroupSet) {
|
|
5212
|
+
let obj = new PrometheusAlertGroupSet();
|
|
5213
|
+
obj.deserialize(params.AlertGroupSet[z]);
|
|
5214
|
+
this.AlertGroupSet.push(obj);
|
|
5172
5215
|
}
|
|
5173
5216
|
}
|
|
5217
|
+
this.TotalCount = 'TotalCount' in params ? params.TotalCount : null;
|
|
5218
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
5174
5219
|
|
|
5175
5220
|
}
|
|
5176
5221
|
}
|
|
@@ -6892,64 +6937,157 @@ class DescribeClusterAgentCreatingProgressRequest extends AbstractModel {
|
|
|
6892
6937
|
}
|
|
6893
6938
|
|
|
6894
6939
|
/**
|
|
6895
|
-
*
|
|
6940
|
+
* UpdatePrometheusAlertGroup request structure.
|
|
6896
6941
|
* @class
|
|
6897
6942
|
*/
|
|
6898
|
-
class
|
|
6943
|
+
class UpdatePrometheusAlertGroupRequest extends AbstractModel {
|
|
6899
6944
|
constructor(){
|
|
6900
6945
|
super();
|
|
6901
6946
|
|
|
6902
6947
|
/**
|
|
6903
|
-
*
|
|
6948
|
+
* prometheus instance ID.
|
|
6904
6949
|
* @type {string || null}
|
|
6905
6950
|
*/
|
|
6906
|
-
this.
|
|
6907
|
-
|
|
6908
|
-
}
|
|
6909
|
-
|
|
6910
|
-
/**
|
|
6911
|
-
* @private
|
|
6912
|
-
*/
|
|
6913
|
-
deserialize(params) {
|
|
6914
|
-
if (!params) {
|
|
6915
|
-
return;
|
|
6916
|
-
}
|
|
6917
|
-
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
6918
|
-
|
|
6919
|
-
}
|
|
6920
|
-
}
|
|
6921
|
-
|
|
6922
|
-
/**
|
|
6923
|
-
* DescribeAccidentEventList request structure.
|
|
6924
|
-
* @class
|
|
6925
|
-
*/
|
|
6926
|
-
class DescribeAccidentEventListRequest extends AbstractModel {
|
|
6927
|
-
constructor(){
|
|
6928
|
-
super();
|
|
6951
|
+
this.InstanceId = null;
|
|
6929
6952
|
|
|
6930
6953
|
/**
|
|
6931
|
-
*
|
|
6954
|
+
* Alert group ID, such as alert-xxxx.
|
|
6932
6955
|
* @type {string || null}
|
|
6933
6956
|
*/
|
|
6934
|
-
this.
|
|
6957
|
+
this.GroupId = null;
|
|
6935
6958
|
|
|
6936
6959
|
/**
|
|
6937
|
-
*
|
|
6938
|
-
* @type {
|
|
6960
|
+
* Alert group name. not allowed to have the same name as other alert groups.
|
|
6961
|
+
* @type {string || null}
|
|
6939
6962
|
*/
|
|
6940
|
-
this.
|
|
6963
|
+
this.GroupName = null;
|
|
6941
6964
|
|
|
6942
6965
|
/**
|
|
6943
|
-
*
|
|
6966
|
+
* Alert group status.
|
|
6967
|
+
2 - enable.
|
|
6968
|
+
3 - disabled.
|
|
6969
|
+
Specifies the Alert rule status under the `Rules` field to be overwritten when not empty.
|
|
6944
6970
|
* @type {number || null}
|
|
6945
6971
|
*/
|
|
6946
|
-
this.
|
|
6972
|
+
this.GroupState = null;
|
|
6947
6973
|
|
|
6948
6974
|
/**
|
|
6949
|
-
*
|
|
6950
|
-
* @type {
|
|
6975
|
+
* Alert notification template ID list of tencent cloud observability platform, such as Consumer-xxxx or notice-xxxx.
|
|
6976
|
+
* @type {Array.<string> || null}
|
|
6951
6977
|
*/
|
|
6952
|
-
this.
|
|
6978
|
+
this.AMPReceivers = null;
|
|
6979
|
+
|
|
6980
|
+
/**
|
|
6981
|
+
* Specifies the custom Alert notification template.
|
|
6982
|
+
* @type {PrometheusAlertCustomReceiver || null}
|
|
6983
|
+
*/
|
|
6984
|
+
this.CustomReceiver = null;
|
|
6985
|
+
|
|
6986
|
+
/**
|
|
6987
|
+
* Alert notification cycle (convergence time). defaults to 1h if left empty.
|
|
6988
|
+
* @type {string || null}
|
|
6989
|
+
*/
|
|
6990
|
+
this.RepeatInterval = null;
|
|
6991
|
+
|
|
6992
|
+
/**
|
|
6993
|
+
* Specifies the Alert rule list to be created.
|
|
6994
|
+
* @type {Array.<PrometheusAlertGroupRuleSet> || null}
|
|
6995
|
+
*/
|
|
6996
|
+
this.Rules = null;
|
|
6997
|
+
|
|
6998
|
+
}
|
|
6999
|
+
|
|
7000
|
+
/**
|
|
7001
|
+
* @private
|
|
7002
|
+
*/
|
|
7003
|
+
deserialize(params) {
|
|
7004
|
+
if (!params) {
|
|
7005
|
+
return;
|
|
7006
|
+
}
|
|
7007
|
+
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
|
|
7008
|
+
this.GroupId = 'GroupId' in params ? params.GroupId : null;
|
|
7009
|
+
this.GroupName = 'GroupName' in params ? params.GroupName : null;
|
|
7010
|
+
this.GroupState = 'GroupState' in params ? params.GroupState : null;
|
|
7011
|
+
this.AMPReceivers = 'AMPReceivers' in params ? params.AMPReceivers : null;
|
|
7012
|
+
|
|
7013
|
+
if (params.CustomReceiver) {
|
|
7014
|
+
let obj = new PrometheusAlertCustomReceiver();
|
|
7015
|
+
obj.deserialize(params.CustomReceiver)
|
|
7016
|
+
this.CustomReceiver = obj;
|
|
7017
|
+
}
|
|
7018
|
+
this.RepeatInterval = 'RepeatInterval' in params ? params.RepeatInterval : null;
|
|
7019
|
+
|
|
7020
|
+
if (params.Rules) {
|
|
7021
|
+
this.Rules = new Array();
|
|
7022
|
+
for (let z in params.Rules) {
|
|
7023
|
+
let obj = new PrometheusAlertGroupRuleSet();
|
|
7024
|
+
obj.deserialize(params.Rules[z]);
|
|
7025
|
+
this.Rules.push(obj);
|
|
7026
|
+
}
|
|
7027
|
+
}
|
|
7028
|
+
|
|
7029
|
+
}
|
|
7030
|
+
}
|
|
7031
|
+
|
|
7032
|
+
/**
|
|
7033
|
+
* EnableSSOCamCheck response structure.
|
|
7034
|
+
* @class
|
|
7035
|
+
*/
|
|
7036
|
+
class EnableSSOCamCheckResponse extends AbstractModel {
|
|
7037
|
+
constructor(){
|
|
7038
|
+
super();
|
|
7039
|
+
|
|
7040
|
+
/**
|
|
7041
|
+
* The unique request ID, which is returned for each request. RequestId is required for locating a problem.
|
|
7042
|
+
* @type {string || null}
|
|
7043
|
+
*/
|
|
7044
|
+
this.RequestId = null;
|
|
7045
|
+
|
|
7046
|
+
}
|
|
7047
|
+
|
|
7048
|
+
/**
|
|
7049
|
+
* @private
|
|
7050
|
+
*/
|
|
7051
|
+
deserialize(params) {
|
|
7052
|
+
if (!params) {
|
|
7053
|
+
return;
|
|
7054
|
+
}
|
|
7055
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
7056
|
+
|
|
7057
|
+
}
|
|
7058
|
+
}
|
|
7059
|
+
|
|
7060
|
+
/**
|
|
7061
|
+
* DescribeAccidentEventList request structure.
|
|
7062
|
+
* @class
|
|
7063
|
+
*/
|
|
7064
|
+
class DescribeAccidentEventListRequest extends AbstractModel {
|
|
7065
|
+
constructor(){
|
|
7066
|
+
super();
|
|
7067
|
+
|
|
7068
|
+
/**
|
|
7069
|
+
* API component name. The value for the current API is monitor.
|
|
7070
|
+
* @type {string || null}
|
|
7071
|
+
*/
|
|
7072
|
+
this.Module = null;
|
|
7073
|
+
|
|
7074
|
+
/**
|
|
7075
|
+
* Start time, which is the timestamp one day prior by default.
|
|
7076
|
+
* @type {number || null}
|
|
7077
|
+
*/
|
|
7078
|
+
this.StartTime = null;
|
|
7079
|
+
|
|
7080
|
+
/**
|
|
7081
|
+
* End time, which is the current timestamp by default.
|
|
7082
|
+
* @type {number || null}
|
|
7083
|
+
*/
|
|
7084
|
+
this.EndTime = null;
|
|
7085
|
+
|
|
7086
|
+
/**
|
|
7087
|
+
* Number of parameters that can be returned on each page. Value range: 1 - 100. Default value: 20.
|
|
7088
|
+
* @type {number || null}
|
|
7089
|
+
*/
|
|
7090
|
+
this.Limit = null;
|
|
6953
7091
|
|
|
6954
7092
|
/**
|
|
6955
7093
|
* Parameter offset on each page. The value starts from 0 and the default value is 0.
|
|
@@ -7313,6 +7451,77 @@ class PrometheusZoneItem extends AbstractModel {
|
|
|
7313
7451
|
}
|
|
7314
7452
|
}
|
|
7315
7453
|
|
|
7454
|
+
/**
|
|
7455
|
+
* Prometheus Alert custom notification template.
|
|
7456
|
+
* @class
|
|
7457
|
+
*/
|
|
7458
|
+
class PrometheusAlertCustomReceiver extends AbstractModel {
|
|
7459
|
+
constructor(){
|
|
7460
|
+
super();
|
|
7461
|
+
|
|
7462
|
+
/**
|
|
7463
|
+
* Notification customization type.
|
|
7464
|
+
Alertmanager - self-built alertmanager in vpc.
|
|
7465
|
+
webhook - webhook address in the vpc.
|
|
7466
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
7467
|
+
* @type {string || null}
|
|
7468
|
+
*/
|
|
7469
|
+
this.Type = null;
|
|
7470
|
+
|
|
7471
|
+
/**
|
|
7472
|
+
* alertmanager/webhook url (ip in the same vpc as the prometheus instance).
|
|
7473
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
7474
|
+
* @type {string || null}
|
|
7475
|
+
*/
|
|
7476
|
+
this.Url = null;
|
|
7477
|
+
|
|
7478
|
+
/**
|
|
7479
|
+
* Specifies the time range for allowing Alert sending.
|
|
7480
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
7481
|
+
* @type {Array.<PrometheusAlertAllowTimeRange> || null}
|
|
7482
|
+
*/
|
|
7483
|
+
this.AllowedTimeRanges = null;
|
|
7484
|
+
|
|
7485
|
+
/**
|
|
7486
|
+
* alertmanager intranet cluster ID.
|
|
7487
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
7488
|
+
* @type {string || null}
|
|
7489
|
+
*/
|
|
7490
|
+
this.ClusterId = null;
|
|
7491
|
+
|
|
7492
|
+
/**
|
|
7493
|
+
* alertmanager resides in the private network cluster type (tke/eks/tdcc).
|
|
7494
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
7495
|
+
* @type {string || null}
|
|
7496
|
+
*/
|
|
7497
|
+
this.ClusterType = null;
|
|
7498
|
+
|
|
7499
|
+
}
|
|
7500
|
+
|
|
7501
|
+
/**
|
|
7502
|
+
* @private
|
|
7503
|
+
*/
|
|
7504
|
+
deserialize(params) {
|
|
7505
|
+
if (!params) {
|
|
7506
|
+
return;
|
|
7507
|
+
}
|
|
7508
|
+
this.Type = 'Type' in params ? params.Type : null;
|
|
7509
|
+
this.Url = 'Url' in params ? params.Url : null;
|
|
7510
|
+
|
|
7511
|
+
if (params.AllowedTimeRanges) {
|
|
7512
|
+
this.AllowedTimeRanges = new Array();
|
|
7513
|
+
for (let z in params.AllowedTimeRanges) {
|
|
7514
|
+
let obj = new PrometheusAlertAllowTimeRange();
|
|
7515
|
+
obj.deserialize(params.AllowedTimeRanges[z]);
|
|
7516
|
+
this.AllowedTimeRanges.push(obj);
|
|
7517
|
+
}
|
|
7518
|
+
}
|
|
7519
|
+
this.ClusterId = 'ClusterId' in params ? params.ClusterId : null;
|
|
7520
|
+
this.ClusterType = 'ClusterType' in params ? params.ClusterType : null;
|
|
7521
|
+
|
|
7522
|
+
}
|
|
7523
|
+
}
|
|
7524
|
+
|
|
7316
7525
|
/**
|
|
7317
7526
|
* ModifyPrometheusAlertPolicy request structure.
|
|
7318
7527
|
* @class
|
|
@@ -7930,6 +8139,98 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
7930
8139
|
}
|
|
7931
8140
|
}
|
|
7932
8141
|
|
|
8142
|
+
/**
|
|
8143
|
+
* Prometheus alert rule information within the group.
|
|
8144
|
+
* @class
|
|
8145
|
+
*/
|
|
8146
|
+
class PrometheusAlertGroupRuleSet extends AbstractModel {
|
|
8147
|
+
constructor(){
|
|
8148
|
+
super();
|
|
8149
|
+
|
|
8150
|
+
/**
|
|
8151
|
+
* Alert rule name. same name is not allowed in the same Alert group.
|
|
8152
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
8153
|
+
* @type {string || null}
|
|
8154
|
+
*/
|
|
8155
|
+
this.RuleName = null;
|
|
8156
|
+
|
|
8157
|
+
/**
|
|
8158
|
+
* Prometheus alert label list.
|
|
8159
|
+
|
|
8160
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
8161
|
+
* @type {Array.<PrometheusRuleKV> || null}
|
|
8162
|
+
*/
|
|
8163
|
+
this.Labels = null;
|
|
8164
|
+
|
|
8165
|
+
/**
|
|
8166
|
+
* Prometheus alert annotation list.
|
|
8167
|
+
|
|
8168
|
+
Alarm object and Alarm message are special fields of Prometheus Rule Annotations. they need to pass through Annotations for transmission. the corresponding keys are summary and description respectively.
|
|
8169
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
8170
|
+
* @type {Array.<PrometheusRuleKV> || null}
|
|
8171
|
+
*/
|
|
8172
|
+
this.Annotations = null;
|
|
8173
|
+
|
|
8174
|
+
/**
|
|
8175
|
+
* Alert will be triggered after 'Expr' satisfied for 'Duration'.
|
|
8176
|
+
|
|
8177
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
8178
|
+
* @type {string || null}
|
|
8179
|
+
*/
|
|
8180
|
+
this.Duration = null;
|
|
8181
|
+
|
|
8182
|
+
/**
|
|
8183
|
+
* Alert expression. see <a href="https://www.tencentcloud.comom/document/product/1416/56008?from_cn_redirect=1">alert rule description</a>.
|
|
8184
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
8185
|
+
* @type {string || null}
|
|
8186
|
+
*/
|
|
8187
|
+
this.Expr = null;
|
|
8188
|
+
|
|
8189
|
+
/**
|
|
8190
|
+
* Alert rule status.
|
|
8191
|
+
2 - enable.
|
|
8192
|
+
3 - disabled.
|
|
8193
|
+
Enabled by default if left empty.
|
|
8194
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
8195
|
+
* @type {number || null}
|
|
8196
|
+
*/
|
|
8197
|
+
this.State = null;
|
|
8198
|
+
|
|
8199
|
+
}
|
|
8200
|
+
|
|
8201
|
+
/**
|
|
8202
|
+
* @private
|
|
8203
|
+
*/
|
|
8204
|
+
deserialize(params) {
|
|
8205
|
+
if (!params) {
|
|
8206
|
+
return;
|
|
8207
|
+
}
|
|
8208
|
+
this.RuleName = 'RuleName' in params ? params.RuleName : null;
|
|
8209
|
+
|
|
8210
|
+
if (params.Labels) {
|
|
8211
|
+
this.Labels = new Array();
|
|
8212
|
+
for (let z in params.Labels) {
|
|
8213
|
+
let obj = new PrometheusRuleKV();
|
|
8214
|
+
obj.deserialize(params.Labels[z]);
|
|
8215
|
+
this.Labels.push(obj);
|
|
8216
|
+
}
|
|
8217
|
+
}
|
|
8218
|
+
|
|
8219
|
+
if (params.Annotations) {
|
|
8220
|
+
this.Annotations = new Array();
|
|
8221
|
+
for (let z in params.Annotations) {
|
|
8222
|
+
let obj = new PrometheusRuleKV();
|
|
8223
|
+
obj.deserialize(params.Annotations[z]);
|
|
8224
|
+
this.Annotations.push(obj);
|
|
8225
|
+
}
|
|
8226
|
+
}
|
|
8227
|
+
this.Duration = 'Duration' in params ? params.Duration : null;
|
|
8228
|
+
this.Expr = 'Expr' in params ? params.Expr : null;
|
|
8229
|
+
this.State = 'State' in params ? params.State : null;
|
|
8230
|
+
|
|
8231
|
+
}
|
|
8232
|
+
}
|
|
8233
|
+
|
|
7933
8234
|
/**
|
|
7934
8235
|
* DescribeMonitorTypes request structure.
|
|
7935
8236
|
* @class
|
|
@@ -9037,6 +9338,43 @@ class CreatePrometheusClusterAgentResponse extends AbstractModel {
|
|
|
9037
9338
|
}
|
|
9038
9339
|
}
|
|
9039
9340
|
|
|
9341
|
+
/**
|
|
9342
|
+
* Prometheus custom Alert notification period.
|
|
9343
|
+
* @class
|
|
9344
|
+
*/
|
|
9345
|
+
class PrometheusAlertAllowTimeRange extends AbstractModel {
|
|
9346
|
+
constructor(){
|
|
9347
|
+
super();
|
|
9348
|
+
|
|
9349
|
+
/**
|
|
9350
|
+
* Seconds from 00:00:00.
|
|
9351
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
9352
|
+
* @type {string || null}
|
|
9353
|
+
*/
|
|
9354
|
+
this.Start = null;
|
|
9355
|
+
|
|
9356
|
+
/**
|
|
9357
|
+
* Seconds from 00:00:00.
|
|
9358
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
9359
|
+
* @type {string || null}
|
|
9360
|
+
*/
|
|
9361
|
+
this.End = null;
|
|
9362
|
+
|
|
9363
|
+
}
|
|
9364
|
+
|
|
9365
|
+
/**
|
|
9366
|
+
* @private
|
|
9367
|
+
*/
|
|
9368
|
+
deserialize(params) {
|
|
9369
|
+
if (!params) {
|
|
9370
|
+
return;
|
|
9371
|
+
}
|
|
9372
|
+
this.Start = 'Start' in params ? params.Start : null;
|
|
9373
|
+
this.End = 'End' in params ? params.End : null;
|
|
9374
|
+
|
|
9375
|
+
}
|
|
9376
|
+
}
|
|
9377
|
+
|
|
9040
9378
|
/**
|
|
9041
9379
|
* CreateGrafanaIntegration response structure.
|
|
9042
9380
|
* @class
|
|
@@ -9108,6 +9446,50 @@ class BindPrometheusManagedGrafanaRequest extends AbstractModel {
|
|
|
9108
9446
|
}
|
|
9109
9447
|
}
|
|
9110
9448
|
|
|
9449
|
+
/**
|
|
9450
|
+
* UpdatePrometheusAlertGroupState request structure.
|
|
9451
|
+
* @class
|
|
9452
|
+
*/
|
|
9453
|
+
class UpdatePrometheusAlertGroupStateRequest extends AbstractModel {
|
|
9454
|
+
constructor(){
|
|
9455
|
+
super();
|
|
9456
|
+
|
|
9457
|
+
/**
|
|
9458
|
+
* TMP instance ID
|
|
9459
|
+
* @type {string || null}
|
|
9460
|
+
*/
|
|
9461
|
+
this.InstanceId = null;
|
|
9462
|
+
|
|
9463
|
+
/**
|
|
9464
|
+
* Alarm group ID list, such as alert-xxxx.
|
|
9465
|
+
* @type {Array.<string> || null}
|
|
9466
|
+
*/
|
|
9467
|
+
this.GroupIds = null;
|
|
9468
|
+
|
|
9469
|
+
/**
|
|
9470
|
+
* Describes the group status of the alarm.
|
|
9471
|
+
2 - enable.
|
|
9472
|
+
3 - disabled.
|
|
9473
|
+
* @type {number || null}
|
|
9474
|
+
*/
|
|
9475
|
+
this.GroupState = null;
|
|
9476
|
+
|
|
9477
|
+
}
|
|
9478
|
+
|
|
9479
|
+
/**
|
|
9480
|
+
* @private
|
|
9481
|
+
*/
|
|
9482
|
+
deserialize(params) {
|
|
9483
|
+
if (!params) {
|
|
9484
|
+
return;
|
|
9485
|
+
}
|
|
9486
|
+
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
|
|
9487
|
+
this.GroupIds = 'GroupIds' in params ? params.GroupIds : null;
|
|
9488
|
+
this.GroupState = 'GroupState' in params ? params.GroupState : null;
|
|
9489
|
+
|
|
9490
|
+
}
|
|
9491
|
+
}
|
|
9492
|
+
|
|
9111
9493
|
/**
|
|
9112
9494
|
* Self-built AlertManager configuration used by the alert channel
|
|
9113
9495
|
* @class
|
|
@@ -10188,6 +10570,34 @@ class DescribeDNSConfigResponse extends AbstractModel {
|
|
|
10188
10570
|
}
|
|
10189
10571
|
}
|
|
10190
10572
|
|
|
10573
|
+
/**
|
|
10574
|
+
* DestroyPrometheusInstance request structure.
|
|
10575
|
+
* @class
|
|
10576
|
+
*/
|
|
10577
|
+
class DestroyPrometheusInstanceRequest extends AbstractModel {
|
|
10578
|
+
constructor(){
|
|
10579
|
+
super();
|
|
10580
|
+
|
|
10581
|
+
/**
|
|
10582
|
+
* Instance ID. The instance must be terminated first.
|
|
10583
|
+
* @type {string || null}
|
|
10584
|
+
*/
|
|
10585
|
+
this.InstanceId = null;
|
|
10586
|
+
|
|
10587
|
+
}
|
|
10588
|
+
|
|
10589
|
+
/**
|
|
10590
|
+
* @private
|
|
10591
|
+
*/
|
|
10592
|
+
deserialize(params) {
|
|
10593
|
+
if (!params) {
|
|
10594
|
+
return;
|
|
10595
|
+
}
|
|
10596
|
+
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
|
|
10597
|
+
|
|
10598
|
+
}
|
|
10599
|
+
}
|
|
10600
|
+
|
|
10191
10601
|
/**
|
|
10192
10602
|
* DeleteRecordingRules request structure.
|
|
10193
10603
|
* @class
|
|
@@ -13176,13 +13586,49 @@ class CreateAlarmPolicyResponse extends AbstractModel {
|
|
|
13176
13586
|
* Alarm policy ID, which can be used when you call APIs ([BindingPolicyObject](https://intl.cloud.tencent.com/document/product/248/40421?from_cn_redirect=1), [UnBindingAllPolicyObject](https://intl.cloud.tencent.com/document/product/248/40568?from_cn_redirect=1), [UnBindingPolicyObject](https://intl.cloud.tencent.com/document/product/248/40567?from_cn_redirect=1)) to bind/unbind instances or instance groups to/from an alarm policy
|
|
13177
13587
|
* @type {string || null}
|
|
13178
13588
|
*/
|
|
13179
|
-
this.OriginId = null;
|
|
13589
|
+
this.OriginId = null;
|
|
13590
|
+
|
|
13591
|
+
/**
|
|
13592
|
+
* The unique request ID, which is returned for each request. RequestId is required for locating a problem.
|
|
13593
|
+
* @type {string || null}
|
|
13594
|
+
*/
|
|
13595
|
+
this.RequestId = null;
|
|
13596
|
+
|
|
13597
|
+
}
|
|
13598
|
+
|
|
13599
|
+
/**
|
|
13600
|
+
* @private
|
|
13601
|
+
*/
|
|
13602
|
+
deserialize(params) {
|
|
13603
|
+
if (!params) {
|
|
13604
|
+
return;
|
|
13605
|
+
}
|
|
13606
|
+
this.PolicyId = 'PolicyId' in params ? params.PolicyId : null;
|
|
13607
|
+
this.OriginId = 'OriginId' in params ? params.OriginId : null;
|
|
13608
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
13609
|
+
|
|
13610
|
+
}
|
|
13611
|
+
}
|
|
13612
|
+
|
|
13613
|
+
/**
|
|
13614
|
+
* DeleteGrafanaNotificationChannel request structure.
|
|
13615
|
+
* @class
|
|
13616
|
+
*/
|
|
13617
|
+
class DeleteGrafanaNotificationChannelRequest extends AbstractModel {
|
|
13618
|
+
constructor(){
|
|
13619
|
+
super();
|
|
13620
|
+
|
|
13621
|
+
/**
|
|
13622
|
+
* Array of channel IDs, such as “nchannel-abcd1234”.
|
|
13623
|
+
* @type {Array.<string> || null}
|
|
13624
|
+
*/
|
|
13625
|
+
this.ChannelIDs = null;
|
|
13180
13626
|
|
|
13181
13627
|
/**
|
|
13182
|
-
*
|
|
13628
|
+
* TCMG instance ID, such as “grafana-abcdefgh”.
|
|
13183
13629
|
* @type {string || null}
|
|
13184
13630
|
*/
|
|
13185
|
-
this.
|
|
13631
|
+
this.InstanceId = null;
|
|
13186
13632
|
|
|
13187
13633
|
}
|
|
13188
13634
|
|
|
@@ -13193,32 +13639,65 @@ class CreateAlarmPolicyResponse extends AbstractModel {
|
|
|
13193
13639
|
if (!params) {
|
|
13194
13640
|
return;
|
|
13195
13641
|
}
|
|
13196
|
-
this.
|
|
13197
|
-
this.
|
|
13198
|
-
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
13642
|
+
this.ChannelIDs = 'ChannelIDs' in params ? params.ChannelIDs : null;
|
|
13643
|
+
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
|
|
13199
13644
|
|
|
13200
13645
|
}
|
|
13201
13646
|
}
|
|
13202
13647
|
|
|
13203
13648
|
/**
|
|
13204
|
-
*
|
|
13649
|
+
* CreatePrometheusAlertGroup request structure.
|
|
13205
13650
|
* @class
|
|
13206
13651
|
*/
|
|
13207
|
-
class
|
|
13652
|
+
class CreatePrometheusAlertGroupRequest extends AbstractModel {
|
|
13208
13653
|
constructor(){
|
|
13209
13654
|
super();
|
|
13210
13655
|
|
|
13211
13656
|
/**
|
|
13212
|
-
*
|
|
13657
|
+
* prometheus instance ID.
|
|
13658
|
+
* @type {string || null}
|
|
13659
|
+
*/
|
|
13660
|
+
this.InstanceId = null;
|
|
13661
|
+
|
|
13662
|
+
/**
|
|
13663
|
+
* Alert group name. Not allowed to have the same name as other Alert groups.
|
|
13664
|
+
* @type {string || null}
|
|
13665
|
+
*/
|
|
13666
|
+
this.GroupName = null;
|
|
13667
|
+
|
|
13668
|
+
/**
|
|
13669
|
+
* Alert group status.
|
|
13670
|
+
2 - enable.
|
|
13671
|
+
3 - disabled.
|
|
13672
|
+
Specifies to overwrite all alert rule statuses under the `Rules` field when not empty.
|
|
13673
|
+
|
|
13674
|
+
* @type {number || null}
|
|
13675
|
+
*/
|
|
13676
|
+
this.GroupState = null;
|
|
13677
|
+
|
|
13678
|
+
/**
|
|
13679
|
+
* Alert notification template ID list of tencent cloud observability platform, such as Consumer-xxxx or notice-xxxx.
|
|
13213
13680
|
* @type {Array.<string> || null}
|
|
13214
13681
|
*/
|
|
13215
|
-
this.
|
|
13682
|
+
this.AMPReceivers = null;
|
|
13216
13683
|
|
|
13217
13684
|
/**
|
|
13218
|
-
*
|
|
13685
|
+
* Specifies the custom Alert notification template.
|
|
13686
|
+
* @type {PrometheusAlertCustomReceiver || null}
|
|
13687
|
+
*/
|
|
13688
|
+
this.CustomReceiver = null;
|
|
13689
|
+
|
|
13690
|
+
/**
|
|
13691
|
+
* Alert notification cycle (convergence time). defaults to 1h if left empty.
|
|
13219
13692
|
* @type {string || null}
|
|
13220
13693
|
*/
|
|
13221
|
-
this.
|
|
13694
|
+
this.RepeatInterval = null;
|
|
13695
|
+
|
|
13696
|
+
/**
|
|
13697
|
+
* Specifies the Alert rule list to be created.
|
|
13698
|
+
* @type {Array.<PrometheusAlertGroupRuleSet> || null}
|
|
13699
|
+
*/
|
|
13700
|
+
this.Rules = null;
|
|
13222
13701
|
|
|
13223
13702
|
}
|
|
13224
13703
|
|
|
@@ -13229,8 +13708,26 @@ class DeleteGrafanaNotificationChannelRequest extends AbstractModel {
|
|
|
13229
13708
|
if (!params) {
|
|
13230
13709
|
return;
|
|
13231
13710
|
}
|
|
13232
|
-
this.ChannelIDs = 'ChannelIDs' in params ? params.ChannelIDs : null;
|
|
13233
13711
|
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
|
|
13712
|
+
this.GroupName = 'GroupName' in params ? params.GroupName : null;
|
|
13713
|
+
this.GroupState = 'GroupState' in params ? params.GroupState : null;
|
|
13714
|
+
this.AMPReceivers = 'AMPReceivers' in params ? params.AMPReceivers : null;
|
|
13715
|
+
|
|
13716
|
+
if (params.CustomReceiver) {
|
|
13717
|
+
let obj = new PrometheusAlertCustomReceiver();
|
|
13718
|
+
obj.deserialize(params.CustomReceiver)
|
|
13719
|
+
this.CustomReceiver = obj;
|
|
13720
|
+
}
|
|
13721
|
+
this.RepeatInterval = 'RepeatInterval' in params ? params.RepeatInterval : null;
|
|
13722
|
+
|
|
13723
|
+
if (params.Rules) {
|
|
13724
|
+
this.Rules = new Array();
|
|
13725
|
+
for (let z in params.Rules) {
|
|
13726
|
+
let obj = new PrometheusAlertGroupRuleSet();
|
|
13727
|
+
obj.deserialize(params.Rules[z]);
|
|
13728
|
+
this.Rules.push(obj);
|
|
13729
|
+
}
|
|
13730
|
+
}
|
|
13234
13731
|
|
|
13235
13732
|
}
|
|
13236
13733
|
}
|
|
@@ -16033,6 +16530,34 @@ Note: This field may return `null`, indicating that no valid values can be obtai
|
|
|
16033
16530
|
}
|
|
16034
16531
|
}
|
|
16035
16532
|
|
|
16533
|
+
/**
|
|
16534
|
+
* DeletePrometheusAlertGroups response structure.
|
|
16535
|
+
* @class
|
|
16536
|
+
*/
|
|
16537
|
+
class DeletePrometheusAlertGroupsResponse extends AbstractModel {
|
|
16538
|
+
constructor(){
|
|
16539
|
+
super();
|
|
16540
|
+
|
|
16541
|
+
/**
|
|
16542
|
+
* 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.
|
|
16543
|
+
* @type {string || null}
|
|
16544
|
+
*/
|
|
16545
|
+
this.RequestId = null;
|
|
16546
|
+
|
|
16547
|
+
}
|
|
16548
|
+
|
|
16549
|
+
/**
|
|
16550
|
+
* @private
|
|
16551
|
+
*/
|
|
16552
|
+
deserialize(params) {
|
|
16553
|
+
if (!params) {
|
|
16554
|
+
return;
|
|
16555
|
+
}
|
|
16556
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
16557
|
+
|
|
16558
|
+
}
|
|
16559
|
+
}
|
|
16560
|
+
|
|
16036
16561
|
/**
|
|
16037
16562
|
* CreatePrometheusTemp request structure.
|
|
16038
16563
|
* @class
|
|
@@ -18274,34 +18799,6 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
18274
18799
|
}
|
|
18275
18800
|
}
|
|
18276
18801
|
|
|
18277
|
-
/**
|
|
18278
|
-
* DeleteRecordingRules response structure.
|
|
18279
|
-
* @class
|
|
18280
|
-
*/
|
|
18281
|
-
class DeleteRecordingRulesResponse extends AbstractModel {
|
|
18282
|
-
constructor(){
|
|
18283
|
-
super();
|
|
18284
|
-
|
|
18285
|
-
/**
|
|
18286
|
-
* The unique request ID, which is returned for each request. RequestId is required for locating a problem.
|
|
18287
|
-
* @type {string || null}
|
|
18288
|
-
*/
|
|
18289
|
-
this.RequestId = null;
|
|
18290
|
-
|
|
18291
|
-
}
|
|
18292
|
-
|
|
18293
|
-
/**
|
|
18294
|
-
* @private
|
|
18295
|
-
*/
|
|
18296
|
-
deserialize(params) {
|
|
18297
|
-
if (!params) {
|
|
18298
|
-
return;
|
|
18299
|
-
}
|
|
18300
|
-
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
18301
|
-
|
|
18302
|
-
}
|
|
18303
|
-
}
|
|
18304
|
-
|
|
18305
18802
|
/**
|
|
18306
18803
|
* UpdateGrafanaWhiteList request structure.
|
|
18307
18804
|
* @class
|
|
@@ -19119,6 +19616,48 @@ class DeleteAlertRulesResponse extends AbstractModel {
|
|
|
19119
19616
|
}
|
|
19120
19617
|
}
|
|
19121
19618
|
|
|
19619
|
+
/**
|
|
19620
|
+
* DeletePrometheusScrapeJobs request structure.
|
|
19621
|
+
* @class
|
|
19622
|
+
*/
|
|
19623
|
+
class DeletePrometheusScrapeJobsRequest extends AbstractModel {
|
|
19624
|
+
constructor(){
|
|
19625
|
+
super();
|
|
19626
|
+
|
|
19627
|
+
/**
|
|
19628
|
+
* Instance ID
|
|
19629
|
+
* @type {string || null}
|
|
19630
|
+
*/
|
|
19631
|
+
this.InstanceId = null;
|
|
19632
|
+
|
|
19633
|
+
/**
|
|
19634
|
+
* Agent ID
|
|
19635
|
+
* @type {string || null}
|
|
19636
|
+
*/
|
|
19637
|
+
this.AgentId = null;
|
|
19638
|
+
|
|
19639
|
+
/**
|
|
19640
|
+
* List of task IDs
|
|
19641
|
+
* @type {Array.<string> || null}
|
|
19642
|
+
*/
|
|
19643
|
+
this.JobIds = null;
|
|
19644
|
+
|
|
19645
|
+
}
|
|
19646
|
+
|
|
19647
|
+
/**
|
|
19648
|
+
* @private
|
|
19649
|
+
*/
|
|
19650
|
+
deserialize(params) {
|
|
19651
|
+
if (!params) {
|
|
19652
|
+
return;
|
|
19653
|
+
}
|
|
19654
|
+
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
|
|
19655
|
+
this.AgentId = 'AgentId' in params ? params.AgentId : null;
|
|
19656
|
+
this.JobIds = 'JobIds' in params ? params.JobIds : null;
|
|
19657
|
+
|
|
19658
|
+
}
|
|
19659
|
+
}
|
|
19660
|
+
|
|
19122
19661
|
/**
|
|
19123
19662
|
* ModifyAlarmPolicyStatus request structure.
|
|
19124
19663
|
* @class
|
|
@@ -20173,6 +20712,64 @@ class DescribePrometheusZonesRequest extends AbstractModel {
|
|
|
20173
20712
|
}
|
|
20174
20713
|
}
|
|
20175
20714
|
|
|
20715
|
+
/**
|
|
20716
|
+
* DescribePrometheusAlertGroups request structure.
|
|
20717
|
+
* @class
|
|
20718
|
+
*/
|
|
20719
|
+
class DescribePrometheusAlertGroupsRequest extends AbstractModel {
|
|
20720
|
+
constructor(){
|
|
20721
|
+
super();
|
|
20722
|
+
|
|
20723
|
+
/**
|
|
20724
|
+
* prometheus instance ID
|
|
20725
|
+
* @type {string || null}
|
|
20726
|
+
*/
|
|
20727
|
+
this.InstanceId = null;
|
|
20728
|
+
|
|
20729
|
+
/**
|
|
20730
|
+
* Number of returned results. defaults to 20. maximum value is 100.
|
|
20731
|
+
* @type {number || null}
|
|
20732
|
+
*/
|
|
20733
|
+
this.Limit = null;
|
|
20734
|
+
|
|
20735
|
+
/**
|
|
20736
|
+
* Offset. default value: 0.
|
|
20737
|
+
* @type {number || null}
|
|
20738
|
+
*/
|
|
20739
|
+
this.Offset = null;
|
|
20740
|
+
|
|
20741
|
+
/**
|
|
20742
|
+
* Alert group ID, such as alert-xxxx.
|
|
20743
|
+
List the alert group with the given ID.
|
|
20744
|
+
* @type {string || null}
|
|
20745
|
+
*/
|
|
20746
|
+
this.GroupId = null;
|
|
20747
|
+
|
|
20748
|
+
/**
|
|
20749
|
+
* Specifies the alert group name.
|
|
20750
|
+
List alert groups which name contains the given string.
|
|
20751
|
+
* @type {string || null}
|
|
20752
|
+
*/
|
|
20753
|
+
this.GroupName = null;
|
|
20754
|
+
|
|
20755
|
+
}
|
|
20756
|
+
|
|
20757
|
+
/**
|
|
20758
|
+
* @private
|
|
20759
|
+
*/
|
|
20760
|
+
deserialize(params) {
|
|
20761
|
+
if (!params) {
|
|
20762
|
+
return;
|
|
20763
|
+
}
|
|
20764
|
+
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
|
|
20765
|
+
this.Limit = 'Limit' in params ? params.Limit : null;
|
|
20766
|
+
this.Offset = 'Offset' in params ? params.Offset : null;
|
|
20767
|
+
this.GroupId = 'GroupId' in params ? params.GroupId : null;
|
|
20768
|
+
this.GroupName = 'GroupName' in params ? params.GroupName : null;
|
|
20769
|
+
|
|
20770
|
+
}
|
|
20771
|
+
}
|
|
20772
|
+
|
|
20176
20773
|
/**
|
|
20177
20774
|
* Modification of the metric threshold condition passed in by the alarm policy group.
|
|
20178
20775
|
* @class
|
|
@@ -20560,7 +21157,65 @@ class ModifyPrometheusAgentExternalLabelsRequest extends AbstractModel {
|
|
|
20560
21157
|
* New external labels
|
|
20561
21158
|
* @type {Array.<Label> || null}
|
|
20562
21159
|
*/
|
|
20563
|
-
this.ExternalLabels = null;
|
|
21160
|
+
this.ExternalLabels = null;
|
|
21161
|
+
|
|
21162
|
+
}
|
|
21163
|
+
|
|
21164
|
+
/**
|
|
21165
|
+
* @private
|
|
21166
|
+
*/
|
|
21167
|
+
deserialize(params) {
|
|
21168
|
+
if (!params) {
|
|
21169
|
+
return;
|
|
21170
|
+
}
|
|
21171
|
+
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
|
|
21172
|
+
this.ClusterId = 'ClusterId' in params ? params.ClusterId : null;
|
|
21173
|
+
|
|
21174
|
+
if (params.ExternalLabels) {
|
|
21175
|
+
this.ExternalLabels = new Array();
|
|
21176
|
+
for (let z in params.ExternalLabels) {
|
|
21177
|
+
let obj = new Label();
|
|
21178
|
+
obj.deserialize(params.ExternalLabels[z]);
|
|
21179
|
+
this.ExternalLabels.push(obj);
|
|
21180
|
+
}
|
|
21181
|
+
}
|
|
21182
|
+
|
|
21183
|
+
}
|
|
21184
|
+
}
|
|
21185
|
+
|
|
21186
|
+
/**
|
|
21187
|
+
* Prometheus scrape task
|
|
21188
|
+
* @class
|
|
21189
|
+
*/
|
|
21190
|
+
class PrometheusScrapeJob extends AbstractModel {
|
|
21191
|
+
constructor(){
|
|
21192
|
+
super();
|
|
21193
|
+
|
|
21194
|
+
/**
|
|
21195
|
+
* Task name
|
|
21196
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
21197
|
+
* @type {string || null}
|
|
21198
|
+
*/
|
|
21199
|
+
this.Name = null;
|
|
21200
|
+
|
|
21201
|
+
/**
|
|
21202
|
+
* Agent ID
|
|
21203
|
+
* @type {string || null}
|
|
21204
|
+
*/
|
|
21205
|
+
this.AgentId = null;
|
|
21206
|
+
|
|
21207
|
+
/**
|
|
21208
|
+
* Task ID
|
|
21209
|
+
* @type {string || null}
|
|
21210
|
+
*/
|
|
21211
|
+
this.JobId = null;
|
|
21212
|
+
|
|
21213
|
+
/**
|
|
21214
|
+
* Configuration
|
|
21215
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
21216
|
+
* @type {string || null}
|
|
21217
|
+
*/
|
|
21218
|
+
this.Config = null;
|
|
20564
21219
|
|
|
20565
21220
|
}
|
|
20566
21221
|
|
|
@@ -20571,17 +21226,10 @@ class ModifyPrometheusAgentExternalLabelsRequest extends AbstractModel {
|
|
|
20571
21226
|
if (!params) {
|
|
20572
21227
|
return;
|
|
20573
21228
|
}
|
|
20574
|
-
this.
|
|
20575
|
-
this.
|
|
20576
|
-
|
|
20577
|
-
|
|
20578
|
-
this.ExternalLabels = new Array();
|
|
20579
|
-
for (let z in params.ExternalLabels) {
|
|
20580
|
-
let obj = new Label();
|
|
20581
|
-
obj.deserialize(params.ExternalLabels[z]);
|
|
20582
|
-
this.ExternalLabels.push(obj);
|
|
20583
|
-
}
|
|
20584
|
-
}
|
|
21229
|
+
this.Name = 'Name' in params ? params.Name : null;
|
|
21230
|
+
this.AgentId = 'AgentId' in params ? params.AgentId : null;
|
|
21231
|
+
this.JobId = 'JobId' in params ? params.JobId : null;
|
|
21232
|
+
this.Config = 'Config' in params ? params.Config : null;
|
|
20585
21233
|
|
|
20586
21234
|
}
|
|
20587
21235
|
}
|
|
@@ -20728,6 +21376,34 @@ class DescribePrometheusTempRequest extends AbstractModel {
|
|
|
20728
21376
|
}
|
|
20729
21377
|
}
|
|
20730
21378
|
|
|
21379
|
+
/**
|
|
21380
|
+
* UpdatePrometheusAlertGroupState response structure.
|
|
21381
|
+
* @class
|
|
21382
|
+
*/
|
|
21383
|
+
class UpdatePrometheusAlertGroupStateResponse extends AbstractModel {
|
|
21384
|
+
constructor(){
|
|
21385
|
+
super();
|
|
21386
|
+
|
|
21387
|
+
/**
|
|
21388
|
+
* 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.
|
|
21389
|
+
* @type {string || null}
|
|
21390
|
+
*/
|
|
21391
|
+
this.RequestId = null;
|
|
21392
|
+
|
|
21393
|
+
}
|
|
21394
|
+
|
|
21395
|
+
/**
|
|
21396
|
+
* @private
|
|
21397
|
+
*/
|
|
21398
|
+
deserialize(params) {
|
|
21399
|
+
if (!params) {
|
|
21400
|
+
return;
|
|
21401
|
+
}
|
|
21402
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
21403
|
+
|
|
21404
|
+
}
|
|
21405
|
+
}
|
|
21406
|
+
|
|
20731
21407
|
/**
|
|
20732
21408
|
* Alarms returned by DescribeBasicAlarmList
|
|
20733
21409
|
* @class
|
|
@@ -21305,36 +21981,24 @@ Note: This field may return null, indicating that no valid value was found.
|
|
|
21305
21981
|
}
|
|
21306
21982
|
|
|
21307
21983
|
/**
|
|
21308
|
-
*
|
|
21984
|
+
* UpdatePrometheusAlertGroup response structure.
|
|
21309
21985
|
* @class
|
|
21310
21986
|
*/
|
|
21311
|
-
class
|
|
21987
|
+
class UpdatePrometheusAlertGroupResponse extends AbstractModel {
|
|
21312
21988
|
constructor(){
|
|
21313
21989
|
super();
|
|
21314
21990
|
|
|
21315
21991
|
/**
|
|
21316
|
-
*
|
|
21317
|
-
* @type {string || null}
|
|
21318
|
-
*/
|
|
21319
|
-
this.InstanceId = null;
|
|
21320
|
-
|
|
21321
|
-
/**
|
|
21322
|
-
* User account ID, such as “10000000”.
|
|
21992
|
+
* Updated Alert group ID. must match the regular expression `alert-[a-z0-9]{8}`.
|
|
21323
21993
|
* @type {string || null}
|
|
21324
21994
|
*/
|
|
21325
|
-
this.
|
|
21326
|
-
|
|
21327
|
-
/**
|
|
21328
|
-
* Permission
|
|
21329
|
-
* @type {Array.<GrafanaAccountRole> || null}
|
|
21330
|
-
*/
|
|
21331
|
-
this.Role = null;
|
|
21995
|
+
this.GroupId = null;
|
|
21332
21996
|
|
|
21333
21997
|
/**
|
|
21334
|
-
*
|
|
21998
|
+
* 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.
|
|
21335
21999
|
* @type {string || null}
|
|
21336
22000
|
*/
|
|
21337
|
-
this.
|
|
22001
|
+
this.RequestId = null;
|
|
21338
22002
|
|
|
21339
22003
|
}
|
|
21340
22004
|
|
|
@@ -21345,18 +22009,8 @@ class UpdateSSOAccountRequest extends AbstractModel {
|
|
|
21345
22009
|
if (!params) {
|
|
21346
22010
|
return;
|
|
21347
22011
|
}
|
|
21348
|
-
this.
|
|
21349
|
-
this.
|
|
21350
|
-
|
|
21351
|
-
if (params.Role) {
|
|
21352
|
-
this.Role = new Array();
|
|
21353
|
-
for (let z in params.Role) {
|
|
21354
|
-
let obj = new GrafanaAccountRole();
|
|
21355
|
-
obj.deserialize(params.Role[z]);
|
|
21356
|
-
this.Role.push(obj);
|
|
21357
|
-
}
|
|
21358
|
-
}
|
|
21359
|
-
this.Notes = 'Notes' in params ? params.Notes : null;
|
|
22012
|
+
this.GroupId = 'GroupId' in params ? params.GroupId : null;
|
|
22013
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
21360
22014
|
|
|
21361
22015
|
}
|
|
21362
22016
|
}
|
|
@@ -21653,38 +22307,36 @@ It can be queried with the API [DescribeAlarmNotices](https://intl.cloud.tencent
|
|
|
21653
22307
|
}
|
|
21654
22308
|
|
|
21655
22309
|
/**
|
|
21656
|
-
*
|
|
22310
|
+
* UpdateSSOAccount request structure.
|
|
21657
22311
|
* @class
|
|
21658
22312
|
*/
|
|
21659
|
-
class
|
|
22313
|
+
class UpdateSSOAccountRequest extends AbstractModel {
|
|
21660
22314
|
constructor(){
|
|
21661
22315
|
super();
|
|
21662
22316
|
|
|
21663
22317
|
/**
|
|
21664
|
-
*
|
|
21665
|
-
Note: This field may return null, indicating that no valid values can be obtained.
|
|
22318
|
+
* TCMG instance ID, such as “grafana-abcdefgh”.
|
|
21666
22319
|
* @type {string || null}
|
|
21667
22320
|
*/
|
|
21668
|
-
this.
|
|
22321
|
+
this.InstanceId = null;
|
|
21669
22322
|
|
|
21670
22323
|
/**
|
|
21671
|
-
*
|
|
22324
|
+
* User account ID, such as “10000000”.
|
|
21672
22325
|
* @type {string || null}
|
|
21673
22326
|
*/
|
|
21674
|
-
this.
|
|
22327
|
+
this.UserId = null;
|
|
21675
22328
|
|
|
21676
22329
|
/**
|
|
21677
|
-
*
|
|
21678
|
-
* @type {
|
|
22330
|
+
* Permission
|
|
22331
|
+
* @type {Array.<GrafanaAccountRole> || null}
|
|
21679
22332
|
*/
|
|
21680
|
-
this.
|
|
22333
|
+
this.Role = null;
|
|
21681
22334
|
|
|
21682
22335
|
/**
|
|
21683
|
-
*
|
|
21684
|
-
Note: This field may return null, indicating that no valid values can be obtained.
|
|
22336
|
+
* Remarks
|
|
21685
22337
|
* @type {string || null}
|
|
21686
22338
|
*/
|
|
21687
|
-
this.
|
|
22339
|
+
this.Notes = null;
|
|
21688
22340
|
|
|
21689
22341
|
}
|
|
21690
22342
|
|
|
@@ -21695,10 +22347,18 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
21695
22347
|
if (!params) {
|
|
21696
22348
|
return;
|
|
21697
22349
|
}
|
|
21698
|
-
this.
|
|
21699
|
-
this.
|
|
21700
|
-
|
|
21701
|
-
|
|
22350
|
+
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
|
|
22351
|
+
this.UserId = 'UserId' in params ? params.UserId : null;
|
|
22352
|
+
|
|
22353
|
+
if (params.Role) {
|
|
22354
|
+
this.Role = new Array();
|
|
22355
|
+
for (let z in params.Role) {
|
|
22356
|
+
let obj = new GrafanaAccountRole();
|
|
22357
|
+
obj.deserialize(params.Role[z]);
|
|
22358
|
+
this.Role.push(obj);
|
|
22359
|
+
}
|
|
22360
|
+
}
|
|
22361
|
+
this.Notes = 'Notes' in params ? params.Notes : null;
|
|
21702
22362
|
|
|
21703
22363
|
}
|
|
21704
22364
|
}
|
|
@@ -22261,6 +22921,41 @@ class UpdateGrafanaIntegrationRequest extends AbstractModel {
|
|
|
22261
22921
|
}
|
|
22262
22922
|
}
|
|
22263
22923
|
|
|
22924
|
+
/**
|
|
22925
|
+
* CreatePrometheusAlertGroup response structure.
|
|
22926
|
+
* @class
|
|
22927
|
+
*/
|
|
22928
|
+
class CreatePrometheusAlertGroupResponse extends AbstractModel {
|
|
22929
|
+
constructor(){
|
|
22930
|
+
super();
|
|
22931
|
+
|
|
22932
|
+
/**
|
|
22933
|
+
* Created Alert group ID, which matches the regular expression `alert-[a-z0-9]{8}`.
|
|
22934
|
+
* @type {string || null}
|
|
22935
|
+
*/
|
|
22936
|
+
this.GroupId = null;
|
|
22937
|
+
|
|
22938
|
+
/**
|
|
22939
|
+
* 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.
|
|
22940
|
+
* @type {string || null}
|
|
22941
|
+
*/
|
|
22942
|
+
this.RequestId = null;
|
|
22943
|
+
|
|
22944
|
+
}
|
|
22945
|
+
|
|
22946
|
+
/**
|
|
22947
|
+
* @private
|
|
22948
|
+
*/
|
|
22949
|
+
deserialize(params) {
|
|
22950
|
+
if (!params) {
|
|
22951
|
+
return;
|
|
22952
|
+
}
|
|
22953
|
+
this.GroupId = 'GroupId' in params ? params.GroupId : null;
|
|
22954
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
22955
|
+
|
|
22956
|
+
}
|
|
22957
|
+
}
|
|
22958
|
+
|
|
22264
22959
|
/**
|
|
22265
22960
|
* DeletePrometheusRecordRuleYaml request structure.
|
|
22266
22961
|
* @class
|
|
@@ -22501,6 +23196,114 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
22501
23196
|
}
|
|
22502
23197
|
}
|
|
22503
23198
|
|
|
23199
|
+
/**
|
|
23200
|
+
* Prometheus alert rule groups information.
|
|
23201
|
+
* @class
|
|
23202
|
+
*/
|
|
23203
|
+
class PrometheusAlertGroupSet extends AbstractModel {
|
|
23204
|
+
constructor(){
|
|
23205
|
+
super();
|
|
23206
|
+
|
|
23207
|
+
/**
|
|
23208
|
+
* Alert group ID. must match the regular expression `alert-[a-z0-9]{8}`.
|
|
23209
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
23210
|
+
* @type {string || null}
|
|
23211
|
+
*/
|
|
23212
|
+
this.GroupId = null;
|
|
23213
|
+
|
|
23214
|
+
/**
|
|
23215
|
+
* Alert group name.
|
|
23216
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
23217
|
+
* @type {string || null}
|
|
23218
|
+
*/
|
|
23219
|
+
this.GroupName = null;
|
|
23220
|
+
|
|
23221
|
+
/**
|
|
23222
|
+
* Alert template ID of tencent cloud observability platform (tcop). returns the converted notice ID of the Alert template.
|
|
23223
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
23224
|
+
* @type {Array.<string> || null}
|
|
23225
|
+
*/
|
|
23226
|
+
this.AMPReceivers = null;
|
|
23227
|
+
|
|
23228
|
+
/**
|
|
23229
|
+
* Custom Alert template.
|
|
23230
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
23231
|
+
* @type {PrometheusAlertCustomReceiver || null}
|
|
23232
|
+
*/
|
|
23233
|
+
this.CustomReceiver = null;
|
|
23234
|
+
|
|
23235
|
+
/**
|
|
23236
|
+
* Alert notification interval.
|
|
23237
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
23238
|
+
* @type {string || null}
|
|
23239
|
+
*/
|
|
23240
|
+
this.RepeatInterval = null;
|
|
23241
|
+
|
|
23242
|
+
/**
|
|
23243
|
+
* If the Alert group is created via template, returns the template ID.
|
|
23244
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
23245
|
+
* @type {string || null}
|
|
23246
|
+
*/
|
|
23247
|
+
this.TemplateId = null;
|
|
23248
|
+
|
|
23249
|
+
/**
|
|
23250
|
+
* Alert rule details within the group.
|
|
23251
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
23252
|
+
* @type {Array.<PrometheusAlertGroupRuleSet> || null}
|
|
23253
|
+
*/
|
|
23254
|
+
this.Rules = null;
|
|
23255
|
+
|
|
23256
|
+
/**
|
|
23257
|
+
* Group creation time
|
|
23258
|
+
|
|
23259
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
23260
|
+
* @type {string || null}
|
|
23261
|
+
*/
|
|
23262
|
+
this.CreatedAt = null;
|
|
23263
|
+
|
|
23264
|
+
/**
|
|
23265
|
+
* Group update time
|
|
23266
|
+
|
|
23267
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
23268
|
+
* @type {string || null}
|
|
23269
|
+
*/
|
|
23270
|
+
this.UpdatedAt = null;
|
|
23271
|
+
|
|
23272
|
+
}
|
|
23273
|
+
|
|
23274
|
+
/**
|
|
23275
|
+
* @private
|
|
23276
|
+
*/
|
|
23277
|
+
deserialize(params) {
|
|
23278
|
+
if (!params) {
|
|
23279
|
+
return;
|
|
23280
|
+
}
|
|
23281
|
+
this.GroupId = 'GroupId' in params ? params.GroupId : null;
|
|
23282
|
+
this.GroupName = 'GroupName' in params ? params.GroupName : null;
|
|
23283
|
+
this.AMPReceivers = 'AMPReceivers' in params ? params.AMPReceivers : null;
|
|
23284
|
+
|
|
23285
|
+
if (params.CustomReceiver) {
|
|
23286
|
+
let obj = new PrometheusAlertCustomReceiver();
|
|
23287
|
+
obj.deserialize(params.CustomReceiver)
|
|
23288
|
+
this.CustomReceiver = obj;
|
|
23289
|
+
}
|
|
23290
|
+
this.RepeatInterval = 'RepeatInterval' in params ? params.RepeatInterval : null;
|
|
23291
|
+
this.TemplateId = 'TemplateId' in params ? params.TemplateId : null;
|
|
23292
|
+
|
|
23293
|
+
if (params.Rules) {
|
|
23294
|
+
this.Rules = new Array();
|
|
23295
|
+
for (let z in params.Rules) {
|
|
23296
|
+
let obj = new PrometheusAlertGroupRuleSet();
|
|
23297
|
+
obj.deserialize(params.Rules[z]);
|
|
23298
|
+
this.Rules.push(obj);
|
|
23299
|
+
}
|
|
23300
|
+
}
|
|
23301
|
+
this.CreatedAt = 'CreatedAt' in params ? params.CreatedAt : null;
|
|
23302
|
+
this.UpdatedAt = 'UpdatedAt' in params ? params.UpdatedAt : null;
|
|
23303
|
+
|
|
23304
|
+
}
|
|
23305
|
+
}
|
|
23306
|
+
|
|
22504
23307
|
/**
|
|
22505
23308
|
* SetDefaultAlarmPolicy request structure.
|
|
22506
23309
|
* @class
|
|
@@ -22882,11 +23685,12 @@ module.exports = {
|
|
|
22882
23685
|
DescribeProductEventListResponse: DescribeProductEventListResponse,
|
|
22883
23686
|
DescribeAlarmNoticeCallbacksResponse: DescribeAlarmNoticeCallbacksResponse,
|
|
22884
23687
|
DescribePrometheusInstanceUsageRequest: DescribePrometheusInstanceUsageRequest,
|
|
22885
|
-
|
|
23688
|
+
DeleteSSOAccountRequest: DeleteSSOAccountRequest,
|
|
22886
23689
|
CreatePrometheusRecordRuleYamlRequest: CreatePrometheusRecordRuleYamlRequest,
|
|
22887
23690
|
Instance: Instance,
|
|
22888
23691
|
DescribeAlarmNoticesResponse: DescribeAlarmNoticesResponse,
|
|
22889
23692
|
PrometheusClusterAgentPodConfig: PrometheusClusterAgentPodConfig,
|
|
23693
|
+
DeletePrometheusAlertGroupsRequest: DeletePrometheusAlertGroupsRequest,
|
|
22890
23694
|
GrafanaInstanceInfo: GrafanaInstanceInfo,
|
|
22891
23695
|
DeletePrometheusConfigResponse: DeletePrometheusConfigResponse,
|
|
22892
23696
|
CreatePrometheusRecordRuleYamlResponse: CreatePrometheusRecordRuleYamlResponse,
|
|
@@ -22901,6 +23705,7 @@ module.exports = {
|
|
|
22901
23705
|
DescribePolicyGroupInfoConditionTpl: DescribePolicyGroupInfoConditionTpl,
|
|
22902
23706
|
UnBindingPolicyObjectResponse: UnBindingPolicyObjectResponse,
|
|
22903
23707
|
DescribePrometheusRecordRulesRequest: DescribePrometheusRecordRulesRequest,
|
|
23708
|
+
ModifyAlarmPolicyStatusResponse: ModifyAlarmPolicyStatusResponse,
|
|
22904
23709
|
DescribeExporterIntegrationsResponse: DescribeExporterIntegrationsResponse,
|
|
22905
23710
|
UpdateAlertRuleResponse: UpdateAlertRuleResponse,
|
|
22906
23711
|
InstanceGroup: InstanceGroup,
|
|
@@ -22908,11 +23713,11 @@ module.exports = {
|
|
|
22908
23713
|
DescribePrometheusScrapeJobsResponse: DescribePrometheusScrapeJobsResponse,
|
|
22909
23714
|
EnableGrafanaInternetRequest: EnableGrafanaInternetRequest,
|
|
22910
23715
|
GrafanaAccountRole: GrafanaAccountRole,
|
|
22911
|
-
|
|
23716
|
+
DeleteRecordingRulesResponse: DeleteRecordingRulesResponse,
|
|
22912
23717
|
PolicyGroupReceiverInfo: PolicyGroupReceiverInfo,
|
|
22913
23718
|
Metric: Metric,
|
|
22914
23719
|
MidQueryCondition: MidQueryCondition,
|
|
22915
|
-
|
|
23720
|
+
DescribeGrafanaInstancesRequest: DescribeGrafanaInstancesRequest,
|
|
22916
23721
|
DescribePrometheusAgentInstancesResponse: DescribePrometheusAgentInstancesResponse,
|
|
22917
23722
|
URLNotice: URLNotice,
|
|
22918
23723
|
DeletePrometheusTempResponse: DeletePrometheusTempResponse,
|
|
@@ -22920,8 +23725,7 @@ module.exports = {
|
|
|
22920
23725
|
DescribePolicyGroupInfoReceiverInfo: DescribePolicyGroupInfoReceiverInfo,
|
|
22921
23726
|
RecordingRuleSet: RecordingRuleSet,
|
|
22922
23727
|
DescribeBasicAlarmListRequest: DescribeBasicAlarmListRequest,
|
|
22923
|
-
|
|
22924
|
-
DescribeGrafanaInstancesRequest: DescribeGrafanaInstancesRequest,
|
|
23728
|
+
DescribePrometheusAlertGroupsResponse: DescribePrometheusAlertGroupsResponse,
|
|
22925
23729
|
DescribePrometheusTempSyncRequest: DescribePrometheusTempSyncRequest,
|
|
22926
23730
|
DescribePrometheusGlobalConfigResponse: DescribePrometheusGlobalConfigResponse,
|
|
22927
23731
|
CreateRecordingRuleResponse: CreateRecordingRuleResponse,
|
|
@@ -22954,11 +23758,13 @@ module.exports = {
|
|
|
22954
23758
|
BindingPolicyObjectRequest: BindingPolicyObjectRequest,
|
|
22955
23759
|
CreateServiceDiscoveryResponse: CreateServiceDiscoveryResponse,
|
|
22956
23760
|
DescribeClusterAgentCreatingProgressRequest: DescribeClusterAgentCreatingProgressRequest,
|
|
23761
|
+
UpdatePrometheusAlertGroupRequest: UpdatePrometheusAlertGroupRequest,
|
|
22957
23762
|
EnableSSOCamCheckResponse: EnableSSOCamCheckResponse,
|
|
22958
23763
|
DescribeAccidentEventListRequest: DescribeAccidentEventListRequest,
|
|
22959
23764
|
CreatePrometheusScrapeJobResponse: CreatePrometheusScrapeJobResponse,
|
|
22960
23765
|
CreateAlarmPolicyRequest: CreateAlarmPolicyRequest,
|
|
22961
23766
|
PrometheusZoneItem: PrometheusZoneItem,
|
|
23767
|
+
PrometheusAlertCustomReceiver: PrometheusAlertCustomReceiver,
|
|
22962
23768
|
ModifyPrometheusAlertPolicyRequest: ModifyPrometheusAlertPolicyRequest,
|
|
22963
23769
|
ModifyPrometheusInstanceAttributesResponse: ModifyPrometheusInstanceAttributesResponse,
|
|
22964
23770
|
PrometheusTemplateSyncTarget: PrometheusTemplateSyncTarget,
|
|
@@ -22972,6 +23778,7 @@ module.exports = {
|
|
|
22972
23778
|
DescribePolicyConditionListConfigManualPeriod: DescribePolicyConditionListConfigManualPeriod,
|
|
22973
23779
|
DescribePrometheusRecordRulesResponse: DescribePrometheusRecordRulesResponse,
|
|
22974
23780
|
DescribePrometheusGlobalNotificationResponse: DescribePrometheusGlobalNotificationResponse,
|
|
23781
|
+
PrometheusAlertGroupRuleSet: PrometheusAlertGroupRuleSet,
|
|
22975
23782
|
DescribeMonitorTypesRequest: DescribeMonitorTypesRequest,
|
|
22976
23783
|
DimensionsDesc: DimensionsDesc,
|
|
22977
23784
|
DeletePrometheusAlertPolicyRequest: DeletePrometheusAlertPolicyRequest,
|
|
@@ -22993,8 +23800,10 @@ module.exports = {
|
|
|
22993
23800
|
UpdatePrometheusScrapeJobRequest: UpdatePrometheusScrapeJobRequest,
|
|
22994
23801
|
PrometheusAgentInfo: PrometheusAgentInfo,
|
|
22995
23802
|
CreatePrometheusClusterAgentResponse: CreatePrometheusClusterAgentResponse,
|
|
23803
|
+
PrometheusAlertAllowTimeRange: PrometheusAlertAllowTimeRange,
|
|
22996
23804
|
CreateGrafanaIntegrationResponse: CreateGrafanaIntegrationResponse,
|
|
22997
23805
|
BindPrometheusManagedGrafanaRequest: BindPrometheusManagedGrafanaRequest,
|
|
23806
|
+
UpdatePrometheusAlertGroupStateRequest: UpdatePrometheusAlertGroupStateRequest,
|
|
22998
23807
|
PrometheusAlertManagerConfig: PrometheusAlertManagerConfig,
|
|
22999
23808
|
CreateGrafanaInstanceRequest: CreateGrafanaInstanceRequest,
|
|
23000
23809
|
DescribePrometheusInstanceUsageResponse: DescribePrometheusInstanceUsageResponse,
|
|
@@ -23020,6 +23829,7 @@ module.exports = {
|
|
|
23020
23829
|
UpdateDNSConfigRequest: UpdateDNSConfigRequest,
|
|
23021
23830
|
DeletePrometheusClusterAgentResponse: DeletePrometheusClusterAgentResponse,
|
|
23022
23831
|
DescribeDNSConfigResponse: DescribeDNSConfigResponse,
|
|
23832
|
+
DestroyPrometheusInstanceRequest: DestroyPrometheusInstanceRequest,
|
|
23023
23833
|
DeleteRecordingRulesRequest: DeleteRecordingRulesRequest,
|
|
23024
23834
|
MonitorTypeNamespace: MonitorTypeNamespace,
|
|
23025
23835
|
UninstallGrafanaPluginsRequest: UninstallGrafanaPluginsRequest,
|
|
@@ -23074,6 +23884,7 @@ module.exports = {
|
|
|
23074
23884
|
DescribeSSOAccountResponse: DescribeSSOAccountResponse,
|
|
23075
23885
|
CreateAlarmPolicyResponse: CreateAlarmPolicyResponse,
|
|
23076
23886
|
DeleteGrafanaNotificationChannelRequest: DeleteGrafanaNotificationChannelRequest,
|
|
23887
|
+
CreatePrometheusAlertGroupRequest: CreatePrometheusAlertGroupRequest,
|
|
23077
23888
|
AlarmNotice: AlarmNotice,
|
|
23078
23889
|
DescribeProductEventListEventsDimensions: DescribeProductEventListEventsDimensions,
|
|
23079
23890
|
CreatePrometheusClusterAgentRequest: CreatePrometheusClusterAgentRequest,
|
|
@@ -23119,6 +23930,7 @@ module.exports = {
|
|
|
23119
23930
|
UnbindPrometheusManagedGrafanaRequest: UnbindPrometheusManagedGrafanaRequest,
|
|
23120
23931
|
DescribePolicyGroupListGroupInstanceGroup: DescribePolicyGroupListGroupInstanceGroup,
|
|
23121
23932
|
DescribeConditionsTemplateListResponse: DescribeConditionsTemplateListResponse,
|
|
23933
|
+
DeletePrometheusAlertGroupsResponse: DeletePrometheusAlertGroupsResponse,
|
|
23122
23934
|
CreatePrometheusTempRequest: CreatePrometheusTempRequest,
|
|
23123
23935
|
ModifyAlarmPolicyInfoResponse: ModifyAlarmPolicyInfoResponse,
|
|
23124
23936
|
MetricConfig: MetricConfig,
|
|
@@ -23158,7 +23970,6 @@ module.exports = {
|
|
|
23158
23970
|
CreatePrometheusGlobalNotificationRequest: CreatePrometheusGlobalNotificationRequest,
|
|
23159
23971
|
ModifyPrometheusTempResponse: ModifyPrometheusTempResponse,
|
|
23160
23972
|
DescribeRecordingRulesResponse: DescribeRecordingRulesResponse,
|
|
23161
|
-
DeleteRecordingRulesResponse: DeleteRecordingRulesResponse,
|
|
23162
23973
|
UpdateGrafanaWhiteListRequest: UpdateGrafanaWhiteListRequest,
|
|
23163
23974
|
UpdatePrometheusAgentStatusRequest: UpdatePrometheusAgentStatusRequest,
|
|
23164
23975
|
DescribeGrafanaInstancesResponse: DescribeGrafanaInstancesResponse,
|
|
@@ -23178,6 +23989,7 @@ module.exports = {
|
|
|
23178
23989
|
MonitorTypeInfo: MonitorTypeInfo,
|
|
23179
23990
|
DimensionNew: DimensionNew,
|
|
23180
23991
|
DeleteAlertRulesResponse: DeleteAlertRulesResponse,
|
|
23992
|
+
DeletePrometheusScrapeJobsRequest: DeletePrometheusScrapeJobsRequest,
|
|
23181
23993
|
ModifyAlarmPolicyStatusRequest: ModifyAlarmPolicyStatusRequest,
|
|
23182
23994
|
ConditionsTemp: ConditionsTemp,
|
|
23183
23995
|
Operator: Operator,
|
|
@@ -23199,15 +24011,18 @@ module.exports = {
|
|
|
23199
24011
|
DescribePrometheusGlobalConfigRequest: DescribePrometheusGlobalConfigRequest,
|
|
23200
24012
|
PrometheusInstanceTenantUsage: PrometheusInstanceTenantUsage,
|
|
23201
24013
|
DescribePrometheusZonesRequest: DescribePrometheusZonesRequest,
|
|
24014
|
+
DescribePrometheusAlertGroupsRequest: DescribePrometheusAlertGroupsRequest,
|
|
23202
24015
|
ModifyPolicyGroupCondition: ModifyPolicyGroupCondition,
|
|
23203
24016
|
ModifyPolicyGroupRequest: ModifyPolicyGroupRequest,
|
|
23204
24017
|
DescribeBaseMetricsRequest: DescribeBaseMetricsRequest,
|
|
23205
24018
|
DeletePrometheusConfigRequest: DeletePrometheusConfigRequest,
|
|
23206
24019
|
PrometheusAlertPolicyItem: PrometheusAlertPolicyItem,
|
|
23207
24020
|
ModifyPrometheusAgentExternalLabelsRequest: ModifyPrometheusAgentExternalLabelsRequest,
|
|
24021
|
+
PrometheusScrapeJob: PrometheusScrapeJob,
|
|
23208
24022
|
AlarmHierarchicalNotice: AlarmHierarchicalNotice,
|
|
23209
24023
|
BindingPolicyObjectDimension: BindingPolicyObjectDimension,
|
|
23210
24024
|
DescribePrometheusTempRequest: DescribePrometheusTempRequest,
|
|
24025
|
+
UpdatePrometheusAlertGroupStateResponse: UpdatePrometheusAlertGroupStateResponse,
|
|
23211
24026
|
DescribeBasicAlarmListAlarms: DescribeBasicAlarmListAlarms,
|
|
23212
24027
|
CreateAlarmNoticeResponse: CreateAlarmNoticeResponse,
|
|
23213
24028
|
Condition: Condition,
|
|
@@ -23215,11 +24030,11 @@ module.exports = {
|
|
|
23215
24030
|
PrometheusAgentOverview: PrometheusAgentOverview,
|
|
23216
24031
|
Filter: Filter,
|
|
23217
24032
|
DescribeProductEventListEventsGroupInfo: DescribeProductEventListEventsGroupInfo,
|
|
23218
|
-
|
|
24033
|
+
UpdatePrometheusAlertGroupResponse: UpdatePrometheusAlertGroupResponse,
|
|
23219
24034
|
CreateSSOAccountResponse: CreateSSOAccountResponse,
|
|
23220
24035
|
UpdatePrometheusScrapeJobResponse: UpdatePrometheusScrapeJobResponse,
|
|
23221
24036
|
DescribeAlarmPoliciesRequest: DescribeAlarmPoliciesRequest,
|
|
23222
|
-
|
|
24037
|
+
UpdateSSOAccountRequest: UpdateSSOAccountRequest,
|
|
23223
24038
|
DescribePolicyConditionListConfigManualStatType: DescribePolicyConditionListConfigManualStatType,
|
|
23224
24039
|
IntegrationConfiguration: IntegrationConfiguration,
|
|
23225
24040
|
DescribePrometheusAgentsResponse: DescribePrometheusAgentsResponse,
|
|
@@ -23231,10 +24046,12 @@ module.exports = {
|
|
|
23231
24046
|
DescribeAlarmPolicyRequest: DescribeAlarmPolicyRequest,
|
|
23232
24047
|
UninstallGrafanaDashboardRequest: UninstallGrafanaDashboardRequest,
|
|
23233
24048
|
UpdateGrafanaIntegrationRequest: UpdateGrafanaIntegrationRequest,
|
|
24049
|
+
CreatePrometheusAlertGroupResponse: CreatePrometheusAlertGroupResponse,
|
|
23234
24050
|
DeletePrometheusRecordRuleYamlRequest: DeletePrometheusRecordRuleYamlRequest,
|
|
23235
24051
|
DescribeAlarmNoticeCallbacksRequest: DescribeAlarmNoticeCallbacksRequest,
|
|
23236
24052
|
DescribeStatisticDataRequest: DescribeStatisticDataRequest,
|
|
23237
24053
|
GrafanaNotificationChannel: GrafanaNotificationChannel,
|
|
24054
|
+
PrometheusAlertGroupSet: PrometheusAlertGroupSet,
|
|
23238
24055
|
SetDefaultAlarmPolicyRequest: SetDefaultAlarmPolicyRequest,
|
|
23239
24056
|
CLSNotice: CLSNotice,
|
|
23240
24057
|
LogAlarmReq: LogAlarmReq,
|