tencentcloud-sdk-nodejs 4.0.779 → 4.0.780

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/CHANGELOG.md +56 -0
  2. package/package.json +1 -1
  3. package/products.md +14 -14
  4. package/src/common/sdk_version.ts +1 -1
  5. package/src/services/antiddos/v20200309/antiddos_models.ts +16 -6
  6. package/src/services/dts/v20211206/dts_models.ts +6 -1
  7. package/src/services/faceid/v20180301/faceid_models.ts +8 -0
  8. package/src/services/monitor/v20180724/monitor_client.ts +88 -21
  9. package/src/services/monitor/v20180724/monitor_models.ts +487 -137
  10. package/src/services/ocr/v20181119/ocr_models.ts +8 -0
  11. package/src/services/rum/v20210622/rum_client.ts +36 -72
  12. package/src/services/rum/v20210622/rum_models.ts +36 -120
  13. package/src/services/tcb/v20180608/tcb_models.ts +9 -0
  14. package/src/services/tdid/v20210519/tdid_client.ts +135 -24
  15. package/src/services/tdid/v20210519/tdid_models.ts +520 -113
  16. package/src/services/tdmq/v20200217/tdmq_client.ts +12 -0
  17. package/src/services/tdmq/v20200217/tdmq_models.ts +95 -0
  18. package/src/services/teo/v20220901/teo_models.ts +2 -2
  19. package/src/services/tse/v20201207/tse_models.ts +1 -1
  20. package/src/services/tsf/v20180326/tsf_models.ts +1 -1
  21. package/tencentcloud/common/sdk_version.d.ts +1 -1
  22. package/tencentcloud/common/sdk_version.js +1 -1
  23. package/tencentcloud/services/antiddos/v20200309/antiddos_models.d.ts +16 -6
  24. package/tencentcloud/services/dts/v20211206/dts_models.d.ts +6 -1
  25. package/tencentcloud/services/faceid/v20180301/faceid_models.d.ts +8 -0
  26. package/tencentcloud/services/monitor/v20180724/monitor_client.d.ts +28 -5
  27. package/tencentcloud/services/monitor/v20180724/monitor_client.js +39 -6
  28. package/tencentcloud/services/monitor/v20180724/monitor_models.d.ts +471 -135
  29. package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +8 -0
  30. package/tencentcloud/services/rum/v20210622/rum_client.d.ts +13 -25
  31. package/tencentcloud/services/rum/v20210622/rum_client.js +18 -36
  32. package/tencentcloud/services/rum/v20210622/rum_models.d.ts +36 -114
  33. package/tencentcloud/services/tcb/v20180608/tcb_models.d.ts +9 -0
  34. package/tencentcloud/services/tdid/v20210519/tdid_client.d.ts +41 -5
  35. package/tencentcloud/services/tdid/v20210519/tdid_client.js +60 -6
  36. package/tencentcloud/services/tdid/v20210519/tdid_models.d.ts +498 -112
  37. package/tencentcloud/services/tdmq/v20200217/tdmq_client.d.ts +5 -1
  38. package/tencentcloud/services/tdmq/v20200217/tdmq_client.js +6 -0
  39. package/tencentcloud/services/tdmq/v20200217/tdmq_models.d.ts +93 -0
  40. package/tencentcloud/services/teo/v20220901/teo_models.d.ts +2 -2
  41. package/tencentcloud/services/tse/v20201207/tse_models.d.ts +1 -1
  42. package/tencentcloud/services/tsf/v20180326/tsf_models.d.ts +1 -1
  43. package/test/monitor.v20180724.test.js +54 -4
  44. package/test/rum.v20210622.test.js +14 -44
  45. package/test/tdid.v20210519.test.js +100 -10
  46. package/test/tdmq.v20200217.test.js +10 -0
@@ -1418,21 +1418,17 @@ export interface DescribePrometheusInstanceUsageRequest {
1418
1418
  EndCalcDate: string;
1419
1419
  }
1420
1420
  /**
1421
- * DeletePrometheusScrapeJobs请求参数结构体
1421
+ * DeleteSSOAccount请求参数结构体
1422
1422
  */
1423
- export interface DeletePrometheusScrapeJobsRequest {
1423
+ export interface DeleteSSOAccountRequest {
1424
1424
  /**
1425
- * 实例 ID
1425
+ * Grafana 实例 ID,例如:grafana-abcdefgh
1426
1426
  */
1427
1427
  InstanceId: string;
1428
1428
  /**
1429
- * Agent ID(可通过 DescribePrometheusAgents 接口获取)
1430
- */
1431
- AgentId: string;
1432
- /**
1433
- * 任务 ID 列表(可通过 DescribePrometheusScrapeJobs 接口获取)
1429
+ * 用户账号 ID ,例如:10000000
1434
1430
  */
1435
- JobIds: Array<string>;
1431
+ UserId: string;
1436
1432
  }
1437
1433
  /**
1438
1434
  * CreatePrometheusRecordRuleYaml请求参数结构体
@@ -1494,6 +1490,19 @@ export interface PrometheusClusterAgentPodConfig {
1494
1490
  */
1495
1491
  Tolerations?: Array<Toleration>;
1496
1492
  }
1493
+ /**
1494
+ * DeletePrometheusAlertGroups请求参数结构体
1495
+ */
1496
+ export interface DeletePrometheusAlertGroupsRequest {
1497
+ /**
1498
+ * prometheus实例id
1499
+ */
1500
+ InstanceId?: string;
1501
+ /**
1502
+ * 需要删除的告警分组ID,形如alert-xxxxx
1503
+ */
1504
+ GroupIds?: Array<string>;
1505
+ }
1497
1506
  /**
1498
1507
  * 查询 Grafana 实例时的实例类型
1499
1508
  */
@@ -1797,6 +1806,15 @@ export interface DescribePrometheusRecordRulesRequest {
1797
1806
  */
1798
1807
  Filters?: Array<Filter>;
1799
1808
  }
1809
+ /**
1810
+ * ModifyAlarmPolicyStatus返回参数结构体
1811
+ */
1812
+ export interface ModifyAlarmPolicyStatusResponse {
1813
+ /**
1814
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1815
+ */
1816
+ RequestId?: string;
1817
+ }
1800
1818
  /**
1801
1819
  * DescribeExporterIntegrations返回参数结构体
1802
1820
  */
@@ -1909,13 +1927,13 @@ export interface GrafanaAccountRole {
1909
1927
  Role?: string;
1910
1928
  }
1911
1929
  /**
1912
- * DestroyPrometheusInstance请求参数结构体
1930
+ * DeleteRecordingRules返回参数结构体
1913
1931
  */
1914
- export interface DestroyPrometheusInstanceRequest {
1932
+ export interface DeleteRecordingRulesResponse {
1915
1933
  /**
1916
- * 实例 ID,该实例必须先被 terminate
1934
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1917
1935
  */
1918
- InstanceId: string;
1936
+ RequestId?: string;
1919
1937
  }
1920
1938
  /**
1921
1939
  * 2018版策略模板列表接收人信息
@@ -2061,17 +2079,33 @@ export interface MidQueryCondition {
2061
2079
  Value: Array<string>;
2062
2080
  }
2063
2081
  /**
2064
- * DeleteSSOAccount请求参数结构体
2082
+ * DescribeGrafanaInstances请求参数结构体
2065
2083
  */
2066
- export interface DeleteSSOAccountRequest {
2084
+ export interface DescribeGrafanaInstancesRequest {
2067
2085
  /**
2068
- * Grafana 实例 ID,例如:grafana-abcdefgh
2086
+ * 查询偏移量
2069
2087
  */
2070
- InstanceId: string;
2088
+ Offset: number;
2071
2089
  /**
2072
- * 用户账号 ID ,例如:10000000
2090
+ * 查询数量
2073
2091
  */
2074
- UserId: string;
2092
+ Limit: number;
2093
+ /**
2094
+ * Grafana 实例 ID 数组
2095
+ */
2096
+ InstanceIds?: Array<string>;
2097
+ /**
2098
+ * Grafana 实例名,支持前缀模糊搜索
2099
+ */
2100
+ InstanceName?: string;
2101
+ /**
2102
+ * 查询状态
2103
+ */
2104
+ InstanceStatus?: Array<number | bigint>;
2105
+ /**
2106
+ * 标签过滤数组
2107
+ */
2108
+ TagFilters?: Array<PrometheusTag>;
2075
2109
  }
2076
2110
  /**
2077
2111
  * DescribePrometheusAgentInstances返回参数结构体
@@ -2342,42 +2376,23 @@ export interface DescribeBasicAlarmListRequest {
2342
2376
  MetricNames?: Array<string>;
2343
2377
  }
2344
2378
  /**
2345
- * ModifyAlarmPolicyStatus返回参数结构体
2346
- */
2347
- export interface ModifyAlarmPolicyStatusResponse {
2348
- /**
2349
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2350
- */
2351
- RequestId?: string;
2352
- }
2353
- /**
2354
- * DescribeGrafanaInstances请求参数结构体
2379
+ * DescribePrometheusAlertGroups返回参数结构体
2355
2380
  */
2356
- export interface DescribeGrafanaInstancesRequest {
2381
+ export interface DescribePrometheusAlertGroupsResponse {
2357
2382
  /**
2358
- * 查询偏移量
2359
- */
2360
- Offset: number;
2361
- /**
2362
- * 查询数量
2363
- */
2364
- Limit: number;
2365
- /**
2366
- * Grafana 实例 ID 数组
2367
- */
2368
- InstanceIds?: Array<string>;
2369
- /**
2370
- * Grafana 实例名,支持前缀模糊搜索
2383
+ * 告警分组信息
2384
+ 注意:此字段可能返回 null,表示取不到有效值。
2371
2385
  */
2372
- InstanceName?: string;
2386
+ AlertGroupSet?: Array<PrometheusAlertGroupSet>;
2373
2387
  /**
2374
- * 查询状态
2388
+ * 告警分组总数
2389
+ 注意:此字段可能返回 null,表示取不到有效值。
2375
2390
  */
2376
- InstanceStatus?: Array<number | bigint>;
2391
+ TotalCount?: number;
2377
2392
  /**
2378
- * 标签过滤数组
2393
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2379
2394
  */
2380
- TagFilters?: Array<PrometheusTag>;
2395
+ RequestId?: string;
2381
2396
  }
2382
2397
  /**
2383
2398
  * DescribePrometheusTempSync请求参数结构体
@@ -2665,69 +2680,17 @@ export interface DescribeGrafanaChannelsRequest {
2665
2680
  ChannelState?: number;
2666
2681
  }
2667
2682
  /**
2668
- * DescribePolicyGroupList请求参数结构体
2683
+ * 通知模板与策略绑定关系
2669
2684
  */
2670
- export interface DescribePolicyGroupListRequest {
2671
- /**
2672
- * 固定值,为"monitor"
2673
- */
2674
- Module: string;
2675
- /**
2676
- * 分页参数,每页返回的数量,取值1~100
2677
- */
2678
- Limit: number;
2679
- /**
2680
- * 分页参数,页偏移量,从0开始计数
2681
- */
2682
- Offset: number;
2683
- /**
2684
- * 按策略名搜索
2685
- */
2686
- Like?: string;
2687
- /**
2688
- * 实例分组id
2689
- */
2690
- InstanceGroupId?: number;
2691
- /**
2692
- * 按更新时间排序, asc 或者 desc
2693
- */
2694
- UpdateTimeOrder?: string;
2695
- /**
2696
- * 项目id列表
2697
- */
2698
- ProjectIds?: Array<number | bigint>;
2699
- /**
2700
- * 告警策略类型列表
2701
- */
2702
- ViewNames?: Array<string>;
2703
- /**
2704
- * 是否过滤无接收人策略组, 1表示过滤, 0表示不过滤
2705
- */
2706
- FilterUnuseReceiver?: number;
2707
- /**
2708
- * 过滤条件, 接收组列表
2709
- */
2710
- Receivers?: Array<string>;
2711
- /**
2712
- * 过滤条件, 接收人列表
2713
- */
2714
- ReceiverUserList?: Array<string>;
2715
- /**
2716
- * 维度组合字段(json字符串), 例如[[{"name":"unInstanceId","value":"ins-6e4b2aaa"}]]
2717
- */
2718
- Dimensions?: string;
2719
- /**
2720
- * 模板策略组id, 多个id用逗号分隔
2721
- */
2722
- ConditionTempGroupId?: string;
2685
+ export interface NoticeBindPolicys {
2723
2686
  /**
2724
- * 过滤条件, 接收人或者接收组, user表示接收人, group表示接收组
2687
+ * 告警通知模板 ID
2725
2688
  */
2726
- ReceiverType?: string;
2689
+ NoticeId?: string;
2727
2690
  /**
2728
- * 过滤条件,告警策略是否已启动或停止
2691
+ * 告警通知模板绑定的告警策略ID列表
2729
2692
  */
2730
- IsOpen?: boolean;
2693
+ PolicyIds?: Array<string>;
2731
2694
  }
2732
2695
  /**
2733
2696
  * DescribeGrafanaConfig请求参数结构体
@@ -3067,6 +3030,46 @@ export interface CreateServiceDiscoveryResponse {
3067
3030
  * DescribeClusterAgentCreatingProgress请求参数结构体
3068
3031
  */
3069
3032
  export declare type DescribeClusterAgentCreatingProgressRequest = null;
3033
+ /**
3034
+ * UpdatePrometheusAlertGroup请求参数结构体
3035
+ */
3036
+ export interface UpdatePrometheusAlertGroupRequest {
3037
+ /**
3038
+ * prometheus实例ID
3039
+ */
3040
+ InstanceId?: string;
3041
+ /**
3042
+ * 告警分组ID,形如alert-xxxx
3043
+ */
3044
+ GroupId?: string;
3045
+ /**
3046
+ * 告警分组名称,不能与其他告警分组重名
3047
+ */
3048
+ GroupName?: string;
3049
+ /**
3050
+ * 告警分组状态:
3051
+ 2 -- 启用
3052
+ 3 -- 禁用
3053
+ 不为空时会覆盖 `Rules`字段下所有告警规则状态
3054
+ */
3055
+ GroupState?: number;
3056
+ /**
3057
+ * 云监控告警通知模板ID列表,形如Consumer-xxxx或notice-xxxx
3058
+ */
3059
+ AMPReceivers?: Array<string>;
3060
+ /**
3061
+ * 自定义告警通知模板
3062
+ */
3063
+ CustomReceiver?: PrometheusAlertCustomReceiver;
3064
+ /**
3065
+ * 告警通知周期(收敛时间),为空默认1h
3066
+ */
3067
+ RepeatInterval?: string;
3068
+ /**
3069
+ * 要创建的告警规则列表
3070
+ */
3071
+ Rules?: Array<PrometheusAlertGroupRuleSet>;
3072
+ }
3070
3073
  /**
3071
3074
  * EnableSSOCamCheck返回参数结构体
3072
3075
  */
@@ -3253,6 +3256,38 @@ export interface PrometheusZoneItem {
3253
3256
  */
3254
3257
  ZoneResourceState?: number;
3255
3258
  }
3259
+ /**
3260
+ * Prometheus告警自定义通知模板
3261
+ */
3262
+ export interface PrometheusAlertCustomReceiver {
3263
+ /**
3264
+ * 自定义通知类型
3265
+ alertmanager -- vpc内自建alertmanager
3266
+ webhook -- vpc内webhook地址
3267
+ 注意:此字段可能返回 null,表示取不到有效值。
3268
+ */
3269
+ Type?: string;
3270
+ /**
3271
+ * alertmanager/webhook地址。(prometheus实例同vpc内ip)
3272
+ 注意:此字段可能返回 null,表示取不到有效值。
3273
+ */
3274
+ Url?: string;
3275
+ /**
3276
+ * 允许发送告警的时间范围
3277
+ 注意:此字段可能返回 null,表示取不到有效值。
3278
+ */
3279
+ AllowedTimeRanges?: Array<PrometheusAlertAllowTimeRange>;
3280
+ /**
3281
+ * alertmanager所在的内网集群ID
3282
+ 注意:此字段可能返回 null,表示取不到有效值。
3283
+ */
3284
+ ClusterId?: string;
3285
+ /**
3286
+ * alertmanager所在的内网集群类型(tke/eks/tdcc)
3287
+ 注意:此字段可能返回 null,表示取不到有效值。
3288
+ */
3289
+ ClusterType?: string;
3290
+ }
3256
3291
  /**
3257
3292
  * ModifyPrometheusAlertPolicy请求参数结构体
3258
3293
  */
@@ -3493,6 +3528,46 @@ export interface DescribePrometheusGlobalNotificationResponse {
3493
3528
  */
3494
3529
  RequestId?: string;
3495
3530
  }
3531
+ /**
3532
+ * 告警分组内告警规则信息
3533
+ */
3534
+ export interface PrometheusAlertGroupRuleSet {
3535
+ /**
3536
+ * 告警规则名称,同一告警分组下不允许重名
3537
+ 注意:此字段可能返回 null,表示取不到有效值。
3538
+ */
3539
+ RuleName?: string;
3540
+ /**
3541
+ * 标签列表
3542
+ 注意:此字段可能返回 null,表示取不到有效值。
3543
+ */
3544
+ Labels?: Array<PrometheusRuleKV>;
3545
+ /**
3546
+ * 注释列表
3547
+
3548
+ 告警对象和告警消息是 Prometheus Rule Annotations 的特殊字段,需要通过 annotations 来传递,对应的 Key 分别为summary/description。
3549
+ 注意:此字段可能返回 null,表示取不到有效值。
3550
+ */
3551
+ Annotations?: Array<PrometheusRuleKV>;
3552
+ /**
3553
+ * 规则报警持续时间
3554
+ 注意:此字段可能返回 null,表示取不到有效值。
3555
+ */
3556
+ Duration?: string;
3557
+ /**
3558
+ * 规则表达式,可参考<a href="https://cloud.tencent.com/document/product/1416/56008">告警规则说明</a>
3559
+ 注意:此字段可能返回 null,表示取不到有效值。
3560
+ */
3561
+ Expr?: string;
3562
+ /**
3563
+ * 告警规则状态:
3564
+ 2-启用
3565
+ 3-禁用
3566
+ 为空默认启用
3567
+ 注意:此字段可能返回 null,表示取不到有效值。
3568
+ */
3569
+ State?: number;
3570
+ }
3496
3571
  /**
3497
3572
  * DescribeMonitorTypes请求参数结构体
3498
3573
  */
@@ -3964,6 +4039,21 @@ export interface CreatePrometheusClusterAgentResponse {
3964
4039
  */
3965
4040
  RequestId?: string;
3966
4041
  }
4042
+ /**
4043
+ * Prometheus自定义告警通知时间段
4044
+ */
4045
+ export interface PrometheusAlertAllowTimeRange {
4046
+ /**
4047
+ * 从0点开始的秒数
4048
+ 注意:此字段可能返回 null,表示取不到有效值。
4049
+ */
4050
+ Start?: string;
4051
+ /**
4052
+ * 从0点开始的秒数
4053
+ 注意:此字段可能返回 null,表示取不到有效值。
4054
+ */
4055
+ End?: string;
4056
+ }
3967
4057
  /**
3968
4058
  * CreateGrafanaIntegration返回参数结构体
3969
4059
  */
@@ -3991,6 +4081,25 @@ export interface BindPrometheusManagedGrafanaRequest {
3991
4081
  */
3992
4082
  GrafanaId: string;
3993
4083
  }
4084
+ /**
4085
+ * UpdatePrometheusAlertGroupState请求参数结构体
4086
+ */
4087
+ export interface UpdatePrometheusAlertGroupStateRequest {
4088
+ /**
4089
+ * Prometheus 实例 ID
4090
+ */
4091
+ InstanceId?: string;
4092
+ /**
4093
+ * 告警分组ID列表,形如alert-xxxx
4094
+ */
4095
+ GroupIds?: Array<string>;
4096
+ /**
4097
+ * 告警分组状态
4098
+ 2 -- 启用
4099
+ 3 -- 禁用
4100
+ */
4101
+ GroupState?: number;
4102
+ }
3994
4103
  /**
3995
4104
  * 告警渠道使用自建alertmanager的配置
3996
4105
  */
@@ -4390,6 +4499,15 @@ export interface DescribeDNSConfigResponse {
4390
4499
  */
4391
4500
  RequestId?: string;
4392
4501
  }
4502
+ /**
4503
+ * DestroyPrometheusInstance请求参数结构体
4504
+ */
4505
+ export interface DestroyPrometheusInstanceRequest {
4506
+ /**
4507
+ * 实例 ID,该实例必须先被 terminate
4508
+ */
4509
+ InstanceId: string;
4510
+ }
4393
4511
  /**
4394
4512
  * DeleteRecordingRules请求参数结构体
4395
4513
  */
@@ -5742,6 +5860,43 @@ export interface DeleteGrafanaNotificationChannelRequest {
5742
5860
  */
5743
5861
  InstanceId: string;
5744
5862
  }
5863
+ /**
5864
+ * CreatePrometheusAlertGroup请求参数结构体
5865
+ */
5866
+ export interface CreatePrometheusAlertGroupRequest {
5867
+ /**
5868
+ * prometheus实例ID
5869
+ */
5870
+ InstanceId?: string;
5871
+ /**
5872
+ * 告警分组名称,不能与其他告警分组重名
5873
+ */
5874
+ GroupName?: string;
5875
+ /**
5876
+ * 告警分组状态:
5877
+ 2 -- 启用
5878
+ 3 -- 禁用
5879
+ 不为空时会覆盖 `Rules`字段下所有告警规则状态
5880
+
5881
+ */
5882
+ GroupState?: number;
5883
+ /**
5884
+ * 云监控告警通知模板ID列表,形如Consumer-xxxx或notice-xxxx
5885
+ */
5886
+ AMPReceivers?: Array<string>;
5887
+ /**
5888
+ * 自定义告警通知模板
5889
+ */
5890
+ CustomReceiver?: PrometheusAlertCustomReceiver;
5891
+ /**
5892
+ * 告警通知周期(收敛时间),为空默认1h
5893
+ */
5894
+ RepeatInterval?: string;
5895
+ /**
5896
+ * 要创建的告警规则列表
5897
+ */
5898
+ Rules?: Array<PrometheusAlertGroupRuleSet>;
5899
+ }
5745
5900
  /**
5746
5901
  * 告警通知模板详情
5747
5902
  */
@@ -6964,6 +7119,15 @@ export interface DescribeConditionsTemplateListResponse {
6964
7119
  */
6965
7120
  RequestId?: string;
6966
7121
  }
7122
+ /**
7123
+ * DeletePrometheusAlertGroups返回参数结构体
7124
+ */
7125
+ export interface DeletePrometheusAlertGroupsResponse {
7126
+ /**
7127
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
7128
+ */
7129
+ RequestId?: string;
7130
+ }
6967
7131
  /**
6968
7132
  * CreatePrometheusTemp请求参数结构体
6969
7133
  */
@@ -7448,17 +7612,69 @@ export interface DescribePolicyConditionListEventMetric {
7448
7612
  Type: number;
7449
7613
  }
7450
7614
  /**
7451
- * 通知模板与策略绑定关系
7615
+ * DescribePolicyGroupList请求参数结构体
7452
7616
  */
7453
- export interface NoticeBindPolicys {
7617
+ export interface DescribePolicyGroupListRequest {
7454
7618
  /**
7455
- * 告警通知模板 ID
7619
+ * 固定值,为"monitor"
7456
7620
  */
7457
- NoticeId?: string;
7621
+ Module: string;
7458
7622
  /**
7459
- * 告警通知模板绑定的告警策略ID列表
7623
+ * 分页参数,每页返回的数量,取值1~100
7460
7624
  */
7461
- PolicyIds?: Array<string>;
7625
+ Limit: number;
7626
+ /**
7627
+ * 分页参数,页偏移量,从0开始计数
7628
+ */
7629
+ Offset: number;
7630
+ /**
7631
+ * 按策略名搜索
7632
+ */
7633
+ Like?: string;
7634
+ /**
7635
+ * 实例分组id
7636
+ */
7637
+ InstanceGroupId?: number;
7638
+ /**
7639
+ * 按更新时间排序, asc 或者 desc
7640
+ */
7641
+ UpdateTimeOrder?: string;
7642
+ /**
7643
+ * 项目id列表
7644
+ */
7645
+ ProjectIds?: Array<number | bigint>;
7646
+ /**
7647
+ * 告警策略类型列表
7648
+ */
7649
+ ViewNames?: Array<string>;
7650
+ /**
7651
+ * 是否过滤无接收人策略组, 1表示过滤, 0表示不过滤
7652
+ */
7653
+ FilterUnuseReceiver?: number;
7654
+ /**
7655
+ * 过滤条件, 接收组列表
7656
+ */
7657
+ Receivers?: Array<string>;
7658
+ /**
7659
+ * 过滤条件, 接收人列表
7660
+ */
7661
+ ReceiverUserList?: Array<string>;
7662
+ /**
7663
+ * 维度组合字段(json字符串), 例如[[{"name":"unInstanceId","value":"ins-6e4b2aaa"}]]
7664
+ */
7665
+ Dimensions?: string;
7666
+ /**
7667
+ * 模板策略组id, 多个id用逗号分隔
7668
+ */
7669
+ ConditionTempGroupId?: string;
7670
+ /**
7671
+ * 过滤条件, 接收人或者接收组, user表示接收人, group表示接收组
7672
+ */
7673
+ ReceiverType?: string;
7674
+ /**
7675
+ * 过滤条件,告警策略是否已启动或停止
7676
+ */
7677
+ IsOpen?: boolean;
7462
7678
  }
7463
7679
  /**
7464
7680
  * UnBindingAllPolicyObject返回参数结构体
@@ -8019,15 +8235,6 @@ export interface DescribeRecordingRulesResponse {
8019
8235
  */
8020
8236
  RequestId?: string;
8021
8237
  }
8022
- /**
8023
- * DeleteRecordingRules返回参数结构体
8024
- */
8025
- export interface DeleteRecordingRulesResponse {
8026
- /**
8027
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
8028
- */
8029
- RequestId?: string;
8030
- }
8031
8238
  /**
8032
8239
  * UpdateGrafanaWhiteList请求参数结构体
8033
8240
  */
@@ -8348,6 +8555,23 @@ export interface DeleteAlertRulesResponse {
8348
8555
  */
8349
8556
  RequestId?: string;
8350
8557
  }
8558
+ /**
8559
+ * DeletePrometheusScrapeJobs请求参数结构体
8560
+ */
8561
+ export interface DeletePrometheusScrapeJobsRequest {
8562
+ /**
8563
+ * 实例 ID
8564
+ */
8565
+ InstanceId: string;
8566
+ /**
8567
+ * Agent ID(可通过 DescribePrometheusAgents 接口获取)
8568
+ */
8569
+ AgentId: string;
8570
+ /**
8571
+ * 任务 ID 列表(可通过 DescribePrometheusScrapeJobs 接口获取)
8572
+ */
8573
+ JobIds: Array<string>;
8574
+ }
8351
8575
  /**
8352
8576
  * ModifyAlarmPolicyStatus请求参数结构体
8353
8577
  */
@@ -8784,6 +9008,33 @@ export interface DescribePrometheusZonesRequest {
8784
9008
  */
8785
9009
  RegionName?: string;
8786
9010
  }
9011
+ /**
9012
+ * DescribePrometheusAlertGroups请求参数结构体
9013
+ */
9014
+ export interface DescribePrometheusAlertGroupsRequest {
9015
+ /**
9016
+ * Prometheus 实例 ID
9017
+ */
9018
+ InstanceId?: string;
9019
+ /**
9020
+ * 返回数量,默认为 20,最大值为 100
9021
+ */
9022
+ Limit?: number;
9023
+ /**
9024
+ * 偏移量,默认为 0
9025
+ */
9026
+ Offset?: number;
9027
+ /**
9028
+ * 告警分组ID,形如alert-xxxx。
9029
+ 查询给定ID的告警分组
9030
+ */
9031
+ GroupId?: string;
9032
+ /**
9033
+ * 告警分组名称。
9034
+ 查询名称中包含给定字符串的告警分组
9035
+ */
9036
+ GroupName?: string;
9037
+ }
8787
9038
  /**
8788
9039
  * 修改告警策略组传入的指标阈值条件
8789
9040
  */
@@ -9063,6 +9314,15 @@ export interface UpdateServiceDiscoveryResponse {
9063
9314
  */
9064
9315
  RequestId?: string;
9065
9316
  }
9317
+ /**
9318
+ * UpdatePrometheusAlertGroupState返回参数结构体
9319
+ */
9320
+ export interface UpdatePrometheusAlertGroupStateResponse {
9321
+ /**
9322
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
9323
+ */
9324
+ RequestId?: string;
9325
+ }
9066
9326
  /**
9067
9327
  * DescribeBasicAlarmList返回的Alarms
9068
9328
  */
@@ -9350,25 +9610,17 @@ export interface DescribeProductEventListEventsGroupInfo {
9350
9610
  GroupName: string;
9351
9611
  }
9352
9612
  /**
9353
- * UpdateSSOAccount请求参数结构体
9613
+ * UpdatePrometheusAlertGroup返回参数结构体
9354
9614
  */
9355
- export interface UpdateSSOAccountRequest {
9615
+ export interface UpdatePrometheusAlertGroupResponse {
9356
9616
  /**
9357
- * Grafana 实例 ID,例如:grafana-abcdefgh
9617
+ * 更新的告警分组ID,满足正则表达式`alert-[a-z0-9]{8}`
9358
9618
  */
9359
- InstanceId: string;
9619
+ GroupId?: string;
9360
9620
  /**
9361
- * 用户账号 ID ,例如:10000000
9362
- */
9363
- UserId: string;
9364
- /**
9365
- * 权限
9366
- */
9367
- Role?: Array<GrafanaAccountRole>;
9368
- /**
9369
- * 备注
9621
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
9370
9622
  */
9371
- Notes?: string;
9623
+ RequestId?: string;
9372
9624
  }
9373
9625
  /**
9374
9626
  * CreateSSOAccount返回参数结构体
@@ -9510,6 +9762,27 @@ export interface DescribeAlarmPoliciesRequest {
9510
9762
  */
9511
9763
  ReceiverOnCallFormIDs?: Array<string>;
9512
9764
  }
9765
+ /**
9766
+ * UpdateSSOAccount请求参数结构体
9767
+ */
9768
+ export interface UpdateSSOAccountRequest {
9769
+ /**
9770
+ * Grafana 实例 ID,例如:grafana-abcdefgh
9771
+ */
9772
+ InstanceId: string;
9773
+ /**
9774
+ * 用户账号 ID ,例如:10000000
9775
+ */
9776
+ UserId: string;
9777
+ /**
9778
+ * 权限
9779
+ */
9780
+ Role?: Array<GrafanaAccountRole>;
9781
+ /**
9782
+ * 备注
9783
+ */
9784
+ Notes?: string;
9785
+ }
9513
9786
  /**
9514
9787
  * DescribePolicyConditionList.ConfigManual.StatType
9515
9788
  */
@@ -9751,6 +10024,19 @@ export interface UpdateGrafanaIntegrationRequest {
9751
10024
  */
9752
10025
  Content: string;
9753
10026
  }
10027
+ /**
10028
+ * CreatePrometheusAlertGroup返回参数结构体
10029
+ */
10030
+ export interface CreatePrometheusAlertGroupResponse {
10031
+ /**
10032
+ * 创建的告警分组ID,满足正则表达式`alert-[a-z0-9]{8}`
10033
+ */
10034
+ GroupId?: string;
10035
+ /**
10036
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
10037
+ */
10038
+ RequestId?: string;
10039
+ }
9754
10040
  /**
9755
10041
  * DeletePrometheusRecordRuleYaml请求参数结构体
9756
10042
  */
@@ -9860,6 +10146,56 @@ export interface GrafanaNotificationChannel {
9860
10146
  */
9861
10147
  OrganizationIds: Array<string>;
9862
10148
  }
10149
+ /**
10150
+ * Prometheus告警规则分组信息
10151
+ */
10152
+ export interface PrometheusAlertGroupSet {
10153
+ /**
10154
+ * 告警分组ID,满足正则表达式`alert-[a-z0-9]{8}`
10155
+ 注意:此字段可能返回 null,表示取不到有效值。
10156
+ */
10157
+ GroupId?: string;
10158
+ /**
10159
+ * 告警分组名称
10160
+ 注意:此字段可能返回 null,表示取不到有效值。
10161
+ */
10162
+ GroupName?: string;
10163
+ /**
10164
+ * 云监控告警模板ID ,返回告警模板转换后的notice ID。
10165
+ 注意:此字段可能返回 null,表示取不到有效值。
10166
+ */
10167
+ AMPReceivers?: Array<string>;
10168
+ /**
10169
+ * 自定义告警模板
10170
+ 注意:此字段可能返回 null,表示取不到有效值。
10171
+ */
10172
+ CustomReceiver?: PrometheusAlertCustomReceiver;
10173
+ /**
10174
+ * 告警通知间隔
10175
+ 注意:此字段可能返回 null,表示取不到有效值。
10176
+ */
10177
+ RepeatInterval?: string;
10178
+ /**
10179
+ * 若告警分组通过模板创建,则返回模板ID
10180
+ 注意:此字段可能返回 null,表示取不到有效值。
10181
+ */
10182
+ TemplateId?: string;
10183
+ /**
10184
+ * 分组内告警规则详情
10185
+ 注意:此字段可能返回 null,表示取不到有效值。
10186
+ */
10187
+ Rules?: Array<PrometheusAlertGroupRuleSet>;
10188
+ /**
10189
+ * 分组创建时间
10190
+ 注意:此字段可能返回 null,表示取不到有效值。
10191
+ */
10192
+ CreatedAt?: string;
10193
+ /**
10194
+ * 分组更新时间
10195
+ 注意:此字段可能返回 null,表示取不到有效值。
10196
+ */
10197
+ UpdatedAt?: string;
10198
+ }
9863
10199
  /**
9864
10200
  * SetDefaultAlarmPolicy请求参数结构体
9865
10201
  */