tencentcloud-sdk-nodejs 4.0.367 → 4.0.370

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 (74) hide show
  1. package/CHANGELOG.md +438 -0
  2. package/SERVICE_CHANGELOG.md +388 -57
  3. package/package.json +1 -1
  4. package/products.md +25 -25
  5. package/src/common/sdk_version.ts +1 -1
  6. package/src/services/asr/v20190614/asr_client.ts +1 -1
  7. package/src/services/cdn/v20180606/cdn_models.ts +12 -0
  8. package/src/services/cii/v20210408/cii_models.ts +5 -0
  9. package/src/services/cme/v20191029/cme_client.ts +3 -1
  10. package/src/services/cme/v20191029/cme_models.ts +21 -0
  11. package/src/services/cpdp/v20190820/cpdp_models.ts +18 -6
  12. package/src/services/cwp/v20180228/cwp_client.ts +1 -0
  13. package/src/services/cwp/v20180228/cwp_models.ts +38 -2
  14. package/src/services/dnspod/v20210323/dnspod_client.ts +75 -26
  15. package/src/services/dnspod/v20210323/dnspod_models.ts +184 -0
  16. package/src/services/essbasic/v20210526/essbasic_models.ts +10 -0
  17. package/src/services/mmps/v20200710/mmps_models.ts +6 -0
  18. package/src/services/monitor/v20180724/monitor_client.ts +333 -52
  19. package/src/services/monitor/v20180724/monitor_models.ts +1493 -447
  20. package/src/services/mrs/v20200910/mrs_client.ts +1 -0
  21. package/src/services/mrs/v20200910/mrs_models.ts +65 -0
  22. package/src/services/ocr/v20181119/ocr_models.ts +11 -10
  23. package/src/services/postgres/v20170312/postgres_models.ts +2 -2
  24. package/src/services/tcbr/v20220217/tcbr_client.ts +21 -7
  25. package/src/services/tcbr/v20220217/tcbr_models.ts +184 -16
  26. package/src/services/teo/v20220106/teo_client.ts +4 -3
  27. package/src/services/teo/v20220106/teo_models.ts +135 -108
  28. package/src/services/tke/v20180525/tke_client.ts +13 -1
  29. package/src/services/tke/v20180525/tke_models.ts +63 -8
  30. package/src/services/vod/v20180717/vod_models.ts +16 -15
  31. package/src/services/vpc/v20170312/vpc_client.ts +2 -0
  32. package/src/services/vpc/v20170312/vpc_models.ts +111 -6
  33. package/src/services/waf/v20180125/waf_client.ts +37 -20
  34. package/src/services/waf/v20180125/waf_models.ts +435 -129
  35. package/tencentcloud/common/sdk_version.d.ts +1 -1
  36. package/tencentcloud/common/sdk_version.js +1 -1
  37. package/tencentcloud/services/asr/v20190614/asr_client.d.ts +1 -1
  38. package/tencentcloud/services/asr/v20190614/asr_client.js +1 -1
  39. package/tencentcloud/services/cdn/v20180606/cdn_models.d.ts +10 -0
  40. package/tencentcloud/services/cii/v20210408/cii_models.d.ts +4 -0
  41. package/tencentcloud/services/cme/v20191029/cme_client.d.ts +2 -1
  42. package/tencentcloud/services/cme/v20191029/cme_client.js +2 -1
  43. package/tencentcloud/services/cme/v20191029/cme_models.d.ts +18 -0
  44. package/tencentcloud/services/cpdp/v20190820/cpdp_models.d.ts +16 -6
  45. package/tencentcloud/services/cwp/v20180228/cwp_models.d.ts +32 -2
  46. package/tencentcloud/services/dnspod/v20210323/dnspod_client.d.ts +26 -10
  47. package/tencentcloud/services/dnspod/v20210323/dnspod_client.js +37 -13
  48. package/tencentcloud/services/dnspod/v20210323/dnspod_models.d.ts +159 -0
  49. package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +8 -0
  50. package/tencentcloud/services/mmps/v20200710/mmps_models.d.ts +5 -0
  51. package/tencentcloud/services/monitor/v20180724/monitor_client.d.ts +106 -14
  52. package/tencentcloud/services/monitor/v20180724/monitor_client.js +155 -17
  53. package/tencentcloud/services/monitor/v20180724/monitor_models.d.ts +1316 -413
  54. package/tencentcloud/services/mrs/v20200910/mrs_models.d.ts +55 -0
  55. package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +11 -10
  56. package/tencentcloud/services/postgres/v20170312/postgres_models.d.ts +2 -2
  57. package/tencentcloud/services/tcbr/v20220217/tcbr_client.d.ts +7 -3
  58. package/tencentcloud/services/tcbr/v20220217/tcbr_client.js +9 -3
  59. package/tencentcloud/services/tcbr/v20220217/tcbr_models.d.ts +153 -14
  60. package/tencentcloud/services/teo/v20220106/teo_client.d.ts +1 -1
  61. package/tencentcloud/services/teo/v20220106/teo_models.d.ts +114 -91
  62. package/tencentcloud/services/tke/v20180525/tke_client.d.ts +5 -1
  63. package/tencentcloud/services/tke/v20180525/tke_client.js +6 -0
  64. package/tencentcloud/services/tke/v20180525/tke_models.d.ts +54 -8
  65. package/tencentcloud/services/vod/v20180717/vod_models.d.ts +13 -12
  66. package/tencentcloud/services/vpc/v20170312/vpc_models.d.ts +92 -6
  67. package/tencentcloud/services/waf/v20180125/waf_client.d.ts +9 -5
  68. package/tencentcloud/services/waf/v20180125/waf_client.js +12 -6
  69. package/tencentcloud/services/waf/v20180125/waf_models.d.ts +363 -108
  70. package/test/dnspod.v20210323.test.js +48 -8
  71. package/test/monitor.v20180724.test.js +238 -8
  72. package/test/tcbr.v20220217.test.js +12 -2
  73. package/test/tke.v20180525.test.js +10 -0
  74. package/test/waf.v20180125.test.js +14 -4
@@ -276,6 +276,27 @@ export interface DescribeServiceDiscoveryResponse {
276
276
  RequestId?: string
277
277
  }
278
278
 
279
+ /**
280
+ * DescribeRecordingRules返回参数结构体
281
+ */
282
+ export interface DescribeRecordingRulesResponse {
283
+ /**
284
+ * 规则组数量
285
+ */
286
+ TotalCount: number
287
+
288
+ /**
289
+ * 规则组详情
290
+ 注意:此字段可能返回 null,表示取不到有效值。
291
+ */
292
+ RecordingRuleSet: Array<RecordingRuleSet>
293
+
294
+ /**
295
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
296
+ */
297
+ RequestId?: string
298
+ }
299
+
279
300
  /**
280
301
  * Prometheus 托管服务标签
281
302
  */
@@ -292,6 +313,16 @@ export interface PrometheusTag {
292
313
  Value: string
293
314
  }
294
315
 
316
+ /**
317
+ * DestroyPrometheusInstance返回参数结构体
318
+ */
319
+ export interface DestroyPrometheusInstanceResponse {
320
+ /**
321
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
322
+ */
323
+ RequestId?: string
324
+ }
325
+
295
326
  /**
296
327
  * 指标告警配置
297
328
  */
@@ -433,33 +464,45 @@ export interface BindingPolicyObjectRequest {
433
464
  }
434
465
 
435
466
  /**
436
- * CreateServiceDiscovery返回参数结构体
467
+ * DescribeAlarmNoticeCallbacks请求参数结构体
437
468
  */
438
- export interface CreateServiceDiscoveryResponse {
439
- /**
440
- * 创建成功之后,返回对应服务发现信息
441
- */
442
- ServiceDiscovery?: ServiceDiscoveryItem
443
-
469
+ export interface DescribeAlarmNoticeCallbacksRequest {
444
470
  /**
445
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
471
+ * 模块名,这里填“monitor”
446
472
  */
447
- RequestId?: string
473
+ Module: string
448
474
  }
449
475
 
450
476
  /**
451
- * prometheus 报警规则 KV 参数
477
+ * DescribeBindingPolicyObjectList返回参数结构体
452
478
  */
453
- export interface PrometheusRuleKV {
479
+ export interface DescribeBindingPolicyObjectListResponse {
454
480
  /**
455
- *
481
+ * 绑定的对象实例列表
482
+ 注意:此字段可能返回 null,表示取不到有效值。
483
+ */
484
+ List: Array<DescribeBindingPolicyObjectListInstance>
485
+
486
+ /**
487
+ * 绑定的对象实例总数
456
488
  */
457
- Key: string
489
+ Total: number
458
490
 
459
491
  /**
460
- *
492
+ * 未屏蔽的对象实例数
461
493
  */
462
- Value: string
494
+ NoShieldedSum: number
495
+
496
+ /**
497
+ * 绑定的实例分组信息,没有绑定实例分组则为空
498
+ 注意:此字段可能返回 null,表示取不到有效值。
499
+ */
500
+ InstanceGroup: DescribeBindingPolicyObjectListInstanceGroup
501
+
502
+ /**
503
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
504
+ */
505
+ RequestId?: string
463
506
  }
464
507
 
465
508
  /**
@@ -517,6 +560,16 @@ export interface DeleteServiceDiscoveryResponse {
517
560
  RequestId?: string
518
561
  }
519
562
 
563
+ /**
564
+ * CreatePrometheusScrapeJob返回参数结构体
565
+ */
566
+ export interface CreatePrometheusScrapeJobResponse {
567
+ /**
568
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
569
+ */
570
+ RequestId?: string
571
+ }
572
+
520
573
  /**
521
574
  * 查询策略输出的用户回调信息
522
575
  */
@@ -642,6 +695,39 @@ export interface CreateAlarmPolicyRequest {
642
695
  GroupBy?: Array<string>
643
696
  }
644
697
 
698
+ /**
699
+ * CreateExporterIntegration请求参数结构体
700
+ */
701
+ export interface CreateExporterIntegrationRequest {
702
+ /**
703
+ * 实例 ID
704
+ */
705
+ InstanceId: string
706
+
707
+ /**
708
+ * Kubernetes 集群类型,取值如下:
709
+ <li> 1= 容器集群(TKE) </li>
710
+ <li> 2=弹性集群<EKS> </li>
711
+ <li> 3= Prometheus管理的弹性集群<MEKS> </li>
712
+ */
713
+ KubeType: number
714
+
715
+ /**
716
+ * 集群 ID
717
+ */
718
+ ClusterId: string
719
+
720
+ /**
721
+ * 类型
722
+ */
723
+ Kind: string
724
+
725
+ /**
726
+ * 集成配置
727
+ */
728
+ Content: string
729
+ }
730
+
645
731
  /**
646
732
  * DescribeAlarmEvents返回参数结构体
647
733
  */
@@ -773,6 +859,89 @@ export interface DescribePolicyGroupInfoResponse {
773
859
  RequestId?: string
774
860
  }
775
861
 
862
+ /**
863
+ * prometheus agent
864
+ */
865
+ export interface PrometheusAgent {
866
+ /**
867
+ * Agent 名
868
+ 注意:此字段可能返回 null,表示取不到有效值。
869
+ */
870
+ Name: string
871
+
872
+ /**
873
+ * Agent ID
874
+ */
875
+ AgentId: string
876
+
877
+ /**
878
+ * 实例 ID
879
+ */
880
+ InstanceId: string
881
+
882
+ /**
883
+ * Agent IP
884
+ 注意:此字段可能返回 null,表示取不到有效值。
885
+ */
886
+ Ipv4: string
887
+
888
+ /**
889
+ * 心跳时间
890
+ 注意:此字段可能返回 null,表示取不到有效值。
891
+ */
892
+ HeartbeatTime: string
893
+
894
+ /**
895
+ * 最近一次错误
896
+ 注意:此字段可能返回 null,表示取不到有效值。
897
+ */
898
+ LastError: string
899
+
900
+ /**
901
+ * Agent 版本
902
+ 注意:此字段可能返回 null,表示取不到有效值。
903
+ */
904
+ AgentVersion: string
905
+
906
+ /**
907
+ * Agent 状态
908
+ */
909
+ Status: number
910
+ }
911
+
912
+ /**
913
+ * DeleteExporterIntegration请求参数结构体
914
+ */
915
+ export interface DeleteExporterIntegrationRequest {
916
+ /**
917
+ * 实例 ID
918
+ */
919
+ InstanceId: string
920
+
921
+ /**
922
+ * Kubernetes 集群类型,取值如下:
923
+ <li> 1= 容器集群(TKE) </li>
924
+ <li> 2=弹性集群<EKS> </li>
925
+ <li> 3= Prometheus管理的弹性集群<MEKS> </li>
926
+ */
927
+ KubeType: number
928
+
929
+ /**
930
+ * 集群 ID
931
+ */
932
+ ClusterId: string
933
+
934
+ /**
935
+ * 类型
936
+ */
937
+ Kind: string
938
+
939
+ /**
940
+ * 名字
941
+ */
942
+ Name: string
943
+ }
944
+
776
945
  /**
777
946
  * ModifyAlarmPolicyNotice请求参数结构体
778
947
  */
@@ -861,242 +1030,135 @@ export interface EventCondition {
861
1030
  }
862
1031
 
863
1032
  /**
864
- * Prometheus 服务响应体
1033
+ * 对业务指标的单位及支持统计周期的描述
865
1034
  */
866
- export interface PrometheusInstancesItem {
1035
+ export interface MetricSet {
867
1036
  /**
868
- * 实例ID。
1037
+ * 命名空间,每个云产品会有一个命名空间
869
1038
  */
870
- InstanceId: string
1039
+ Namespace: string
871
1040
 
872
1041
  /**
873
- * 实例名称。
1042
+ * 指标名称
874
1043
  */
875
- InstanceName: string
1044
+ MetricName: string
876
1045
 
877
1046
  /**
878
- * 实例计费模式。取值范围:
879
- <ul>
880
- <li>2:包年包月</li>
881
- <li>3:按量</li>
882
- </ul>
883
- */
884
- InstanceChargeType: number
1047
+ * 指标使用的单位
1048
+ */
1049
+ Unit: string
885
1050
 
886
1051
  /**
887
- * 地域 ID
1052
+ * 指标使用的单位
888
1053
  */
889
- RegionId: number
1054
+ UnitCname: string
890
1055
 
891
1056
  /**
892
- * 可用区
1057
+ * 指标支持的统计周期,单位是秒,如60、300
893
1058
  */
894
- Zone: string
1059
+ Period: Array<number>
895
1060
 
896
1061
  /**
897
- * VPC ID
1062
+ * 统计周期内指标方式
898
1063
  */
899
- VpcId: string
1064
+ Periods: Array<PeriodsSt>
900
1065
 
901
1066
  /**
902
- * 子网 ID
1067
+ * 统计指标含义解释
903
1068
  */
904
- SubnetId: string
1069
+ Meaning: MetricObjectMeaning
905
1070
 
906
1071
  /**
907
- * 存储周期
908
- 注意:此字段可能返回 null,表示取不到有效值。
909
- */
910
- DataRetentionTime: number
1072
+ * 维度描述信息
1073
+ */
1074
+ Dimensions: Array<DimensionsDesc>
911
1075
 
912
1076
  /**
913
- * 实例业务状态。取值范围:
914
- <ul>
915
- <li>1:正在创建</li>
916
- <li>2:运行中</li>
917
- <li>3:异常</li>
918
- <li>4:重建中</li>
919
- <li>5:销毁中</li>
920
- <li>6:已停服</li>
921
- <li>8:欠费停服中</li>
922
- <li>9:欠费已停服</li>
923
- </ul>
1077
+ * 指标中文名
1078
+ 注意:此字段可能返回 null,表示取不到有效值。
924
1079
  */
925
- InstanceStatus: number
1080
+ MetricCName: string
926
1081
 
927
1082
  /**
928
- * Grafana 面板 URL
1083
+ * 指标英文名
929
1084
  注意:此字段可能返回 null,表示取不到有效值。
930
1085
  */
931
- GrafanaURL: string
1086
+ MetricEName: string
1087
+ }
932
1088
 
1089
+ /**
1090
+ * DescribeConditionsTemplateList请求参数结构体
1091
+ */
1092
+ export interface DescribeConditionsTemplateListRequest {
933
1093
  /**
934
- * 创建时间
1094
+ * 固定值,为"monitor"
935
1095
  */
936
- CreatedAt: string
1096
+ Module: string
937
1097
 
938
1098
  /**
939
- * 是否开启 Grafana
940
- <li>0:不开启</li>
941
- <li>1:开启</li>
942
- */
943
- EnableGrafana: number
1099
+ * 视图名,由 [DescribeAllNamespaces](https://cloud.tencent.com/document/product/248/48683) 获得。对于云产品监控,取接口出参的 QceNamespacesNew.N.Id,例如 cvm_device
1100
+ */
1101
+ ViewName?: string
944
1102
 
945
1103
  /**
946
- * 实例IPV4地址
947
- 注意:此字段可能返回 null,表示取不到有效值。
948
- */
949
- IPv4Address: string
1104
+ * 根据触发条件模板名称过滤查询
1105
+ */
1106
+ GroupName?: string
950
1107
 
951
1108
  /**
952
- * 实例关联的标签列表。
953
- 注意:此字段可能返回 null,表示取不到有效值。
954
- */
955
- TagSpecification: Array<PrometheusTag>
1109
+ * 根据触发条件模板ID过滤查询
1110
+ */
1111
+ GroupID?: string
956
1112
 
957
1113
  /**
958
- * 购买的实例过期时间
959
- 注意:此字段可能返回 null,表示取不到有效值。
960
- */
961
- ExpireTime: string
1114
+ * 分页参数,每页返回的数量,取值1~100,默认20
1115
+ */
1116
+ Limit?: number
962
1117
 
963
1118
  /**
964
- * 计费状态
965
- <ul>
966
- <li>1:正常</li>
967
- <li>2:过期</li>
968
- <li>3:销毁</li>
969
- <li>4:分配中</li>
970
- <li>5:分配失败</li>
971
- </ul>
972
- 注意:此字段可能返回 null,表示取不到有效值。
973
- */
974
- ChargeStatus: number
975
-
976
- /**
977
- * 规格名称
978
- 注意:此字段可能返回 null,表示取不到有效值。
979
- */
980
- SpecName: string
981
-
982
- /**
983
- * 自动续费标记
984
- <ul>
985
- <li>0:不自动续费</li>
986
- <li>1:开启自动续费</li>
987
- <li>2:禁止自动续费</li>
988
- <li>-1:无效</ii>
989
- </ul>
990
- 注意:此字段可能返回 null,表示取不到有效值。
991
- */
992
- AutoRenewFlag: number
993
-
994
- /**
995
- * 是否快过期
996
- <ul>
997
- <li>0:否</li>
998
- <li>1:快过期</li>
999
- </ul>
1000
- 注意:此字段可能返回 null,表示取不到有效值。
1001
- */
1002
- IsNearExpire: number
1003
-
1004
- /**
1005
- * 数据写入需要的 Token
1006
- 注意:此字段可能返回 null,表示取不到有效值。
1007
- */
1008
- AuthToken: string
1009
-
1010
- /**
1011
- * Prometheus Remote Write 的地址
1012
- 注意:此字段可能返回 null,表示取不到有效值。
1013
- */
1014
- RemoteWrite: string
1015
-
1016
- /**
1017
- * Prometheus HTTP Api 根地址
1018
- 注意:此字段可能返回 null,表示取不到有效值。
1019
- */
1020
- ApiRootPath: string
1021
-
1022
- /**
1023
- * Proxy 的地址
1024
- 注意:此字段可能返回 null,表示取不到有效值。
1025
- */
1026
- ProxyAddress: string
1027
-
1028
- /**
1029
- * Grafana 运行状态
1030
- <ul>
1031
- <li>1:正在创建</li>
1032
- <li>2:运行中</li>
1033
- <li>3:异常</li>
1034
- <li>4:重启中</li>
1035
- <li>5:销毁中</li>
1036
- <li>6:已停机</li>
1037
- <li>7:已删除</li>
1038
- </ul>
1039
- 注意:此字段可能返回 null,表示取不到有效值。
1040
- */
1041
- GrafanaStatus: number
1042
-
1043
- /**
1044
- * Grafana IP 白名单列表,使用英文分号分隔
1045
- 注意:此字段可能返回 null,表示取不到有效值。
1046
- */
1047
- GrafanaIpWhiteList: string
1048
-
1049
- /**
1050
- * 实例的授权信息
1051
- 注意:此字段可能返回 null,表示取不到有效值。
1052
- */
1053
- Grant: PrometheusInstanceGrantInfo
1119
+ * 分页参数,页偏移量,从0开始计数,默认0
1120
+ */
1121
+ Offset?: number
1054
1122
 
1055
1123
  /**
1056
- * 绑定的 Grafana 实例 ID
1057
- 注意:此字段可能返回 null,表示取不到有效值。
1058
- */
1059
- GrafanaInstanceId: string
1124
+ * 指定按更新时间的排序方式,asc=升序, desc=降序
1125
+ */
1126
+ UpdateTimeOrder?: string
1060
1127
  }
1061
1128
 
1062
1129
  /**
1063
- * DescribeConditionsTemplateList请求参数结构体
1130
+ * DescribePrometheusScrapeJobs请求参数结构体
1064
1131
  */
1065
- export interface DescribeConditionsTemplateListRequest {
1066
- /**
1067
- * 固定值,为"monitor"
1068
- */
1069
- Module: string
1070
-
1132
+ export interface DescribePrometheusScrapeJobsRequest {
1071
1133
  /**
1072
- * 视图名,由 [DescribeAllNamespaces](https://cloud.tencent.com/document/product/248/48683) 获得。对于云产品监控,取接口出参的 QceNamespacesNew.N.Id,例如 cvm_device
1134
+ * 实例 ID
1073
1135
  */
1074
- ViewName?: string
1136
+ InstanceId: string
1075
1137
 
1076
1138
  /**
1077
- * 根据触发条件模板名称过滤查询
1139
+ * Agent ID
1078
1140
  */
1079
- GroupName?: string
1141
+ AgentId: string
1080
1142
 
1081
1143
  /**
1082
- * 根据触发条件模板ID过滤查询
1144
+ * 任务名
1083
1145
  */
1084
- GroupID?: string
1146
+ Name?: string
1085
1147
 
1086
1148
  /**
1087
- * 分页参数,每页返回的数量,取值1~100,默认20
1149
+ * 任务 ID 列表
1088
1150
  */
1089
- Limit?: number
1151
+ JobIds?: Array<string>
1090
1152
 
1091
1153
  /**
1092
- * 分页参数,页偏移量,从0开始计数,默认0
1154
+ * 偏移量,默认为0
1093
1155
  */
1094
1156
  Offset?: number
1095
1157
 
1096
1158
  /**
1097
- * 指定按更新时间的排序方式,asc=升序, desc=降序
1159
+ * 返回数量,默认为20,最大值为100
1098
1160
  */
1099
- UpdateTimeOrder?: string
1161
+ Limit?: number
1100
1162
  }
1101
1163
 
1102
1164
  /**
@@ -1155,6 +1217,43 @@ export interface DescribeBaseMetricsResponse {
1155
1217
  RequestId?: string
1156
1218
  }
1157
1219
 
1220
+ /**
1221
+ * Prometheus 抓取任务
1222
+ */
1223
+ export interface PrometheusScrapeJob {
1224
+ /**
1225
+ * 任务名
1226
+ 注意:此字段可能返回 null,表示取不到有效值。
1227
+ */
1228
+ Name: string
1229
+
1230
+ /**
1231
+ * Agent ID
1232
+ */
1233
+ AgentId: string
1234
+
1235
+ /**
1236
+ * 任务 ID
1237
+ */
1238
+ JobId: string
1239
+
1240
+ /**
1241
+ * 配置
1242
+ 注意:此字段可能返回 null,表示取不到有效值。
1243
+ */
1244
+ Config: string
1245
+ }
1246
+
1247
+ /**
1248
+ * ModifyPrometheusInstanceAttributes返回参数结构体
1249
+ */
1250
+ export interface ModifyPrometheusInstanceAttributesResponse {
1251
+ /**
1252
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1253
+ */
1254
+ RequestId?: string
1255
+ }
1256
+
1158
1257
  /**
1159
1258
  * DescribeMetricData出参
1160
1259
  */
@@ -1370,6 +1469,55 @@ export interface SendCustomAlarmMsgRequest {
1370
1469
  Msg: string
1371
1470
  }
1372
1471
 
1472
+ /**
1473
+ * CreateRecordingRule请求参数结构体
1474
+ */
1475
+ export interface CreateRecordingRuleRequest {
1476
+ /**
1477
+ * 聚合规则名称
1478
+ */
1479
+ Name: string
1480
+
1481
+ /**
1482
+ * 聚合规则组内容,格式为 yaml
1483
+ */
1484
+ Group: string
1485
+
1486
+ /**
1487
+ * Prometheus 实例 ID
1488
+ */
1489
+ InstanceId: string
1490
+
1491
+ /**
1492
+ * 规则状态码,取值如下:
1493
+ <li>1=RuleDeleted</li>
1494
+ <li>2=RuleEnabled</li>
1495
+ <li>3=RuleDisabled</li>
1496
+ 默认状态码为 2 启用。
1497
+ */
1498
+ RuleState?: number
1499
+ }
1500
+
1501
+ /**
1502
+ * ModifyPrometheusInstanceAttributes请求参数结构体
1503
+ */
1504
+ export interface ModifyPrometheusInstanceAttributesRequest {
1505
+ /**
1506
+ * 实例名称
1507
+ */
1508
+ InstanceName: string
1509
+
1510
+ /**
1511
+ * 实例 ID
1512
+ */
1513
+ InstanceId: string
1514
+
1515
+ /**
1516
+ * 存储时长(取值为 15、30、45。此参数不适用于包年包月实例)
1517
+ */
1518
+ DataRetentionTime?: number
1519
+ }
1520
+
1373
1521
  /**
1374
1522
  * DescribePolicyConditionList.ConfigManual.Period
1375
1523
  */
@@ -1393,33 +1541,23 @@ export interface DescribePolicyConditionListConfigManualPeriod {
1393
1541
  }
1394
1542
 
1395
1543
  /**
1396
- * UnBindingPolicyObject请求参数结构体
1544
+ * 指标配置
1397
1545
  */
1398
- export interface UnBindingPolicyObjectRequest {
1399
- /**
1400
- * 固定值,为"monitor"
1401
- */
1402
- Module: string
1403
-
1404
- /**
1405
- * 策略组id,如传入 PolicyId 则该字段被忽略可传入任意值如 0
1406
- */
1407
- GroupId: number
1408
-
1546
+ export interface MetricConfig {
1409
1547
  /**
1410
- * 待删除对象实例的唯一id列表,UniqueId从调用[获取已绑定对象列表接口](https://cloud.tencent.com/document/api/248/40570)的出参的List中得到
1548
+ * 允许使用的运算符
1411
1549
  */
1412
- UniqueId: Array<string>
1550
+ Operator: Array<string>
1413
1551
 
1414
1552
  /**
1415
- * 实例分组id,如果按实例分组删除的话UniqueId参数是无效的
1553
+ * 允许配置的数据周期,以秒为单位
1416
1554
  */
1417
- InstanceGroupId?: number
1555
+ Period: Array<number>
1418
1556
 
1419
1557
  /**
1420
- * 告警策略ID,使用此字段时 GroupId 会被忽略
1558
+ * 允许配置的持续周期个数
1421
1559
  */
1422
- PolicyId?: string
1560
+ ContinuePeriod: Array<number>
1423
1561
  }
1424
1562
 
1425
1563
  /**
@@ -1509,20 +1647,19 @@ export interface DeletePolicyGroupResponse {
1509
1647
  }
1510
1648
 
1511
1649
  /**
1512
- * DescribeAccidentEventList返回参数结构体
1650
+ * DescribeConditionsTemplateList返回参数结构体
1513
1651
  */
1514
- export interface DescribeAccidentEventListResponse {
1652
+ export interface DescribeConditionsTemplateListResponse {
1515
1653
  /**
1516
- * 平台事件列表
1517
- 注意:此字段可能返回 null,表示取不到有效值。
1518
- */
1519
- Alarms?: Array<DescribeAccidentEventListAlarms>
1654
+ * 模板总数
1655
+ */
1656
+ Total: number
1520
1657
 
1521
1658
  /**
1522
- * 平台事件的总数
1659
+ * 模板列表
1523
1660
  注意:此字段可能返回 null,表示取不到有效值。
1524
1661
  */
1525
- Total?: number
1662
+ TemplateGroupList: Array<TemplateGroup>
1526
1663
 
1527
1664
  /**
1528
1665
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
@@ -1590,6 +1727,36 @@ export interface DimensionsDesc {
1590
1727
  Dimensions: Array<string>
1591
1728
  }
1592
1729
 
1730
+ /**
1731
+ * ModifyAlarmPolicyStatus请求参数结构体
1732
+ */
1733
+ export interface ModifyAlarmPolicyStatusRequest {
1734
+ /**
1735
+ * 模块名,固定值 monitor
1736
+ */
1737
+ Module: string
1738
+
1739
+ /**
1740
+ * 告警策略 ID
1741
+ */
1742
+ PolicyId: string
1743
+
1744
+ /**
1745
+ * 启停状态 0=停用 1=启用
1746
+ */
1747
+ Enable: number
1748
+ }
1749
+
1750
+ /**
1751
+ * UpdatePrometheusAgentStatus返回参数结构体
1752
+ */
1753
+ export interface UpdatePrometheusAgentStatusResponse {
1754
+ /**
1755
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1756
+ */
1757
+ RequestId?: string
1758
+ }
1759
+
1593
1760
  /**
1594
1761
  * Prometheus 服务发现信息
1595
1762
  */
@@ -1789,9 +1956,19 @@ export interface PeriodsSt {
1789
1956
  }
1790
1957
 
1791
1958
  /**
1792
- * 告警策略详情
1959
+ * BindPrometheusManagedGrafana返回参数结构体
1793
1960
  */
1794
- export interface AlarmPolicy {
1961
+ export interface BindPrometheusManagedGrafanaResponse {
1962
+ /**
1963
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1964
+ */
1965
+ RequestId?: string
1966
+ }
1967
+
1968
+ /**
1969
+ * 告警策略详情
1970
+ */
1971
+ export interface AlarmPolicy {
1795
1972
  /**
1796
1973
  * 告警策略 ID
1797
1974
  注意:此字段可能返回 null,表示取不到有效值。
@@ -2024,6 +2201,41 @@ export interface ModifyAlarmReceiversResponse {
2024
2201
  RequestId?: string
2025
2202
  }
2026
2203
 
2204
+ /**
2205
+ * Prometheus Agent 管理命令行
2206
+ */
2207
+ export interface ManagementCommand {
2208
+ /**
2209
+ * Agent 安装命令
2210
+ 注意:此字段可能返回 null,表示取不到有效值。
2211
+ */
2212
+ Install: string
2213
+
2214
+ /**
2215
+ * Agent 重启命令
2216
+ 注意:此字段可能返回 null,表示取不到有效值。
2217
+ */
2218
+ Restart: string
2219
+
2220
+ /**
2221
+ * Agent 停止命令
2222
+ 注意:此字段可能返回 null,表示取不到有效值。
2223
+ */
2224
+ Stop: string
2225
+
2226
+ /**
2227
+ * Agent 状态检测命令
2228
+ 注意:此字段可能返回 null,表示取不到有效值。
2229
+ */
2230
+ StatusCheck: string
2231
+
2232
+ /**
2233
+ * Agent 日志检测命令
2234
+ 注意:此字段可能返回 null,表示取不到有效值。
2235
+ */
2236
+ LogCheck: string
2237
+ }
2238
+
2027
2239
  /**
2028
2240
  * DescribePolicyConditionList返回参数结构体
2029
2241
  */
@@ -2146,6 +2358,21 @@ export interface DescribeAllNamespacesResponse {
2146
2358
  RequestId?: string
2147
2359
  }
2148
2360
 
2361
+ /**
2362
+ * GetPrometheusAgentManagementCommand请求参数结构体
2363
+ */
2364
+ export interface GetPrometheusAgentManagementCommandRequest {
2365
+ /**
2366
+ * Prometheus 实例 ID
2367
+ */
2368
+ InstanceId: string
2369
+
2370
+ /**
2371
+ * Prometheus Agent ID
2372
+ */
2373
+ AgentId: string
2374
+ }
2375
+
2149
2376
  /**
2150
2377
  * DeleteAlarmNotices返回参数结构体
2151
2378
  */
@@ -2156,6 +2383,48 @@ export interface DeleteAlarmNoticesResponse {
2156
2383
  RequestId?: string
2157
2384
  }
2158
2385
 
2386
+ /**
2387
+ * TerminatePrometheusInstances请求参数结构体
2388
+ */
2389
+ export interface TerminatePrometheusInstancesRequest {
2390
+ /**
2391
+ * 实例 ID 列表
2392
+ */
2393
+ InstanceIds: Array<string>
2394
+ }
2395
+
2396
+ /**
2397
+ * UnbindPrometheusManagedGrafana返回参数结构体
2398
+ */
2399
+ export interface UnbindPrometheusManagedGrafanaResponse {
2400
+ /**
2401
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2402
+ */
2403
+ RequestId?: string
2404
+ }
2405
+
2406
+ /**
2407
+ * UpdatePrometheusAgentStatus请求参数结构体
2408
+ */
2409
+ export interface UpdatePrometheusAgentStatusRequest {
2410
+ /**
2411
+ * 实例 ID
2412
+ */
2413
+ InstanceId: string
2414
+
2415
+ /**
2416
+ * Agent ID 列表
2417
+ */
2418
+ AgentIds: Array<string>
2419
+
2420
+ /**
2421
+ * 要更新的状态
2422
+ <li> 1= 开启 </li>
2423
+ <li> 2= 关闭 </li>
2424
+ */
2425
+ Status: number
2426
+ }
2427
+
2159
2428
  /**
2160
2429
  * DescribeBasicAlarmList返回参数结构体
2161
2430
  */
@@ -2327,13 +2596,61 @@ re=正则匹配
2327
2596
  }
2328
2597
 
2329
2598
  /**
2330
- * DescribeAlarmNoticeCallbacks请求参数结构体
2599
+ * CreateServiceDiscovery返回参数结构体
2331
2600
  */
2332
- export interface DescribeAlarmNoticeCallbacksRequest {
2601
+ export interface CreateServiceDiscoveryResponse {
2333
2602
  /**
2334
- * 模块名,这里填“monitor”
2603
+ * 创建成功之后,返回对应服务发现信息
2335
2604
  */
2336
- Module: string
2605
+ ServiceDiscovery?: ServiceDiscoveryItem
2606
+
2607
+ /**
2608
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2609
+ */
2610
+ RequestId?: string
2611
+ }
2612
+
2613
+ /**
2614
+ * CreatePrometheusAgent返回参数结构体
2615
+ */
2616
+ export interface CreatePrometheusAgentResponse {
2617
+ /**
2618
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2619
+ */
2620
+ RequestId?: string
2621
+ }
2622
+
2623
+ /**
2624
+ * DescribeExporterIntegrations请求参数结构体
2625
+ */
2626
+ export interface DescribeExporterIntegrationsRequest {
2627
+ /**
2628
+ * 实例 ID
2629
+ */
2630
+ InstanceId: string
2631
+
2632
+ /**
2633
+ * Kubernetes 集群类型,取值如下:
2634
+ <li> 1= 容器集群(TKE) </li>
2635
+ <li> 2=弹性集群<EKS> </li>
2636
+ <li> 3= Prometheus管理的弹性集群<MEKS> </li>
2637
+ */
2638
+ KubeType: number
2639
+
2640
+ /**
2641
+ * 集群 ID
2642
+ */
2643
+ ClusterId: string
2644
+
2645
+ /**
2646
+ * 类型
2647
+ */
2648
+ Kind?: string
2649
+
2650
+ /**
2651
+ * 名字
2652
+ */
2653
+ Name?: string
2337
2654
  }
2338
2655
 
2339
2656
  /**
@@ -2369,6 +2686,38 @@ export interface ModifyAlarmPolicyConditionResponse {
2369
2686
  RequestId?: string
2370
2687
  }
2371
2688
 
2689
+ /**
2690
+ * UpgradeGrafanaDashboard请求参数结构体
2691
+ */
2692
+ export interface UpgradeGrafanaDashboardRequest {
2693
+ /**
2694
+ * 实例 ID
2695
+ */
2696
+ InstanceId: string
2697
+
2698
+ /**
2699
+ * Prometheus 集成项 Code,升级对应的 Dashboard,取值如下:
2700
+ <li>spring_mvc</li>
2701
+ <li>mysql</li>
2702
+ <li>go</li>
2703
+ <li>redis</li>
2704
+ <li>jvm</li>
2705
+ <li>pgsql</li>
2706
+ <li>mongo</li>
2707
+ <li>kafka</li>
2708
+ <li>es</li>
2709
+ <li>flink</li>
2710
+ <li>blackbox</li>
2711
+ <li>consule</li>
2712
+ <li>memcached</li>
2713
+ <li>zk</li>
2714
+ <li>tps</li>
2715
+ <li>istio</li>
2716
+ <li>etcd</li>
2717
+ */
2718
+ IntegrationCodes?: Array<string>
2719
+ }
2720
+
2372
2721
  /**
2373
2722
  * 告警对象所属实例组
2374
2723
  */
@@ -2385,18 +2734,13 @@ export interface InstanceGroups {
2385
2734
  }
2386
2735
 
2387
2736
  /**
2388
- * 实例对象的维度组合
2737
+ * DestroyPrometheusInstance请求参数结构体
2389
2738
  */
2390
- export interface Dimension {
2391
- /**
2392
- * 实例维度名称
2393
- */
2394
- Name: string
2395
-
2739
+ export interface DestroyPrometheusInstanceRequest {
2396
2740
  /**
2397
- * 实例维度值
2741
+ * 实例 ID,该实例必须先被 terminate
2398
2742
  */
2399
- Value: string
2743
+ InstanceId: string
2400
2744
  }
2401
2745
 
2402
2746
  /**
@@ -2434,6 +2778,21 @@ export interface PrometheusInstanceGrantInfo {
2434
2778
  HasApiOperation: number
2435
2779
  }
2436
2780
 
2781
+ /**
2782
+ * UnbindPrometheusManagedGrafana请求参数结构体
2783
+ */
2784
+ export interface UnbindPrometheusManagedGrafanaRequest {
2785
+ /**
2786
+ * Prometheus 实例 ID
2787
+ */
2788
+ InstanceId: string
2789
+
2790
+ /**
2791
+ * Grafana 实例 ID
2792
+ */
2793
+ GrafanaId: string
2794
+ }
2795
+
2437
2796
  /**
2438
2797
  * 模板列表
2439
2798
  */
@@ -2838,6 +3197,31 @@ export interface UserNotice {
2838
3197
  Weekday?: Array<number>
2839
3198
  }
2840
3199
 
3200
+ /**
3201
+ * UpdatePrometheusScrapeJob请求参数结构体
3202
+ */
3203
+ export interface UpdatePrometheusScrapeJobRequest {
3204
+ /**
3205
+ * 实例 ID
3206
+ */
3207
+ InstanceId: string
3208
+
3209
+ /**
3210
+ * Agent ID
3211
+ */
3212
+ AgentId: string
3213
+
3214
+ /**
3215
+ * 抓取任务 ID
3216
+ */
3217
+ JobId: string
3218
+
3219
+ /**
3220
+ * 抓取任务配置
3221
+ */
3222
+ Config: string
3223
+ }
3224
+
2841
3225
  /**
2842
3226
  * 告警策略过滤条件
2843
3227
  */
@@ -2871,6 +3255,16 @@ export interface DescribeAlarmNoticeCallbacksResponse {
2871
3255
  RequestId?: string
2872
3256
  }
2873
3257
 
3258
+ /**
3259
+ * UpdateExporterIntegration返回参数结构体
3260
+ */
3261
+ export interface UpdateExporterIntegrationResponse {
3262
+ /**
3263
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3264
+ */
3265
+ RequestId?: string
3266
+ }
3267
+
2874
3268
  /**
2875
3269
  * ModifyAlarmPolicyCondition请求参数结构体
2876
3270
  */
@@ -2912,15 +3306,30 @@ export interface ModifyAlarmPolicyConditionRequest {
2912
3306
  }
2913
3307
 
2914
3308
  /**
2915
- * ModifyAlarmPolicyStatus返回参数结构体
3309
+ * ModifyAlarmNotice返回参数结构体
2916
3310
  */
2917
- export interface ModifyAlarmPolicyStatusResponse {
3311
+ export interface ModifyAlarmNoticeResponse {
2918
3312
  /**
2919
3313
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2920
3314
  */
2921
3315
  RequestId?: string
2922
3316
  }
2923
3317
 
3318
+ /**
3319
+ * BindPrometheusManagedGrafana请求参数结构体
3320
+ */
3321
+ export interface BindPrometheusManagedGrafanaRequest {
3322
+ /**
3323
+ * Prometheus 实例 ID
3324
+ */
3325
+ InstanceId: string
3326
+
3327
+ /**
3328
+ * Grafana 可视化服务实例 ID
3329
+ */
3330
+ GrafanaId: string
3331
+ }
3332
+
2924
3333
  /**
2925
3334
  * 实例维度组合数组
2926
3335
  */
@@ -2988,6 +3397,16 @@ export interface DescribeAlarmPolicyResponse {
2988
3397
  RequestId?: string
2989
3398
  }
2990
3399
 
3400
+ /**
3401
+ * DeleteExporterIntegration返回参数结构体
3402
+ */
3403
+ export interface DeleteExporterIntegrationResponse {
3404
+ /**
3405
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3406
+ */
3407
+ RequestId?: string
3408
+ }
3409
+
2991
3410
  /**
2992
3411
  * UpdateServiceDiscovery返回参数结构体
2993
3412
  */
@@ -3019,60 +3438,18 @@ export interface DescribeMonitorTypesResponse {
3019
3438
  }
3020
3439
 
3021
3440
  /**
3022
- * 对业务指标的单位及支持统计周期的描述
3441
+ * 实例对象的维度组合
3023
3442
  */
3024
- export interface MetricSet {
3025
- /**
3026
- * 命名空间,每个云产品会有一个命名空间
3027
- */
3028
- Namespace: string
3029
-
3030
- /**
3031
- * 指标名称
3032
- */
3033
- MetricName: string
3034
-
3035
- /**
3036
- * 指标使用的单位
3037
- */
3038
- Unit: string
3039
-
3040
- /**
3041
- * 指标使用的单位
3042
- */
3043
- UnitCname: string
3044
-
3045
- /**
3046
- * 指标支持的统计周期,单位是秒,如60、300
3047
- */
3048
- Period: Array<number>
3049
-
3050
- /**
3051
- * 统计周期内指标方式
3052
- */
3053
- Periods: Array<PeriodsSt>
3054
-
3443
+ export interface Dimension {
3055
3444
  /**
3056
- * 统计指标含义解释
3445
+ * 实例维度名称
3057
3446
  */
3058
- Meaning: MetricObjectMeaning
3447
+ Name: string
3059
3448
 
3060
3449
  /**
3061
- * 维度描述信息
3450
+ * 实例维度值
3062
3451
  */
3063
- Dimensions: Array<DimensionsDesc>
3064
-
3065
- /**
3066
- * 指标中文名
3067
- 注意:此字段可能返回 null,表示取不到有效值。
3068
- */
3069
- MetricCName: string
3070
-
3071
- /**
3072
- * 指标英文名
3073
- 注意:此字段可能返回 null,表示取不到有效值。
3074
- */
3075
- MetricEName: string
3452
+ Value: string
3076
3453
  }
3077
3454
 
3078
3455
  /**
@@ -3212,37 +3589,19 @@ export interface DescribeBasicAlarmListAlarms {
3212
3589
  }
3213
3590
 
3214
3591
  /**
3215
- * UpdateServiceDiscovery请求参数结构体
3592
+ * UpdateRecordingRule返回参数结构体
3216
3593
  */
3217
- export interface UpdateServiceDiscoveryRequest {
3594
+ export interface UpdateRecordingRuleResponse {
3218
3595
  /**
3219
- * Prometheus 实例 ID
3220
- */
3221
- InstanceId: string
3596
+ * 规则 ID
3597
+ 注意:此字段可能返回 null,表示取不到有效值。
3598
+ */
3599
+ RuleId: string
3222
3600
 
3223
3601
  /**
3224
- * <li>类型是 TKE,为对应的腾讯云容器服务集群 ID</li>
3225
- */
3226
- KubeClusterId: string
3227
-
3228
- /**
3229
- * 用户 Kubernetes 集群类型:
3230
- <li> 1 = 容器服务集群(TKE) </li>
3231
- */
3232
- KubeType: number
3233
-
3234
- /**
3235
- * 服务发现类型,取值如下:
3236
- <li> 1 = ServiceMonitor</li>
3237
- <li> 2 = PodMonitor</li>
3238
- <li> 3 = JobMonitor</li>
3239
- */
3240
- Type: number
3241
-
3242
- /**
3243
- * 服务发现配置信息
3602
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3244
3603
  */
3245
- Yaml: string
3604
+ RequestId?: string
3246
3605
  }
3247
3606
 
3248
3607
  /**
@@ -3441,19 +3800,18 @@ export interface ModifyPolicyGroupResponse {
3441
3800
  }
3442
3801
 
3443
3802
  /**
3444
- * DescribePolicyConditionList.ConfigManual.CalcType
3803
+ * DescribeAlarmMetrics返回参数结构体
3445
3804
  */
3446
- export interface DescribePolicyConditionListConfigManualCalcType {
3805
+ export interface DescribeAlarmMetricsResponse {
3447
3806
  /**
3448
- * CalcType 取值
3449
- 注意:此字段可能返回 null,表示取不到有效值。
3450
- */
3451
- Keys: Array<number>
3807
+ * 告警指标列表
3808
+ */
3809
+ Metrics?: Array<Metric>
3452
3810
 
3453
3811
  /**
3454
- * 是否必须
3812
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3455
3813
  */
3456
- Need: boolean
3814
+ RequestId?: string
3457
3815
  }
3458
3816
 
3459
3817
  /**
@@ -3514,6 +3872,21 @@ export interface Condition {
3514
3872
  Unit: string
3515
3873
  }
3516
3874
 
3875
+ /**
3876
+ * UpdateAlertRule返回参数结构体
3877
+ */
3878
+ export interface UpdateAlertRuleResponse {
3879
+ /**
3880
+ * 规则 ID
3881
+ */
3882
+ RuleId: string
3883
+
3884
+ /**
3885
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3886
+ */
3887
+ RequestId?: string
3888
+ }
3889
+
3517
3890
  /**
3518
3891
  * PutMonitorData请求参数结构体
3519
3892
  */
@@ -3540,23 +3913,43 @@ export interface PutMonitorDataRequest {
3540
3913
  }
3541
3914
 
3542
3915
  /**
3543
- * ModifyAlarmPolicyStatus请求参数结构体
3916
+ * DescribePrometheusAgents请求参数结构体
3544
3917
  */
3545
- export interface ModifyAlarmPolicyStatusRequest {
3918
+ export interface DescribePrometheusAgentsRequest {
3546
3919
  /**
3547
- * 模块名,固定值 monitor
3920
+ * 实例 ID
3548
3921
  */
3549
- Module: string
3922
+ InstanceId: string
3550
3923
 
3551
3924
  /**
3552
- * 告警策略 ID
3925
+ * Agent 名称
3553
3926
  */
3554
- PolicyId: string
3927
+ Name?: string
3555
3928
 
3556
3929
  /**
3557
- * 启停状态 0=停用 1=启用
3930
+ * Agent ID 列表
3558
3931
  */
3559
- Enable: number
3932
+ AgentIds?: Array<string>
3933
+
3934
+ /**
3935
+ * 偏移量,默认为0
3936
+ */
3937
+ Offset?: number
3938
+
3939
+ /**
3940
+ * 返回数量,默认为20,最大值为100
3941
+ */
3942
+ Limit?: number
3943
+ }
3944
+
3945
+ /**
3946
+ * TerminatePrometheusInstances返回参数结构体
3947
+ */
3948
+ export interface TerminatePrometheusInstancesResponse {
3949
+ /**
3950
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3951
+ */
3952
+ RequestId?: string
3560
3953
  }
3561
3954
 
3562
3955
  /**
@@ -3614,19 +4007,64 @@ export interface BindingPolicyTagRequest {
3614
4007
  GroupId: string
3615
4008
 
3616
4009
  /**
3617
- * 策略标签
4010
+ * 产品类型
3618
4011
  */
3619
- Tag: PolicyTag
4012
+ ServiceType: string
3620
4013
 
3621
4014
  /**
3622
- * 产品类型
4015
+ * 策略标签
3623
4016
  */
3624
- ServiceType: string
4017
+ Tag?: PolicyTag
3625
4018
 
3626
4019
  /**
3627
4020
  * 实例分组ID
3628
4021
  */
3629
4022
  InstanceGroupId?: number
4023
+
4024
+ /**
4025
+ * 批量绑定标签
4026
+ */
4027
+ BatchTag?: Array<PolicyTag>
4028
+ }
4029
+
4030
+ /**
4031
+ * export 集成配置
4032
+ */
4033
+ export interface IntegrationConfiguration {
4034
+ /**
4035
+ * 名字
4036
+ */
4037
+ Name: string
4038
+
4039
+ /**
4040
+ * 类型
4041
+ */
4042
+ Kind: string
4043
+
4044
+ /**
4045
+ * 内容
4046
+ */
4047
+ Content: string
4048
+
4049
+ /**
4050
+ * 状态
4051
+ */
4052
+ Status: number
4053
+
4054
+ /**
4055
+ * 实例类型
4056
+ */
4057
+ Category: string
4058
+
4059
+ /**
4060
+ * 实例描述
4061
+ */
4062
+ InstanceDesc: string
4063
+
4064
+ /**
4065
+ * dashboard 的 URL
4066
+ */
4067
+ GrafanaDashboardURL: string
3630
4068
  }
3631
4069
 
3632
4070
  /**
@@ -3691,35 +4129,14 @@ export interface UpdateAlertRuleRequest {
3691
4129
  }
3692
4130
 
3693
4131
  /**
3694
- * DescribeBindingPolicyObjectList返回参数结构体
4132
+ * 告警策略事件触发条件
3695
4133
  */
3696
- export interface DescribeBindingPolicyObjectListResponse {
3697
- /**
3698
- * 绑定的对象实例列表
3699
- 注意:此字段可能返回 null,表示取不到有效值。
3700
- */
3701
- List: Array<DescribeBindingPolicyObjectListInstance>
3702
-
3703
- /**
3704
- * 绑定的对象实例总数
3705
- */
3706
- Total: number
3707
-
3708
- /**
3709
- * 未屏蔽的对象实例数
3710
- */
3711
- NoShieldedSum: number
3712
-
4134
+ export interface AlarmPolicyEventCondition {
3713
4135
  /**
3714
- * 绑定的实例分组信息,没有绑定实例分组则为空
4136
+ * 告警触发条件列表
3715
4137
  注意:此字段可能返回 null,表示取不到有效值。
3716
4138
  */
3717
- InstanceGroup: DescribeBindingPolicyObjectListInstanceGroup
3718
-
3719
- /**
3720
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3721
- */
3722
- RequestId?: string
4139
+ Rules: Array<AlarmPolicyRule>
3723
4140
  }
3724
4141
 
3725
4142
  /**
@@ -3815,6 +4232,16 @@ export interface UnBindingPolicyObjectResponse {
3815
4232
  RequestId?: string
3816
4233
  }
3817
4234
 
4235
+ /**
4236
+ * SendCustomAlarmMsg返回参数结构体
4237
+ */
4238
+ export interface SendCustomAlarmMsgResponse {
4239
+ /**
4240
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4241
+ */
4242
+ RequestId?: string
4243
+ }
4244
+
3818
4245
  /**
3819
4246
  * DescribeBasicAlarmList返回的Alarms里的InstanceGroup
3820
4247
  */
@@ -3978,6 +4405,21 @@ export interface DeleteAlarmNoticesRequest {
3978
4405
  NoticeIds: Array<string>
3979
4406
  }
3980
4407
 
4408
+ /**
4409
+ * DescribeExporterIntegrations返回参数结构体
4410
+ */
4411
+ export interface DescribeExporterIntegrationsResponse {
4412
+ /**
4413
+ * 集成配置列表
4414
+ */
4415
+ IntegrationSet: Array<IntegrationConfiguration>
4416
+
4417
+ /**
4418
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4419
+ */
4420
+ RequestId?: string
4421
+ }
4422
+
3981
4423
  /**
3982
4424
  * DescribePolicyConditionList.ConfigManual.PeriodNum
3983
4425
  */
@@ -4000,6 +4442,16 @@ export interface DescribePolicyConditionListConfigManualPeriodNum {
4000
4442
  Need: boolean
4001
4443
  }
4002
4444
 
4445
+ /**
4446
+ * UpgradeGrafanaDashboard返回参数结构体
4447
+ */
4448
+ export interface UpgradeGrafanaDashboardResponse {
4449
+ /**
4450
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4451
+ */
4452
+ RequestId?: string
4453
+ }
4454
+
4003
4455
  /**
4004
4456
  * DescribeAllNamespaces请求参数结构体
4005
4457
  */
@@ -4112,14 +4564,24 @@ export interface PolicyGroup {
4112
4564
  }
4113
4565
 
4114
4566
  /**
4115
- * UpdateAlertRule返回参数结构体
4567
+ * DeleteRecordingRules请求参数结构体
4116
4568
  */
4117
- export interface UpdateAlertRuleResponse {
4569
+ export interface DeleteRecordingRulesRequest {
4118
4570
  /**
4119
- * 规则 ID
4571
+ * 规则 ID 列表
4120
4572
  */
4121
- RuleId: string
4573
+ RuleIds: Array<string>
4574
+
4575
+ /**
4576
+ * Prometheus 实例 ID
4577
+ */
4578
+ InstanceId: string
4579
+ }
4122
4580
 
4581
+ /**
4582
+ * UpdatePrometheusScrapeJob返回参数结构体
4583
+ */
4584
+ export interface UpdatePrometheusScrapeJobResponse {
4123
4585
  /**
4124
4586
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4125
4587
  */
@@ -4127,18 +4589,19 @@ export interface UpdateAlertRuleResponse {
4127
4589
  }
4128
4590
 
4129
4591
  /**
4130
- * DescribeAlarmMetrics返回参数结构体
4592
+ * DescribePolicyConditionList.ConfigManual.CalcType
4131
4593
  */
4132
- export interface DescribeAlarmMetricsResponse {
4594
+ export interface DescribePolicyConditionListConfigManualCalcType {
4133
4595
  /**
4134
- * 告警指标列表
4135
- */
4136
- Metrics?: Array<Metric>
4596
+ * CalcType 取值
4597
+ 注意:此字段可能返回 null,表示取不到有效值。
4598
+ */
4599
+ Keys: Array<number>
4137
4600
 
4138
4601
  /**
4139
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4602
+ * 是否必须
4140
4603
  */
4141
- RequestId?: string
4604
+ Need: boolean
4142
4605
  }
4143
4606
 
4144
4607
  /**
@@ -4301,19 +4764,41 @@ export interface DescribeAlarmPoliciesRequest {
4301
4764
  }
4302
4765
 
4303
4766
  /**
4304
- * DescribeConditionsTemplateList返回参数结构体
4767
+ * DescribeAccidentEventList返回参数结构体
4305
4768
  */
4306
- export interface DescribeConditionsTemplateListResponse {
4769
+ export interface DescribeAccidentEventListResponse {
4307
4770
  /**
4308
- * 模板总数
4771
+ * 平台事件列表
4772
+ 注意:此字段可能返回 null,表示取不到有效值。
4773
+ */
4774
+ Alarms?: Array<DescribeAccidentEventListAlarms>
4775
+
4776
+ /**
4777
+ * 平台事件的总数
4778
+ 注意:此字段可能返回 null,表示取不到有效值。
4779
+ */
4780
+ Total?: number
4781
+
4782
+ /**
4783
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4309
4784
  */
4310
- Total: number
4785
+ RequestId?: string
4786
+ }
4311
4787
 
4788
+ /**
4789
+ * DescribePrometheusScrapeJobs返回参数结构体
4790
+ */
4791
+ export interface DescribePrometheusScrapeJobsResponse {
4312
4792
  /**
4313
- * 模板列表
4793
+ * 任务列表
4314
4794
  注意:此字段可能返回 null,表示取不到有效值。
4315
4795
  */
4316
- TemplateGroupList: Array<TemplateGroup>
4796
+ ScrapeJobSet?: Array<PrometheusScrapeJob>
4797
+
4798
+ /**
4799
+ * 任务总量
4800
+ */
4801
+ TotalCount?: number
4317
4802
 
4318
4803
  /**
4319
4804
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
@@ -4456,23 +4941,13 @@ export interface AlarmNotice {
4456
4941
  }
4457
4942
 
4458
4943
  /**
4459
- * 指标配置
4944
+ * DeleteRecordingRules返回参数结构体
4460
4945
  */
4461
- export interface MetricConfig {
4462
- /**
4463
- * 允许使用的运算符
4464
- */
4465
- Operator: Array<string>
4466
-
4467
- /**
4468
- * 允许配置的数据周期,以秒为单位
4469
- */
4470
- Period: Array<number>
4471
-
4946
+ export interface DeleteRecordingRulesResponse {
4472
4947
  /**
4473
- * 允许配置的持续周期个数
4948
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4474
4949
  */
4475
- ContinuePeriod: Array<number>
4950
+ RequestId?: string
4476
4951
  }
4477
4952
 
4478
4953
  /**
@@ -4552,18 +5027,39 @@ export interface PolicyGroupReceiverInfo {
4552
5027
  }
4553
5028
 
4554
5029
  /**
4555
- * DescribeAlarmEvents请求参数结构体
5030
+ * DescribePrometheusAgents返回参数结构体
4556
5031
  */
4557
- export interface DescribeAlarmEventsRequest {
5032
+ export interface DescribePrometheusAgentsResponse {
4558
5033
  /**
4559
- * 模块名,固定值 monitor
4560
- */
4561
- Module: string
5034
+ * Agent 列表
5035
+ 注意:此字段可能返回 null,表示取不到有效值。
5036
+ */
5037
+ AgentSet: Array<PrometheusAgent>
4562
5038
 
4563
5039
  /**
4564
- * 告警策略类型,由 DescribeAllNamespaces 获得,例如 cvm_device
5040
+ * Agent 总量
4565
5041
  */
4566
- Namespace: string
5042
+ TotalCount: number
5043
+
5044
+ /**
5045
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5046
+ */
5047
+ RequestId?: string
5048
+ }
5049
+
5050
+ /**
5051
+ * DescribeAlarmEvents请求参数结构体
5052
+ */
5053
+ export interface DescribeAlarmEventsRequest {
5054
+ /**
5055
+ * 模块名,固定值 monitor
5056
+ */
5057
+ Module: string
5058
+
5059
+ /**
5060
+ * 告警策略类型,由 DescribeAllNamespaces 获得,例如 cvm_device
5061
+ */
5062
+ Namespace: string
4567
5063
 
4568
5064
  /**
4569
5065
  * 监控类型,如 MT_QCE。如果不填默认为 MT_QCE。
@@ -4592,13 +5088,94 @@ export interface MidQueryCondition {
4592
5088
  }
4593
5089
 
4594
5090
  /**
4595
- * ModifyAlarmNotice返回参数结构体
5091
+ * DeletePrometheusScrapeJobs请求参数结构体
4596
5092
  */
4597
- export interface ModifyAlarmNoticeResponse {
5093
+ export interface DeletePrometheusScrapeJobsRequest {
4598
5094
  /**
4599
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5095
+ * 实例 ID
4600
5096
  */
4601
- RequestId?: string
5097
+ InstanceId: string
5098
+
5099
+ /**
5100
+ * Agent ID
5101
+ */
5102
+ AgentId: string
5103
+
5104
+ /**
5105
+ * 任务 ID 列表
5106
+ */
5107
+ JobIds: Array<string>
5108
+ }
5109
+
5110
+ /**
5111
+ * UnBindingPolicyObject请求参数结构体
5112
+ */
5113
+ export interface UnBindingPolicyObjectRequest {
5114
+ /**
5115
+ * 固定值,为"monitor"
5116
+ */
5117
+ Module: string
5118
+
5119
+ /**
5120
+ * 策略组id,如传入 PolicyId 则该字段被忽略可传入任意值如 0
5121
+ */
5122
+ GroupId: number
5123
+
5124
+ /**
5125
+ * 待删除对象实例的唯一id列表,UniqueId从调用[获取已绑定对象列表接口](https://cloud.tencent.com/document/api/248/40570)的出参的List中得到
5126
+ */
5127
+ UniqueId: Array<string>
5128
+
5129
+ /**
5130
+ * 实例分组id,如果按实例分组删除的话UniqueId参数是无效的
5131
+ */
5132
+ InstanceGroupId?: number
5133
+
5134
+ /**
5135
+ * 告警策略ID,使用此字段时 GroupId 会被忽略
5136
+ */
5137
+ PolicyId?: string
5138
+ }
5139
+
5140
+ /**
5141
+ * 云监控告警通知模板 - 回调通知详情
5142
+ */
5143
+ export interface URLNotice {
5144
+ /**
5145
+ * 回调 url(限长256字符)
5146
+ 注意:此字段可能返回 null,表示取不到有效值。
5147
+ */
5148
+ URL: string
5149
+
5150
+ /**
5151
+ * 是否通过验证 0=否 1=是
5152
+ 注意:此字段可能返回 null,表示取不到有效值。
5153
+ */
5154
+ IsValid?: number
5155
+
5156
+ /**
5157
+ * 验证码
5158
+ 注意:此字段可能返回 null,表示取不到有效值。
5159
+ */
5160
+ ValidationCode?: string
5161
+
5162
+ /**
5163
+ * 通知开始时间 一天开始的秒数
5164
+ 注意:此字段可能返回 null,表示取不到有效值。
5165
+ */
5166
+ StartTime?: number
5167
+
5168
+ /**
5169
+ * 通知结束时间 一天开始的秒数
5170
+ 注意:此字段可能返回 null,表示取不到有效值。
5171
+ */
5172
+ EndTime?: number
5173
+
5174
+ /**
5175
+ * 通知周期 1-7表示周一到周日
5176
+ 注意:此字段可能返回 null,表示取不到有效值。
5177
+ */
5178
+ Weekday?: Array<number>
4602
5179
  }
4603
5180
 
4604
5181
  /**
@@ -4857,44 +5434,13 @@ export interface DeleteAlarmPolicyResponse {
4857
5434
  }
4858
5435
 
4859
5436
  /**
4860
- * 云监控告警通知模板 - 回调通知详情
5437
+ * DeletePrometheusScrapeJobs返回参数结构体
4861
5438
  */
4862
- export interface URLNotice {
4863
- /**
4864
- * 回调 url(限长256字符)
4865
- 注意:此字段可能返回 null,表示取不到有效值。
4866
- */
4867
- URL: string
4868
-
4869
- /**
4870
- * 是否通过验证 0=否 1=是
4871
- 注意:此字段可能返回 null,表示取不到有效值。
4872
- */
4873
- IsValid?: number
4874
-
4875
- /**
4876
- * 验证码
4877
- 注意:此字段可能返回 null,表示取不到有效值。
4878
- */
4879
- ValidationCode?: string
4880
-
4881
- /**
4882
- * 通知开始时间 一天开始的秒数
4883
- 注意:此字段可能返回 null,表示取不到有效值。
4884
- */
4885
- StartTime?: number
4886
-
4887
- /**
4888
- * 通知结束时间 一天开始的秒数
4889
- 注意:此字段可能返回 null,表示取不到有效值。
4890
- */
4891
- EndTime?: number
4892
-
5439
+ export interface DeletePrometheusScrapeJobsResponse {
4893
5440
  /**
4894
- * 通知周期 1-7表示周一到周日
4895
- 注意:此字段可能返回 null,表示取不到有效值。
4896
- */
4897
- Weekday?: Array<number>
5441
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5442
+ */
5443
+ RequestId?: string
4898
5444
  }
4899
5445
 
4900
5446
  /**
@@ -5129,6 +5675,76 @@ export interface DescribeStatisticDataResponse {
5129
5675
  RequestId?: string
5130
5676
  }
5131
5677
 
5678
+ /**
5679
+ * CreatePrometheusScrapeJob请求参数结构体
5680
+ */
5681
+ export interface CreatePrometheusScrapeJobRequest {
5682
+ /**
5683
+ * 实例 ID
5684
+ */
5685
+ InstanceId: string
5686
+
5687
+ /**
5688
+ * Agent ID
5689
+ */
5690
+ AgentId: string
5691
+
5692
+ /**
5693
+ * 任务内容
5694
+ */
5695
+ Config?: string
5696
+ }
5697
+
5698
+ /**
5699
+ * Prometheus 聚合规则响应结构体内信息
5700
+ */
5701
+ export interface RecordingRuleSet {
5702
+ /**
5703
+ * 规则 ID
5704
+ */
5705
+ RuleId: string
5706
+
5707
+ /**
5708
+ * 规则状态码
5709
+ */
5710
+ RuleState: number
5711
+
5712
+ /**
5713
+ * 规则名称
5714
+ */
5715
+ Name: string
5716
+
5717
+ /**
5718
+ * 规则内容组
5719
+ */
5720
+ Group: string
5721
+
5722
+ /**
5723
+ * 规则数量
5724
+ */
5725
+ Total: number
5726
+
5727
+ /**
5728
+ * 规则创建时间
5729
+ */
5730
+ CreatedAt: string
5731
+
5732
+ /**
5733
+ * 规则最近更新时间
5734
+ */
5735
+ UpdatedAt: string
5736
+ }
5737
+
5738
+ /**
5739
+ * CreateExporterIntegration返回参数结构体
5740
+ */
5741
+ export interface CreateExporterIntegrationResponse {
5742
+ /**
5743
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5744
+ */
5745
+ RequestId?: string
5746
+ }
5747
+
5132
5748
  /**
5133
5749
  * DescribePolicyConditionList.EventMetric
5134
5750
  */
@@ -5475,6 +6091,39 @@ export interface DescribePolicyGroupListGroup {
5475
6091
  IsUnionRule: number
5476
6092
  }
5477
6093
 
6094
+ /**
6095
+ * UpdateExporterIntegration请求参数结构体
6096
+ */
6097
+ export interface UpdateExporterIntegrationRequest {
6098
+ /**
6099
+ * 实例 ID
6100
+ */
6101
+ InstanceId: string
6102
+
6103
+ /**
6104
+ * Kubernetes 集群类型,取值如下:
6105
+ <li> 1= 容器集群(TKE) </li>
6106
+ <li> 2=弹性集群<EKS> </li>
6107
+ <li> 3= Prometheus管理的弹性集群<MEKS> </li>
6108
+ */
6109
+ KubeType: number
6110
+
6111
+ /**
6112
+ * 集群 ID
6113
+ */
6114
+ ClusterId: string
6115
+
6116
+ /**
6117
+ * 类型
6118
+ */
6119
+ Kind: string
6120
+
6121
+ /**
6122
+ * 配置内容
6123
+ */
6124
+ Content: string
6125
+ }
6126
+
5478
6127
  /**
5479
6128
  * DescribeAccidentEventList请求参数结构体
5480
6129
  */
@@ -5540,6 +6189,22 @@ export interface DescribeAccidentEventListRequest {
5540
6189
  AffectResource?: string
5541
6190
  }
5542
6191
 
6192
+ /**
6193
+ * CreateRecordingRule返回参数结构体
6194
+ */
6195
+ export interface CreateRecordingRuleResponse {
6196
+ /**
6197
+ * 规则 ID
6198
+ 注意:此字段可能返回 null,表示取不到有效值。
6199
+ */
6200
+ RuleId: string
6201
+
6202
+ /**
6203
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
6204
+ */
6205
+ RequestId?: string
6206
+ }
6207
+
5543
6208
  /**
5544
6209
  * 指标名称和值的封装
5545
6210
  */
@@ -5617,28 +6282,45 @@ export interface DescribeBindingPolicyObjectListInstanceGroup {
5617
6282
  }
5618
6283
 
5619
6284
  /**
5620
- * DescribeProductEventList返回的Events里的GroupInfo
6285
+ * UpdateServiceDiscovery请求参数结构体
5621
6286
  */
5622
- export interface DescribeProductEventListEventsGroupInfo {
6287
+ export interface UpdateServiceDiscoveryRequest {
5623
6288
  /**
5624
- * 策略ID
5625
- 注意:此字段可能返回 null,表示取不到有效值。
5626
- */
5627
- GroupId: number
6289
+ * Prometheus 实例 ID
6290
+ */
6291
+ InstanceId: string
5628
6292
 
5629
6293
  /**
5630
- * 策略名
5631
- 注意:此字段可能返回 null,表示取不到有效值。
5632
- */
5633
- GroupName: string
5634
- }
6294
+ * <li>类型是 TKE,为对应的腾讯云容器服务集群 ID</li>
6295
+ */
6296
+ KubeClusterId: string
5635
6297
 
5636
- /**
5637
- * DeleteAlertRules请求参数结构体
5638
- */
5639
- export interface DeleteAlertRulesRequest {
5640
6298
  /**
5641
- * 规则 ID 列表
6299
+ * 用户 Kubernetes 集群类型:
6300
+ <li> 1 = 容器服务集群(TKE) </li>
6301
+ */
6302
+ KubeType: number
6303
+
6304
+ /**
6305
+ * 服务发现类型,取值如下:
6306
+ <li> 1 = ServiceMonitor</li>
6307
+ <li> 2 = PodMonitor</li>
6308
+ <li> 3 = JobMonitor</li>
6309
+ */
6310
+ Type: number
6311
+
6312
+ /**
6313
+ * 服务发现配置信息
6314
+ */
6315
+ Yaml: string
6316
+ }
6317
+
6318
+ /**
6319
+ * DeleteAlertRules请求参数结构体
6320
+ */
6321
+ export interface DeleteAlertRulesRequest {
6322
+ /**
6323
+ * 规则 ID 列表
5642
6324
  */
5643
6325
  RuleIds: Array<string>
5644
6326
 
@@ -5663,6 +6345,53 @@ export interface DescribeAlarmNoticeRequest {
5663
6345
  NoticeId: string
5664
6346
  }
5665
6347
 
6348
+ /**
6349
+ * UninstallGrafanaDashboard请求参数结构体
6350
+ */
6351
+ export interface UninstallGrafanaDashboardRequest {
6352
+ /**
6353
+ * 实例 ID
6354
+ */
6355
+ InstanceId: string
6356
+
6357
+ /**
6358
+ * Prometheus 集成项 Code,删除对应的 Dashboard,Code 如下:
6359
+ <li>spring_mvc</li>
6360
+ <li>mysql</li>
6361
+ <li>go</li>
6362
+ <li>redis</li>
6363
+ <li>jvm</li>
6364
+ <li>pgsql</li>
6365
+ <li>mongo</li>
6366
+ <li>kafka</li>
6367
+ <li>es</li>
6368
+ <li>flink</li>
6369
+ <li>blackbox</li>
6370
+ <li>consule</li>
6371
+ <li>memcached</li>
6372
+ <li>zk</li>
6373
+ <li>tps</li>
6374
+ <li>istio</li>
6375
+ <li>etcd</li>
6376
+ */
6377
+ IntegrationCodes?: Array<string>
6378
+ }
6379
+
6380
+ /**
6381
+ * CreatePrometheusAgent请求参数结构体
6382
+ */
6383
+ export interface CreatePrometheusAgentRequest {
6384
+ /**
6385
+ * 实例 ID
6386
+ */
6387
+ InstanceId: string
6388
+
6389
+ /**
6390
+ * Agent 名称
6391
+ */
6392
+ Name: string
6393
+ }
6394
+
5666
6395
  /**
5667
6396
  * DescribeBindingPolicyObjectList接口的Dimension
5668
6397
  */
@@ -5907,6 +6636,44 @@ export interface ReceiverInfo {
5907
6636
  ReceiveLanguage?: string
5908
6637
  }
5909
6638
 
6639
+ /**
6640
+ * DescribeRecordingRules请求参数结构体
6641
+ */
6642
+ export interface DescribeRecordingRulesRequest {
6643
+ /**
6644
+ * Prometheus 实例 ID
6645
+ */
6646
+ InstanceId: string
6647
+
6648
+ /**
6649
+ * 返回数量,默认为 20,最大值为 100
6650
+ */
6651
+ Limit?: number
6652
+
6653
+ /**
6654
+ * 偏移量,默认为 0
6655
+ */
6656
+ Offset?: number
6657
+
6658
+ /**
6659
+ * 规则 ID
6660
+ */
6661
+ RuleId?: string
6662
+
6663
+ /**
6664
+ * 规则状态码,取值如下:
6665
+ <li>1=RuleDeleted</li>
6666
+ <li>2=RuleEnabled</li>
6667
+ <li>3=RuleDisabled</li>
6668
+ */
6669
+ RuleState?: number
6670
+
6671
+ /**
6672
+ * 规则名称
6673
+ */
6674
+ Name?: string
6675
+ }
6676
+
5910
6677
  /**
5911
6678
  * UnBindingAllPolicyObject请求参数结构体
5912
6679
  */
@@ -5983,15 +6750,79 @@ export interface DescribePolicyGroupInfoEventCondition {
5983
6750
  }
5984
6751
 
5985
6752
  /**
5986
- * SendCustomAlarmMsg返回参数结构体
6753
+ * prometheus 报警规则 KV 参数
5987
6754
  */
5988
- export interface SendCustomAlarmMsgResponse {
6755
+ export interface PrometheusRuleKV {
6756
+ /**
6757
+ * 键
6758
+ */
6759
+ Key: string
6760
+
6761
+ /**
6762
+ * 值
6763
+ */
6764
+ Value: string
6765
+ }
6766
+
6767
+ /**
6768
+ * ModifyAlarmPolicyStatus返回参数结构体
6769
+ */
6770
+ export interface ModifyAlarmPolicyStatusResponse {
5989
6771
  /**
5990
6772
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5991
6773
  */
5992
6774
  RequestId?: string
5993
6775
  }
5994
6776
 
6777
+ /**
6778
+ * GetPrometheusAgentManagementCommand返回参数结构体
6779
+ */
6780
+ export interface GetPrometheusAgentManagementCommandResponse {
6781
+ /**
6782
+ * Agent 管理命令
6783
+ */
6784
+ Command?: ManagementCommand
6785
+
6786
+ /**
6787
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
6788
+ */
6789
+ RequestId?: string
6790
+ }
6791
+
6792
+ /**
6793
+ * UpdateRecordingRule请求参数结构体
6794
+ */
6795
+ export interface UpdateRecordingRuleRequest {
6796
+ /**
6797
+ * 聚合规则名称
6798
+ */
6799
+ Name: string
6800
+
6801
+ /**
6802
+ * 聚合规则组内容,格式为 yaml,通过 base64 进行编码。
6803
+ */
6804
+ Group: string
6805
+
6806
+ /**
6807
+ * Prometheus 实例 ID
6808
+ */
6809
+ InstanceId: string
6810
+
6811
+ /**
6812
+ * Prometheus 聚合规则 ID
6813
+ */
6814
+ RuleId: string
6815
+
6816
+ /**
6817
+ * 规则状态码,取值如下:
6818
+ <li>1=RuleDeleted</li>
6819
+ <li>2=RuleEnabled</li>
6820
+ <li>3=RuleDisabled</li>
6821
+ 默认状态码为 2 启用。
6822
+ */
6823
+ RuleState?: number
6824
+ }
6825
+
5995
6826
  /**
5996
6827
  * 告警策略指标触发条件
5997
6828
  */
@@ -6102,6 +6933,205 @@ export interface DescribePolicyConditionListCondition {
6102
6933
  SupportRegions: Array<string>
6103
6934
  }
6104
6935
 
6936
+ /**
6937
+ * Prometheus 服务响应体
6938
+ */
6939
+ export interface PrometheusInstancesItem {
6940
+ /**
6941
+ * 实例ID。
6942
+ */
6943
+ InstanceId: string
6944
+
6945
+ /**
6946
+ * 实例名称。
6947
+ */
6948
+ InstanceName: string
6949
+
6950
+ /**
6951
+ * 实例计费模式。取值范围:
6952
+ <ul>
6953
+ <li>2:包年包月</li>
6954
+ <li>3:按量</li>
6955
+ </ul>
6956
+ */
6957
+ InstanceChargeType: number
6958
+
6959
+ /**
6960
+ * 地域 ID
6961
+ */
6962
+ RegionId: number
6963
+
6964
+ /**
6965
+ * 可用区
6966
+ */
6967
+ Zone: string
6968
+
6969
+ /**
6970
+ * VPC ID
6971
+ */
6972
+ VpcId: string
6973
+
6974
+ /**
6975
+ * 子网 ID
6976
+ */
6977
+ SubnetId: string
6978
+
6979
+ /**
6980
+ * 存储周期
6981
+ 注意:此字段可能返回 null,表示取不到有效值。
6982
+ */
6983
+ DataRetentionTime: number
6984
+
6985
+ /**
6986
+ * 实例业务状态。取值范围:
6987
+ <ul>
6988
+ <li>1:正在创建</li>
6989
+ <li>2:运行中</li>
6990
+ <li>3:异常</li>
6991
+ <li>4:重建中</li>
6992
+ <li>5:销毁中</li>
6993
+ <li>6:已停服</li>
6994
+ <li>8:欠费停服中</li>
6995
+ <li>9:欠费已停服</li>
6996
+ </ul>
6997
+ */
6998
+ InstanceStatus: number
6999
+
7000
+ /**
7001
+ * Grafana 面板 URL
7002
+ 注意:此字段可能返回 null,表示取不到有效值。
7003
+ */
7004
+ GrafanaURL: string
7005
+
7006
+ /**
7007
+ * 创建时间
7008
+ */
7009
+ CreatedAt: string
7010
+
7011
+ /**
7012
+ * 是否开启 Grafana
7013
+ <li>0:不开启</li>
7014
+ <li>1:开启</li>
7015
+ */
7016
+ EnableGrafana: number
7017
+
7018
+ /**
7019
+ * 实例IPV4地址
7020
+ 注意:此字段可能返回 null,表示取不到有效值。
7021
+ */
7022
+ IPv4Address: string
7023
+
7024
+ /**
7025
+ * 实例关联的标签列表。
7026
+ 注意:此字段可能返回 null,表示取不到有效值。
7027
+ */
7028
+ TagSpecification: Array<PrometheusTag>
7029
+
7030
+ /**
7031
+ * 购买的实例过期时间
7032
+ 注意:此字段可能返回 null,表示取不到有效值。
7033
+ */
7034
+ ExpireTime: string
7035
+
7036
+ /**
7037
+ * 计费状态
7038
+ <ul>
7039
+ <li>1:正常</li>
7040
+ <li>2:过期</li>
7041
+ <li>3:销毁</li>
7042
+ <li>4:分配中</li>
7043
+ <li>5:分配失败</li>
7044
+ </ul>
7045
+ 注意:此字段可能返回 null,表示取不到有效值。
7046
+ */
7047
+ ChargeStatus: number
7048
+
7049
+ /**
7050
+ * 规格名称
7051
+ 注意:此字段可能返回 null,表示取不到有效值。
7052
+ */
7053
+ SpecName: string
7054
+
7055
+ /**
7056
+ * 自动续费标记
7057
+ <ul>
7058
+ <li>0:不自动续费</li>
7059
+ <li>1:开启自动续费</li>
7060
+ <li>2:禁止自动续费</li>
7061
+ <li>-1:无效</ii>
7062
+ </ul>
7063
+ 注意:此字段可能返回 null,表示取不到有效值。
7064
+ */
7065
+ AutoRenewFlag: number
7066
+
7067
+ /**
7068
+ * 是否快过期
7069
+ <ul>
7070
+ <li>0:否</li>
7071
+ <li>1:快过期</li>
7072
+ </ul>
7073
+ 注意:此字段可能返回 null,表示取不到有效值。
7074
+ */
7075
+ IsNearExpire: number
7076
+
7077
+ /**
7078
+ * 数据写入需要的 Token
7079
+ 注意:此字段可能返回 null,表示取不到有效值。
7080
+ */
7081
+ AuthToken: string
7082
+
7083
+ /**
7084
+ * Prometheus Remote Write 的地址
7085
+ 注意:此字段可能返回 null,表示取不到有效值。
7086
+ */
7087
+ RemoteWrite: string
7088
+
7089
+ /**
7090
+ * Prometheus HTTP Api 根地址
7091
+ 注意:此字段可能返回 null,表示取不到有效值。
7092
+ */
7093
+ ApiRootPath: string
7094
+
7095
+ /**
7096
+ * Proxy 的地址
7097
+ 注意:此字段可能返回 null,表示取不到有效值。
7098
+ */
7099
+ ProxyAddress: string
7100
+
7101
+ /**
7102
+ * Grafana 运行状态
7103
+ <ul>
7104
+ <li>1:正在创建</li>
7105
+ <li>2:运行中</li>
7106
+ <li>3:异常</li>
7107
+ <li>4:重启中</li>
7108
+ <li>5:销毁中</li>
7109
+ <li>6:已停机</li>
7110
+ <li>7:已删除</li>
7111
+ </ul>
7112
+ 注意:此字段可能返回 null,表示取不到有效值。
7113
+ */
7114
+ GrafanaStatus: number
7115
+
7116
+ /**
7117
+ * Grafana IP 白名单列表,使用英文分号分隔
7118
+ 注意:此字段可能返回 null,表示取不到有效值。
7119
+ */
7120
+ GrafanaIpWhiteList: string
7121
+
7122
+ /**
7123
+ * 实例的授权信息
7124
+ 注意:此字段可能返回 null,表示取不到有效值。
7125
+ */
7126
+ Grant: PrometheusInstanceGrantInfo
7127
+
7128
+ /**
7129
+ * 绑定的 Grafana 实例 ID
7130
+ 注意:此字段可能返回 null,表示取不到有效值。
7131
+ */
7132
+ GrafanaInstanceId: string
7133
+ }
7134
+
6105
7135
  /**
6106
7136
  * DeleteServiceDiscovery请求参数结构体
6107
7137
  */
@@ -6137,14 +7167,20 @@ export interface DeleteServiceDiscoveryRequest {
6137
7167
  }
6138
7168
 
6139
7169
  /**
6140
- * 告警策略事件触发条件
7170
+ * DescribeProductEventList返回的Events里的GroupInfo
6141
7171
  */
6142
- export interface AlarmPolicyEventCondition {
7172
+ export interface DescribeProductEventListEventsGroupInfo {
6143
7173
  /**
6144
- * 告警触发条件列表
7174
+ * 策略ID
6145
7175
  注意:此字段可能返回 null,表示取不到有效值。
6146
7176
  */
6147
- Rules: Array<AlarmPolicyRule>
7177
+ GroupId: number
7178
+
7179
+ /**
7180
+ * 策略名
7181
+ 注意:此字段可能返回 null,表示取不到有效值。
7182
+ */
7183
+ GroupName: string
6148
7184
  }
6149
7185
 
6150
7186
  /**
@@ -6282,6 +7318,16 @@ export interface SetDefaultAlarmPolicyResponse {
6282
7318
  RequestId?: string
6283
7319
  }
6284
7320
 
7321
+ /**
7322
+ * UninstallGrafanaDashboard返回参数结构体
7323
+ */
7324
+ export interface UninstallGrafanaDashboardResponse {
7325
+ /**
7326
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
7327
+ */
7328
+ RequestId?: string
7329
+ }
7330
+
6285
7331
  /**
6286
7332
  * BindingPolicyObject返回参数结构体
6287
7333
  */