tencentcloud-sdk-nodejs 4.0.368 → 4.0.371

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 +476 -0
  2. package/SERVICE_CHANGELOG.md +503 -79
  3. package/package.json +1 -1
  4. package/products.md +20 -20
  5. package/src/common/sdk_version.ts +1 -1
  6. package/src/services/cii/v20210408/cii_models.ts +5 -0
  7. package/src/services/cme/v20191029/cme_client.ts +3 -1
  8. package/src/services/cme/v20191029/cme_models.ts +21 -0
  9. package/src/services/cpdp/v20190820/cpdp_client.ts +163 -38
  10. package/src/services/cpdp/v20190820/cpdp_models.ts +2091 -464
  11. package/src/services/eb/v20210416/eb_models.ts +5 -5
  12. package/src/services/essbasic/v20210526/essbasic_models.ts +13 -14
  13. package/src/services/gaap/v20180529/gaap_models.ts +6 -0
  14. package/src/services/lighthouse/v20200324/lighthouse_client.ts +2 -4
  15. package/src/services/mmps/v20200710/mmps_client.ts +20 -6
  16. package/src/services/mmps/v20200710/mmps_models.ts +163 -0
  17. package/src/services/monitor/v20180724/monitor_client.ts +353 -60
  18. package/src/services/monitor/v20180724/monitor_models.ts +1577 -481
  19. package/src/services/mrs/v20200910/mrs_client.ts +2 -0
  20. package/src/services/mrs/v20200910/mrs_models.ts +106 -0
  21. package/src/services/ocr/v20181119/ocr_models.ts +11 -10
  22. package/src/services/postgres/v20170312/postgres_models.ts +2 -2
  23. package/src/services/tcbr/v20220217/tcbr_client.ts +22 -7
  24. package/src/services/tcbr/v20220217/tcbr_models.ts +212 -15
  25. package/src/services/tdmq/v20200217/tdmq_models.ts +27 -0
  26. package/src/services/teo/v20220106/teo_client.ts +4 -3
  27. package/src/services/teo/v20220106/teo_models.ts +132 -105
  28. package/src/services/tke/v20180525/tke_client.ts +13 -1
  29. package/src/services/tke/v20180525/tke_models.ts +62 -7
  30. package/src/services/tse/v20201207/tse_client.ts +75 -23
  31. package/src/services/tse/v20201207/tse_models.ts +417 -157
  32. package/src/services/vpc/v20170312/vpc_models.ts +5 -5
  33. package/tencentcloud/common/sdk_version.d.ts +1 -1
  34. package/tencentcloud/common/sdk_version.js +1 -1
  35. package/tencentcloud/services/cii/v20210408/cii_models.d.ts +4 -0
  36. package/tencentcloud/services/cme/v20191029/cme_client.d.ts +2 -1
  37. package/tencentcloud/services/cme/v20191029/cme_client.js +2 -1
  38. package/tencentcloud/services/cme/v20191029/cme_models.d.ts +18 -0
  39. package/tencentcloud/services/cpdp/v20190820/cpdp_client.d.ts +45 -9
  40. package/tencentcloud/services/cpdp/v20190820/cpdp_client.js +66 -12
  41. package/tencentcloud/services/cpdp/v20190820/cpdp_models.d.ts +1730 -352
  42. package/tencentcloud/services/eb/v20210416/eb_models.d.ts +4 -4
  43. package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +10 -11
  44. package/tencentcloud/services/gaap/v20180529/gaap_models.d.ts +5 -0
  45. package/tencentcloud/services/lighthouse/v20200324/lighthouse_client.d.ts +2 -4
  46. package/tencentcloud/services/lighthouse/v20200324/lighthouse_client.js +2 -4
  47. package/tencentcloud/services/mmps/v20200710/mmps_client.d.ts +7 -3
  48. package/tencentcloud/services/mmps/v20200710/mmps_client.js +9 -3
  49. package/tencentcloud/services/mmps/v20200710/mmps_models.d.ts +135 -0
  50. package/tencentcloud/services/monitor/v20180724/monitor_client.d.ts +112 -16
  51. package/tencentcloud/services/monitor/v20180724/monitor_client.js +164 -20
  52. package/tencentcloud/services/monitor/v20180724/monitor_models.d.ts +1389 -444
  53. package/tencentcloud/services/mrs/v20200910/mrs_models.d.ts +90 -0
  54. package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +11 -10
  55. package/tencentcloud/services/postgres/v20170312/postgres_models.d.ts +2 -2
  56. package/tencentcloud/services/tcbr/v20220217/tcbr_client.d.ts +7 -3
  57. package/tencentcloud/services/tcbr/v20220217/tcbr_client.js +9 -3
  58. package/tencentcloud/services/tcbr/v20220217/tcbr_models.d.ts +177 -13
  59. package/tencentcloud/services/tdmq/v20200217/tdmq_models.d.ts +22 -0
  60. package/tencentcloud/services/teo/v20220106/teo_client.d.ts +1 -1
  61. package/tencentcloud/services/teo/v20220106/teo_models.d.ts +111 -88
  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 +53 -7
  65. package/tencentcloud/services/tse/v20201207/tse_client.d.ts +21 -5
  66. package/tencentcloud/services/tse/v20201207/tse_client.js +30 -6
  67. package/tencentcloud/services/tse/v20201207/tse_models.d.ts +366 -144
  68. package/tencentcloud/services/vpc/v20170312/vpc_models.d.ts +5 -5
  69. package/test/cpdp.v20190820.test.js +98 -8
  70. package/test/mmps.v20200710.test.js +12 -2
  71. package/test/monitor.v20180724.test.js +250 -10
  72. package/test/tcbr.v20220217.test.js +12 -2
  73. package/test/tke.v20180525.test.js +10 -0
  74. package/test/tse.v20201207.test.js +44 -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,56 @@ 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
+
776
912
  /**
777
913
  * ModifyAlarmPolicyNotice请求参数结构体
778
914
  */
@@ -861,242 +997,135 @@ export interface EventCondition {
861
997
  }
862
998
 
863
999
  /**
864
- * Prometheus 服务响应体
1000
+ * 对业务指标的单位及支持统计周期的描述
865
1001
  */
866
- export interface PrometheusInstancesItem {
1002
+ export interface MetricSet {
867
1003
  /**
868
- * 实例ID。
1004
+ * 命名空间,每个云产品会有一个命名空间
869
1005
  */
870
- InstanceId: string
1006
+ Namespace: string
871
1007
 
872
1008
  /**
873
- * 实例名称。
1009
+ * 指标名称
874
1010
  */
875
- InstanceName: string
1011
+ MetricName: string
876
1012
 
877
1013
  /**
878
- * 实例计费模式。取值范围:
879
- <ul>
880
- <li>2:包年包月</li>
881
- <li>3:按量</li>
882
- </ul>
883
- */
884
- InstanceChargeType: number
1014
+ * 指标使用的单位
1015
+ */
1016
+ Unit: string
885
1017
 
886
1018
  /**
887
- * 地域 ID
1019
+ * 指标使用的单位
888
1020
  */
889
- RegionId: number
1021
+ UnitCname: string
890
1022
 
891
1023
  /**
892
- * 可用区
1024
+ * 指标支持的统计周期,单位是秒,如60、300
893
1025
  */
894
- Zone: string
1026
+ Period: Array<number>
895
1027
 
896
1028
  /**
897
- * VPC ID
1029
+ * 统计周期内指标方式
898
1030
  */
899
- VpcId: string
1031
+ Periods: Array<PeriodsSt>
900
1032
 
901
1033
  /**
902
- * 子网 ID
1034
+ * 统计指标含义解释
903
1035
  */
904
- SubnetId: string
1036
+ Meaning: MetricObjectMeaning
905
1037
 
906
1038
  /**
907
- * 存储周期
908
- 注意:此字段可能返回 null,表示取不到有效值。
909
- */
910
- DataRetentionTime: number
1039
+ * 维度描述信息
1040
+ */
1041
+ Dimensions: Array<DimensionsDesc>
911
1042
 
912
1043
  /**
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>
1044
+ * 指标中文名
1045
+ 注意:此字段可能返回 null,表示取不到有效值。
924
1046
  */
925
- InstanceStatus: number
1047
+ MetricCName: string
926
1048
 
927
1049
  /**
928
- * Grafana 面板 URL
1050
+ * 指标英文名
929
1051
  注意:此字段可能返回 null,表示取不到有效值。
930
1052
  */
931
- GrafanaURL: string
1053
+ MetricEName: string
1054
+ }
932
1055
 
1056
+ /**
1057
+ * DescribeConditionsTemplateList请求参数结构体
1058
+ */
1059
+ export interface DescribeConditionsTemplateListRequest {
933
1060
  /**
934
- * 创建时间
1061
+ * 固定值,为"monitor"
935
1062
  */
936
- CreatedAt: string
1063
+ Module: string
937
1064
 
938
1065
  /**
939
- * 是否开启 Grafana
940
- <li>0:不开启</li>
941
- <li>1:开启</li>
942
- */
943
- EnableGrafana: number
1066
+ * 视图名,由 [DescribeAllNamespaces](https://cloud.tencent.com/document/product/248/48683) 获得。对于云产品监控,取接口出参的 QceNamespacesNew.N.Id,例如 cvm_device
1067
+ */
1068
+ ViewName?: string
944
1069
 
945
1070
  /**
946
- * 实例IPV4地址
947
- 注意:此字段可能返回 null,表示取不到有效值。
948
- */
949
- IPv4Address: string
1071
+ * 根据触发条件模板名称过滤查询
1072
+ */
1073
+ GroupName?: string
950
1074
 
951
1075
  /**
952
- * 实例关联的标签列表。
953
- 注意:此字段可能返回 null,表示取不到有效值。
954
- */
955
- TagSpecification: Array<PrometheusTag>
1076
+ * 根据触发条件模板ID过滤查询
1077
+ */
1078
+ GroupID?: string
956
1079
 
957
1080
  /**
958
- * 购买的实例过期时间
959
- 注意:此字段可能返回 null,表示取不到有效值。
960
- */
961
- ExpireTime: string
1081
+ * 分页参数,每页返回的数量,取值1~100,默认20
1082
+ */
1083
+ Limit?: number
962
1084
 
963
1085
  /**
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
1086
+ * 分页参数,页偏移量,从0开始计数,默认0
1087
+ */
1088
+ Offset?: number
975
1089
 
976
1090
  /**
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
1054
-
1055
- /**
1056
- * 绑定的 Grafana 实例 ID
1057
- 注意:此字段可能返回 null,表示取不到有效值。
1058
- */
1059
- GrafanaInstanceId: string
1060
- }
1091
+ * 指定按更新时间的排序方式,asc=升序, desc=降序
1092
+ */
1093
+ UpdateTimeOrder?: string
1094
+ }
1061
1095
 
1062
1096
  /**
1063
- * DescribeConditionsTemplateList请求参数结构体
1097
+ * DescribePrometheusScrapeJobs请求参数结构体
1064
1098
  */
1065
- export interface DescribeConditionsTemplateListRequest {
1066
- /**
1067
- * 固定值,为"monitor"
1068
- */
1069
- Module: string
1070
-
1099
+ export interface DescribePrometheusScrapeJobsRequest {
1071
1100
  /**
1072
- * 视图名,由 [DescribeAllNamespaces](https://cloud.tencent.com/document/product/248/48683) 获得。对于云产品监控,取接口出参的 QceNamespacesNew.N.Id,例如 cvm_device
1101
+ * 实例 ID
1073
1102
  */
1074
- ViewName?: string
1103
+ InstanceId: string
1075
1104
 
1076
1105
  /**
1077
- * 根据触发条件模板名称过滤查询
1106
+ * Agent ID
1078
1107
  */
1079
- GroupName?: string
1108
+ AgentId: string
1080
1109
 
1081
1110
  /**
1082
- * 根据触发条件模板ID过滤查询
1111
+ * 任务名
1083
1112
  */
1084
- GroupID?: string
1113
+ Name?: string
1085
1114
 
1086
1115
  /**
1087
- * 分页参数,每页返回的数量,取值1~100,默认20
1116
+ * 任务 ID 列表
1088
1117
  */
1089
- Limit?: number
1118
+ JobIds?: Array<string>
1090
1119
 
1091
1120
  /**
1092
- * 分页参数,页偏移量,从0开始计数,默认0
1121
+ * 偏移量,默认为0
1093
1122
  */
1094
1123
  Offset?: number
1095
1124
 
1096
1125
  /**
1097
- * 指定按更新时间的排序方式,asc=升序, desc=降序
1126
+ * 返回数量,默认为20,最大值为100
1098
1127
  */
1099
- UpdateTimeOrder?: string
1128
+ Limit?: number
1100
1129
  }
1101
1130
 
1102
1131
  /**
@@ -1155,6 +1184,73 @@ export interface DescribeBaseMetricsResponse {
1155
1184
  RequestId?: string
1156
1185
  }
1157
1186
 
1187
+ /**
1188
+ * Prometheus 抓取任务
1189
+ */
1190
+ export interface PrometheusScrapeJob {
1191
+ /**
1192
+ * 任务名
1193
+ 注意:此字段可能返回 null,表示取不到有效值。
1194
+ */
1195
+ Name: string
1196
+
1197
+ /**
1198
+ * Agent ID
1199
+ */
1200
+ AgentId: string
1201
+
1202
+ /**
1203
+ * 任务 ID
1204
+ */
1205
+ JobId: string
1206
+
1207
+ /**
1208
+ * 配置
1209
+ 注意:此字段可能返回 null,表示取不到有效值。
1210
+ */
1211
+ Config: string
1212
+ }
1213
+
1214
+ /**
1215
+ * CreatePrometheusMultiTenantInstancePostPayMode请求参数结构体
1216
+ */
1217
+ export interface CreatePrometheusMultiTenantInstancePostPayModeRequest {
1218
+ /**
1219
+ * 实例名
1220
+ */
1221
+ InstanceName: string
1222
+
1223
+ /**
1224
+ * VPC ID
1225
+ */
1226
+ VpcId: string
1227
+
1228
+ /**
1229
+ * 子网 ID
1230
+ */
1231
+ SubnetId: string
1232
+
1233
+ /**
1234
+ * 数据存储时间(单位天),限制值为15,30,45之一
1235
+ */
1236
+ DataRetentionTime: number
1237
+
1238
+ /**
1239
+ * 可用区
1240
+ */
1241
+ Zone: string
1242
+
1243
+ /**
1244
+ * 实例的标签
1245
+ */
1246
+ TagSpecification?: Array<PrometheusTag>
1247
+
1248
+ /**
1249
+ * 需要关联的 Grafana 实例
1250
+ */
1251
+ GrafanaInstanceId?: string
1252
+ }
1253
+
1158
1254
  /**
1159
1255
  * DescribeMetricData出参
1160
1256
  */
@@ -1370,6 +1466,55 @@ export interface SendCustomAlarmMsgRequest {
1370
1466
  Msg: string
1371
1467
  }
1372
1468
 
1469
+ /**
1470
+ * CreateRecordingRule请求参数结构体
1471
+ */
1472
+ export interface CreateRecordingRuleRequest {
1473
+ /**
1474
+ * 聚合规则名称
1475
+ */
1476
+ Name: string
1477
+
1478
+ /**
1479
+ * 聚合规则组内容,格式为 yaml
1480
+ */
1481
+ Group: string
1482
+
1483
+ /**
1484
+ * Prometheus 实例 ID
1485
+ */
1486
+ InstanceId: string
1487
+
1488
+ /**
1489
+ * 规则状态码,取值如下:
1490
+ <li>1=RuleDeleted</li>
1491
+ <li>2=RuleEnabled</li>
1492
+ <li>3=RuleDisabled</li>
1493
+ 默认状态码为 2 启用。
1494
+ */
1495
+ RuleState?: number
1496
+ }
1497
+
1498
+ /**
1499
+ * ModifyPrometheusInstanceAttributes请求参数结构体
1500
+ */
1501
+ export interface ModifyPrometheusInstanceAttributesRequest {
1502
+ /**
1503
+ * 实例名称
1504
+ */
1505
+ InstanceName: string
1506
+
1507
+ /**
1508
+ * 实例 ID
1509
+ */
1510
+ InstanceId: string
1511
+
1512
+ /**
1513
+ * 存储时长(取值为 15、30、45。此参数不适用于包年包月实例)
1514
+ */
1515
+ DataRetentionTime?: number
1516
+ }
1517
+
1373
1518
  /**
1374
1519
  * DescribePolicyConditionList.ConfigManual.Period
1375
1520
  */
@@ -1393,33 +1538,23 @@ export interface DescribePolicyConditionListConfigManualPeriod {
1393
1538
  }
1394
1539
 
1395
1540
  /**
1396
- * UnBindingPolicyObject请求参数结构体
1541
+ * 指标配置
1397
1542
  */
1398
- export interface UnBindingPolicyObjectRequest {
1399
- /**
1400
- * 固定值,为"monitor"
1401
- */
1402
- Module: string
1403
-
1404
- /**
1405
- * 策略组id,如传入 PolicyId 则该字段被忽略可传入任意值如 0
1406
- */
1407
- GroupId: number
1408
-
1543
+ export interface MetricConfig {
1409
1544
  /**
1410
- * 待删除对象实例的唯一id列表,UniqueId从调用[获取已绑定对象列表接口](https://cloud.tencent.com/document/api/248/40570)的出参的List中得到
1545
+ * 允许使用的运算符
1411
1546
  */
1412
- UniqueId: Array<string>
1547
+ Operator: Array<string>
1413
1548
 
1414
1549
  /**
1415
- * 实例分组id,如果按实例分组删除的话UniqueId参数是无效的
1550
+ * 允许配置的数据周期,以秒为单位
1416
1551
  */
1417
- InstanceGroupId?: number
1552
+ Period: Array<number>
1418
1553
 
1419
1554
  /**
1420
- * 告警策略ID,使用此字段时 GroupId 会被忽略
1555
+ * 允许配置的持续周期个数
1421
1556
  */
1422
- PolicyId?: string
1557
+ ContinuePeriod: Array<number>
1423
1558
  }
1424
1559
 
1425
1560
  /**
@@ -1509,20 +1644,19 @@ export interface DeletePolicyGroupResponse {
1509
1644
  }
1510
1645
 
1511
1646
  /**
1512
- * DescribeAccidentEventList返回参数结构体
1647
+ * DescribeConditionsTemplateList返回参数结构体
1513
1648
  */
1514
- export interface DescribeAccidentEventListResponse {
1649
+ export interface DescribeConditionsTemplateListResponse {
1515
1650
  /**
1516
- * 平台事件列表
1517
- 注意:此字段可能返回 null,表示取不到有效值。
1518
- */
1519
- Alarms?: Array<DescribeAccidentEventListAlarms>
1651
+ * 模板总数
1652
+ */
1653
+ Total: number
1520
1654
 
1521
1655
  /**
1522
- * 平台事件的总数
1656
+ * 模板列表
1523
1657
  注意:此字段可能返回 null,表示取不到有效值。
1524
1658
  */
1525
- Total?: number
1659
+ TemplateGroupList: Array<TemplateGroup>
1526
1660
 
1527
1661
  /**
1528
1662
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
@@ -1591,32 +1725,77 @@ export interface DimensionsDesc {
1591
1725
  }
1592
1726
 
1593
1727
  /**
1594
- * Prometheus 服务发现信息
1728
+ * ModifyAlarmPolicyStatus请求参数结构体
1595
1729
  */
1596
- export interface ServiceDiscoveryItem {
1730
+ export interface ModifyAlarmPolicyStatusRequest {
1597
1731
  /**
1598
- * 服务发现名称
1732
+ * 模块名,固定值 monitor
1599
1733
  */
1600
- Name: string
1734
+ Module: string
1601
1735
 
1602
1736
  /**
1603
- * 服务发现属于的 Namespace
1737
+ * 告警策略 ID
1604
1738
  */
1605
- Namespace: string
1739
+ PolicyId: string
1606
1740
 
1607
1741
  /**
1608
- * 服务发现类型: ServiceMonitor/PodMonitor
1742
+ * 启停状态 0=停用 1=启用
1609
1743
  */
1610
- Kind: string
1744
+ Enable: number
1745
+ }
1611
1746
 
1747
+ /**
1748
+ * CreatePrometheusMultiTenantInstancePostPayMode返回参数结构体
1749
+ */
1750
+ export interface CreatePrometheusMultiTenantInstancePostPayModeResponse {
1612
1751
  /**
1613
- * Namespace 选取方式
1614
- 注意:此字段可能返回 null,表示取不到有效值。
1615
- */
1616
- NamespaceSelector: string
1752
+ * 实例 ID
1753
+ */
1754
+ InstanceId: string
1617
1755
 
1618
1756
  /**
1619
- * Label 选取方式
1757
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1758
+ */
1759
+ RequestId?: string
1760
+ }
1761
+
1762
+ /**
1763
+ * UpdatePrometheusAgentStatus返回参数结构体
1764
+ */
1765
+ export interface UpdatePrometheusAgentStatusResponse {
1766
+ /**
1767
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1768
+ */
1769
+ RequestId?: string
1770
+ }
1771
+
1772
+ /**
1773
+ * Prometheus 服务发现信息
1774
+ */
1775
+ export interface ServiceDiscoveryItem {
1776
+ /**
1777
+ * 服务发现名称
1778
+ */
1779
+ Name: string
1780
+
1781
+ /**
1782
+ * 服务发现属于的 Namespace
1783
+ */
1784
+ Namespace: string
1785
+
1786
+ /**
1787
+ * 服务发现类型: ServiceMonitor/PodMonitor
1788
+ */
1789
+ Kind: string
1790
+
1791
+ /**
1792
+ * Namespace 选取方式
1793
+ 注意:此字段可能返回 null,表示取不到有效值。
1794
+ */
1795
+ NamespaceSelector: string
1796
+
1797
+ /**
1798
+ * Label 选取方式
1620
1799
  注意:此字段可能返回 null,表示取不到有效值。
1621
1800
  */
1622
1801
  Selector: string
@@ -1748,6 +1927,28 @@ export interface DescribeAlertRulesResponse {
1748
1927
  RequestId?: string
1749
1928
  }
1750
1929
 
1930
+ /**
1931
+ * DescribeBasicAlarmList返回参数结构体
1932
+ */
1933
+ export interface DescribeBasicAlarmListResponse {
1934
+ /**
1935
+ * 告警列表
1936
+ 注意:此字段可能返回 null,表示取不到有效值。
1937
+ */
1938
+ Alarms?: Array<DescribeBasicAlarmListAlarms>
1939
+
1940
+ /**
1941
+ * 总数
1942
+ 注意:此字段可能返回 null,表示取不到有效值。
1943
+ */
1944
+ Total?: number
1945
+
1946
+ /**
1947
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1948
+ */
1949
+ RequestId?: string
1950
+ }
1951
+
1751
1952
  /**
1752
1953
  * DescribeProductList请求参数结构体
1753
1954
  */
@@ -1788,6 +1989,16 @@ export interface PeriodsSt {
1788
1989
  StatType: Array<string>
1789
1990
  }
1790
1991
 
1992
+ /**
1993
+ * BindPrometheusManagedGrafana返回参数结构体
1994
+ */
1995
+ export interface BindPrometheusManagedGrafanaResponse {
1996
+ /**
1997
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1998
+ */
1999
+ RequestId?: string
2000
+ }
2001
+
1791
2002
  /**
1792
2003
  * 告警策略详情
1793
2004
  */
@@ -1995,23 +2206,36 @@ export interface AlarmPolicy {
1995
2206
  }
1996
2207
 
1997
2208
  /**
1998
- * CreateAlarmPolicy返回参数结构体
2209
+ * DeleteExporterIntegration请求参数结构体
1999
2210
  */
2000
- export interface CreateAlarmPolicyResponse {
2211
+ export interface DeleteExporterIntegrationRequest {
2001
2212
  /**
2002
- * 告警策略 ID
2213
+ * 实例 ID
2003
2214
  */
2004
- PolicyId: string
2215
+ InstanceId: string
2005
2216
 
2006
2217
  /**
2007
- * 可用于实例、实例组的绑定和解绑接口([BindingPolicyObject](https://cloud.tencent.com/document/product/248/40421)、[UnBindingAllPolicyObject](https://cloud.tencent.com/document/product/248/40568)、[UnBindingPolicyObject](https://cloud.tencent.com/document/product/248/40567))的策略 ID
2218
+ * Kubernetes 集群类型,取值如下:
2219
+ <li> 1= 容器集群(TKE) </li>
2220
+ <li> 2=弹性集群<EKS> </li>
2221
+ <li> 3= Prometheus管理的弹性集群<MEKS> </li>
2222
+ */
2223
+ KubeType: number
2224
+
2225
+ /**
2226
+ * 集群 ID
2008
2227
  */
2009
- OriginId: string
2228
+ ClusterId: string
2010
2229
 
2011
2230
  /**
2012
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2231
+ * 类型
2013
2232
  */
2014
- RequestId?: string
2233
+ Kind: string
2234
+
2235
+ /**
2236
+ * 名字
2237
+ */
2238
+ Name: string
2015
2239
  }
2016
2240
 
2017
2241
  /**
@@ -2024,6 +2248,41 @@ export interface ModifyAlarmReceiversResponse {
2024
2248
  RequestId?: string
2025
2249
  }
2026
2250
 
2251
+ /**
2252
+ * Prometheus Agent 管理命令行
2253
+ */
2254
+ export interface ManagementCommand {
2255
+ /**
2256
+ * Agent 安装命令
2257
+ 注意:此字段可能返回 null,表示取不到有效值。
2258
+ */
2259
+ Install: string
2260
+
2261
+ /**
2262
+ * Agent 重启命令
2263
+ 注意:此字段可能返回 null,表示取不到有效值。
2264
+ */
2265
+ Restart: string
2266
+
2267
+ /**
2268
+ * Agent 停止命令
2269
+ 注意:此字段可能返回 null,表示取不到有效值。
2270
+ */
2271
+ Stop: string
2272
+
2273
+ /**
2274
+ * Agent 状态检测命令
2275
+ 注意:此字段可能返回 null,表示取不到有效值。
2276
+ */
2277
+ StatusCheck: string
2278
+
2279
+ /**
2280
+ * Agent 日志检测命令
2281
+ 注意:此字段可能返回 null,表示取不到有效值。
2282
+ */
2283
+ LogCheck: string
2284
+ }
2285
+
2027
2286
  /**
2028
2287
  * DescribePolicyConditionList返回参数结构体
2029
2288
  */
@@ -2146,6 +2405,31 @@ export interface DescribeAllNamespacesResponse {
2146
2405
  RequestId?: string
2147
2406
  }
2148
2407
 
2408
+ /**
2409
+ * GetPrometheusAgentManagementCommand请求参数结构体
2410
+ */
2411
+ export interface GetPrometheusAgentManagementCommandRequest {
2412
+ /**
2413
+ * Prometheus 实例 ID
2414
+ */
2415
+ InstanceId: string
2416
+
2417
+ /**
2418
+ * Prometheus Agent ID
2419
+ */
2420
+ AgentId: string
2421
+ }
2422
+
2423
+ /**
2424
+ * ModifyPrometheusInstanceAttributes返回参数结构体
2425
+ */
2426
+ export interface ModifyPrometheusInstanceAttributesResponse {
2427
+ /**
2428
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2429
+ */
2430
+ RequestId?: string
2431
+ }
2432
+
2149
2433
  /**
2150
2434
  * DeleteAlarmNotices返回参数结构体
2151
2435
  */
@@ -2157,20 +2441,60 @@ export interface DeleteAlarmNoticesResponse {
2157
2441
  }
2158
2442
 
2159
2443
  /**
2160
- * DescribeBasicAlarmList返回参数结构体
2444
+ * TerminatePrometheusInstances请求参数结构体
2161
2445
  */
2162
- export interface DescribeBasicAlarmListResponse {
2446
+ export interface TerminatePrometheusInstancesRequest {
2163
2447
  /**
2164
- * 告警列表
2165
- 注意:此字段可能返回 null,表示取不到有效值。
2166
- */
2167
- Alarms?: Array<DescribeBasicAlarmListAlarms>
2448
+ * 实例 ID 列表
2449
+ */
2450
+ InstanceIds: Array<string>
2451
+ }
2168
2452
 
2453
+ /**
2454
+ * UnbindPrometheusManagedGrafana返回参数结构体
2455
+ */
2456
+ export interface UnbindPrometheusManagedGrafanaResponse {
2169
2457
  /**
2170
- * 总数
2171
- 注意:此字段可能返回 null,表示取不到有效值。
2458
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2459
+ */
2460
+ RequestId?: string
2461
+ }
2462
+
2463
+ /**
2464
+ * UpdatePrometheusAgentStatus请求参数结构体
2465
+ */
2466
+ export interface UpdatePrometheusAgentStatusRequest {
2467
+ /**
2468
+ * 实例 ID
2469
+ */
2470
+ InstanceId: string
2471
+
2472
+ /**
2473
+ * Agent ID 列表
2474
+ */
2475
+ AgentIds: Array<string>
2476
+
2477
+ /**
2478
+ * 要更新的状态
2479
+ <li> 1= 开启 </li>
2480
+ <li> 2= 关闭 </li>
2172
2481
  */
2173
- Total?: number
2482
+ Status: number
2483
+ }
2484
+
2485
+ /**
2486
+ * CreateAlarmPolicy返回参数结构体
2487
+ */
2488
+ export interface CreateAlarmPolicyResponse {
2489
+ /**
2490
+ * 告警策略 ID
2491
+ */
2492
+ PolicyId: string
2493
+
2494
+ /**
2495
+ * 可用于实例、实例组的绑定和解绑接口([BindingPolicyObject](https://cloud.tencent.com/document/product/248/40421)、[UnBindingAllPolicyObject](https://cloud.tencent.com/document/product/248/40568)、[UnBindingPolicyObject](https://cloud.tencent.com/document/product/248/40567))的策略 ID
2496
+ */
2497
+ OriginId: string
2174
2498
 
2175
2499
  /**
2176
2500
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
@@ -2327,13 +2651,61 @@ re=正则匹配
2327
2651
  }
2328
2652
 
2329
2653
  /**
2330
- * DescribeAlarmNoticeCallbacks请求参数结构体
2654
+ * CreateServiceDiscovery返回参数结构体
2331
2655
  */
2332
- export interface DescribeAlarmNoticeCallbacksRequest {
2656
+ export interface CreateServiceDiscoveryResponse {
2333
2657
  /**
2334
- * 模块名,这里填“monitor”
2658
+ * 创建成功之后,返回对应服务发现信息
2335
2659
  */
2336
- Module: string
2660
+ ServiceDiscovery?: ServiceDiscoveryItem
2661
+
2662
+ /**
2663
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2664
+ */
2665
+ RequestId?: string
2666
+ }
2667
+
2668
+ /**
2669
+ * CreatePrometheusAgent返回参数结构体
2670
+ */
2671
+ export interface CreatePrometheusAgentResponse {
2672
+ /**
2673
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2674
+ */
2675
+ RequestId?: string
2676
+ }
2677
+
2678
+ /**
2679
+ * DescribeExporterIntegrations请求参数结构体
2680
+ */
2681
+ export interface DescribeExporterIntegrationsRequest {
2682
+ /**
2683
+ * 实例 ID
2684
+ */
2685
+ InstanceId: string
2686
+
2687
+ /**
2688
+ * Kubernetes 集群类型,取值如下:
2689
+ <li> 1= 容器集群(TKE) </li>
2690
+ <li> 2=弹性集群<EKS> </li>
2691
+ <li> 3= Prometheus管理的弹性集群<MEKS> </li>
2692
+ */
2693
+ KubeType: number
2694
+
2695
+ /**
2696
+ * 集群 ID
2697
+ */
2698
+ ClusterId: string
2699
+
2700
+ /**
2701
+ * 类型
2702
+ */
2703
+ Kind?: string
2704
+
2705
+ /**
2706
+ * 名字
2707
+ */
2708
+ Name?: string
2337
2709
  }
2338
2710
 
2339
2711
  /**
@@ -2369,6 +2741,38 @@ export interface ModifyAlarmPolicyConditionResponse {
2369
2741
  RequestId?: string
2370
2742
  }
2371
2743
 
2744
+ /**
2745
+ * UpgradeGrafanaDashboard请求参数结构体
2746
+ */
2747
+ export interface UpgradeGrafanaDashboardRequest {
2748
+ /**
2749
+ * 实例 ID
2750
+ */
2751
+ InstanceId: string
2752
+
2753
+ /**
2754
+ * Prometheus 集成项 Code,升级对应的 Dashboard,取值如下:
2755
+ <li>spring_mvc</li>
2756
+ <li>mysql</li>
2757
+ <li>go</li>
2758
+ <li>redis</li>
2759
+ <li>jvm</li>
2760
+ <li>pgsql</li>
2761
+ <li>mongo</li>
2762
+ <li>kafka</li>
2763
+ <li>es</li>
2764
+ <li>flink</li>
2765
+ <li>blackbox</li>
2766
+ <li>consule</li>
2767
+ <li>memcached</li>
2768
+ <li>zk</li>
2769
+ <li>tps</li>
2770
+ <li>istio</li>
2771
+ <li>etcd</li>
2772
+ */
2773
+ IntegrationCodes?: Array<string>
2774
+ }
2775
+
2372
2776
  /**
2373
2777
  * 告警对象所属实例组
2374
2778
  */
@@ -2385,18 +2789,13 @@ export interface InstanceGroups {
2385
2789
  }
2386
2790
 
2387
2791
  /**
2388
- * 实例对象的维度组合
2792
+ * DestroyPrometheusInstance请求参数结构体
2389
2793
  */
2390
- export interface Dimension {
2391
- /**
2392
- * 实例维度名称
2393
- */
2394
- Name: string
2395
-
2794
+ export interface DestroyPrometheusInstanceRequest {
2396
2795
  /**
2397
- * 实例维度值
2796
+ * 实例 ID,该实例必须先被 terminate
2398
2797
  */
2399
- Value: string
2798
+ InstanceId: string
2400
2799
  }
2401
2800
 
2402
2801
  /**
@@ -2434,6 +2833,21 @@ export interface PrometheusInstanceGrantInfo {
2434
2833
  HasApiOperation: number
2435
2834
  }
2436
2835
 
2836
+ /**
2837
+ * UnbindPrometheusManagedGrafana请求参数结构体
2838
+ */
2839
+ export interface UnbindPrometheusManagedGrafanaRequest {
2840
+ /**
2841
+ * Prometheus 实例 ID
2842
+ */
2843
+ InstanceId: string
2844
+
2845
+ /**
2846
+ * Grafana 实例 ID
2847
+ */
2848
+ GrafanaId: string
2849
+ }
2850
+
2437
2851
  /**
2438
2852
  * 模板列表
2439
2853
  */
@@ -2839,17 +3253,42 @@ export interface UserNotice {
2839
3253
  }
2840
3254
 
2841
3255
  /**
2842
- * 告警策略过滤条件
3256
+ * UpdatePrometheusScrapeJob请求参数结构体
2843
3257
  */
2844
- export interface AlarmPolicyFilter {
3258
+ export interface UpdatePrometheusScrapeJobRequest {
2845
3259
  /**
2846
- * 过滤条件类型 DIMENSION=使用 Dimensions 做过滤
2847
- 注意:此字段可能返回 null,表示取不到有效值。
2848
- */
2849
- Type: string
3260
+ * 实例 ID
3261
+ */
3262
+ InstanceId: string
2850
3263
 
2851
3264
  /**
2852
- * AlarmPolicyDimension 二维数组序列化后的json字符串,一维数组之间互为或关系,一维数组内的元素互为与关系
3265
+ * Agent ID
3266
+ */
3267
+ AgentId: string
3268
+
3269
+ /**
3270
+ * 抓取任务 ID
3271
+ */
3272
+ JobId: string
3273
+
3274
+ /**
3275
+ * 抓取任务配置
3276
+ */
3277
+ Config: string
3278
+ }
3279
+
3280
+ /**
3281
+ * 告警策略过滤条件
3282
+ */
3283
+ export interface AlarmPolicyFilter {
3284
+ /**
3285
+ * 过滤条件类型 DIMENSION=使用 Dimensions 做过滤
3286
+ 注意:此字段可能返回 null,表示取不到有效值。
3287
+ */
3288
+ Type: string
3289
+
3290
+ /**
3291
+ * AlarmPolicyDimension 二维数组序列化后的json字符串,一维数组之间互为或关系,一维数组内的元素互为与关系
2853
3292
  注意:此字段可能返回 null,表示取不到有效值。
2854
3293
  */
2855
3294
  Dimensions?: string
@@ -2871,6 +3310,16 @@ export interface DescribeAlarmNoticeCallbacksResponse {
2871
3310
  RequestId?: string
2872
3311
  }
2873
3312
 
3313
+ /**
3314
+ * UpdateExporterIntegration返回参数结构体
3315
+ */
3316
+ export interface UpdateExporterIntegrationResponse {
3317
+ /**
3318
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3319
+ */
3320
+ RequestId?: string
3321
+ }
3322
+
2874
3323
  /**
2875
3324
  * ModifyAlarmPolicyCondition请求参数结构体
2876
3325
  */
@@ -2912,15 +3361,30 @@ export interface ModifyAlarmPolicyConditionRequest {
2912
3361
  }
2913
3362
 
2914
3363
  /**
2915
- * ModifyAlarmPolicyStatus返回参数结构体
3364
+ * ModifyAlarmNotice返回参数结构体
2916
3365
  */
2917
- export interface ModifyAlarmPolicyStatusResponse {
3366
+ export interface ModifyAlarmNoticeResponse {
2918
3367
  /**
2919
3368
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2920
3369
  */
2921
3370
  RequestId?: string
2922
3371
  }
2923
3372
 
3373
+ /**
3374
+ * BindPrometheusManagedGrafana请求参数结构体
3375
+ */
3376
+ export interface BindPrometheusManagedGrafanaRequest {
3377
+ /**
3378
+ * Prometheus 实例 ID
3379
+ */
3380
+ InstanceId: string
3381
+
3382
+ /**
3383
+ * Grafana 可视化服务实例 ID
3384
+ */
3385
+ GrafanaId: string
3386
+ }
3387
+
2924
3388
  /**
2925
3389
  * 实例维度组合数组
2926
3390
  */
@@ -2988,6 +3452,16 @@ export interface DescribeAlarmPolicyResponse {
2988
3452
  RequestId?: string
2989
3453
  }
2990
3454
 
3455
+ /**
3456
+ * DeleteExporterIntegration返回参数结构体
3457
+ */
3458
+ export interface DeleteExporterIntegrationResponse {
3459
+ /**
3460
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3461
+ */
3462
+ RequestId?: string
3463
+ }
3464
+
2991
3465
  /**
2992
3466
  * UpdateServiceDiscovery返回参数结构体
2993
3467
  */
@@ -3019,60 +3493,18 @@ export interface DescribeMonitorTypesResponse {
3019
3493
  }
3020
3494
 
3021
3495
  /**
3022
- * 对业务指标的单位及支持统计周期的描述
3496
+ * 实例对象的维度组合
3023
3497
  */
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
-
3498
+ export interface Dimension {
3055
3499
  /**
3056
- * 统计指标含义解释
3500
+ * 实例维度名称
3057
3501
  */
3058
- Meaning: MetricObjectMeaning
3502
+ Name: string
3059
3503
 
3060
3504
  /**
3061
- * 维度描述信息
3505
+ * 实例维度值
3062
3506
  */
3063
- Dimensions: Array<DimensionsDesc>
3064
-
3065
- /**
3066
- * 指标中文名
3067
- 注意:此字段可能返回 null,表示取不到有效值。
3068
- */
3069
- MetricCName: string
3070
-
3071
- /**
3072
- * 指标英文名
3073
- 注意:此字段可能返回 null,表示取不到有效值。
3074
- */
3075
- MetricEName: string
3507
+ Value: string
3076
3508
  }
3077
3509
 
3078
3510
  /**
@@ -3212,37 +3644,19 @@ export interface DescribeBasicAlarmListAlarms {
3212
3644
  }
3213
3645
 
3214
3646
  /**
3215
- * UpdateServiceDiscovery请求参数结构体
3647
+ * UpdateRecordingRule返回参数结构体
3216
3648
  */
3217
- export interface UpdateServiceDiscoveryRequest {
3218
- /**
3219
- * Prometheus 实例 ID
3220
- */
3221
- InstanceId: string
3222
-
3223
- /**
3224
- * <li>类型是 TKE,为对应的腾讯云容器服务集群 ID</li>
3225
- */
3226
- KubeClusterId: string
3227
-
3228
- /**
3229
- * 用户 Kubernetes 集群类型:
3230
- <li> 1 = 容器服务集群(TKE) </li>
3231
- */
3232
- KubeType: number
3233
-
3649
+ export interface UpdateRecordingRuleResponse {
3234
3650
  /**
3235
- * 服务发现类型,取值如下:
3236
- <li> 1 = ServiceMonitor</li>
3237
- <li> 2 = PodMonitor</li>
3238
- <li> 3 = JobMonitor</li>
3651
+ * 规则 ID
3652
+ 注意:此字段可能返回 null,表示取不到有效值。
3239
3653
  */
3240
- Type: number
3654
+ RuleId: string
3241
3655
 
3242
3656
  /**
3243
- * 服务发现配置信息
3657
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3244
3658
  */
3245
- Yaml: string
3659
+ RequestId?: string
3246
3660
  }
3247
3661
 
3248
3662
  /**
@@ -3441,19 +3855,18 @@ export interface ModifyPolicyGroupResponse {
3441
3855
  }
3442
3856
 
3443
3857
  /**
3444
- * DescribePolicyConditionList.ConfigManual.CalcType
3858
+ * DescribeAlarmMetrics返回参数结构体
3445
3859
  */
3446
- export interface DescribePolicyConditionListConfigManualCalcType {
3860
+ export interface DescribeAlarmMetricsResponse {
3447
3861
  /**
3448
- * CalcType 取值
3449
- 注意:此字段可能返回 null,表示取不到有效值。
3450
- */
3451
- Keys: Array<number>
3862
+ * 告警指标列表
3863
+ */
3864
+ Metrics?: Array<Metric>
3452
3865
 
3453
3866
  /**
3454
- * 是否必须
3867
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3455
3868
  */
3456
- Need: boolean
3869
+ RequestId?: string
3457
3870
  }
3458
3871
 
3459
3872
  /**
@@ -3514,6 +3927,21 @@ export interface Condition {
3514
3927
  Unit: string
3515
3928
  }
3516
3929
 
3930
+ /**
3931
+ * UpdateAlertRule返回参数结构体
3932
+ */
3933
+ export interface UpdateAlertRuleResponse {
3934
+ /**
3935
+ * 规则 ID
3936
+ */
3937
+ RuleId: string
3938
+
3939
+ /**
3940
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3941
+ */
3942
+ RequestId?: string
3943
+ }
3944
+
3517
3945
  /**
3518
3946
  * PutMonitorData请求参数结构体
3519
3947
  */
@@ -3540,23 +3968,43 @@ export interface PutMonitorDataRequest {
3540
3968
  }
3541
3969
 
3542
3970
  /**
3543
- * ModifyAlarmPolicyStatus请求参数结构体
3971
+ * DescribePrometheusAgents请求参数结构体
3544
3972
  */
3545
- export interface ModifyAlarmPolicyStatusRequest {
3973
+ export interface DescribePrometheusAgentsRequest {
3546
3974
  /**
3547
- * 模块名,固定值 monitor
3975
+ * 实例 ID
3548
3976
  */
3549
- Module: string
3977
+ InstanceId: string
3550
3978
 
3551
3979
  /**
3552
- * 告警策略 ID
3980
+ * Agent 名称
3553
3981
  */
3554
- PolicyId: string
3982
+ Name?: string
3555
3983
 
3556
3984
  /**
3557
- * 启停状态 0=停用 1=启用
3985
+ * Agent ID 列表
3558
3986
  */
3559
- Enable: number
3987
+ AgentIds?: Array<string>
3988
+
3989
+ /**
3990
+ * 偏移量,默认为0
3991
+ */
3992
+ Offset?: number
3993
+
3994
+ /**
3995
+ * 返回数量,默认为20,最大值为100
3996
+ */
3997
+ Limit?: number
3998
+ }
3999
+
4000
+ /**
4001
+ * TerminatePrometheusInstances返回参数结构体
4002
+ */
4003
+ export interface TerminatePrometheusInstancesResponse {
4004
+ /**
4005
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4006
+ */
4007
+ RequestId?: string
3560
4008
  }
3561
4009
 
3562
4010
  /**
@@ -3634,6 +4082,46 @@ export interface BindingPolicyTagRequest {
3634
4082
  BatchTag?: Array<PolicyTag>
3635
4083
  }
3636
4084
 
4085
+ /**
4086
+ * export 集成配置
4087
+ */
4088
+ export interface IntegrationConfiguration {
4089
+ /**
4090
+ * 名字
4091
+ */
4092
+ Name: string
4093
+
4094
+ /**
4095
+ * 类型
4096
+ */
4097
+ Kind: string
4098
+
4099
+ /**
4100
+ * 内容
4101
+ */
4102
+ Content: string
4103
+
4104
+ /**
4105
+ * 状态
4106
+ */
4107
+ Status: number
4108
+
4109
+ /**
4110
+ * 实例类型
4111
+ */
4112
+ Category: string
4113
+
4114
+ /**
4115
+ * 实例描述
4116
+ */
4117
+ InstanceDesc: string
4118
+
4119
+ /**
4120
+ * dashboard 的 URL
4121
+ */
4122
+ GrafanaDashboardURL: string
4123
+ }
4124
+
3637
4125
  /**
3638
4126
  * UpdateAlertRule请求参数结构体
3639
4127
  */
@@ -3696,35 +4184,14 @@ export interface UpdateAlertRuleRequest {
3696
4184
  }
3697
4185
 
3698
4186
  /**
3699
- * DescribeBindingPolicyObjectList返回参数结构体
4187
+ * 告警策略事件触发条件
3700
4188
  */
3701
- export interface DescribeBindingPolicyObjectListResponse {
3702
- /**
3703
- * 绑定的对象实例列表
3704
- 注意:此字段可能返回 null,表示取不到有效值。
3705
- */
3706
- List: Array<DescribeBindingPolicyObjectListInstance>
3707
-
3708
- /**
3709
- * 绑定的对象实例总数
3710
- */
3711
- Total: number
3712
-
3713
- /**
3714
- * 未屏蔽的对象实例数
3715
- */
3716
- NoShieldedSum: number
3717
-
4189
+ export interface AlarmPolicyEventCondition {
3718
4190
  /**
3719
- * 绑定的实例分组信息,没有绑定实例分组则为空
4191
+ * 告警触发条件列表
3720
4192
  注意:此字段可能返回 null,表示取不到有效值。
3721
4193
  */
3722
- InstanceGroup: DescribeBindingPolicyObjectListInstanceGroup
3723
-
3724
- /**
3725
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3726
- */
3727
- RequestId?: string
4194
+ Rules: Array<AlarmPolicyRule>
3728
4195
  }
3729
4196
 
3730
4197
  /**
@@ -3821,12 +4288,22 @@ export interface UnBindingPolicyObjectResponse {
3821
4288
  }
3822
4289
 
3823
4290
  /**
3824
- * DescribeBasicAlarmList返回的Alarms里的InstanceGroup
4291
+ * SendCustomAlarmMsg返回参数结构体
3825
4292
  */
3826
- export interface InstanceGroup {
4293
+ export interface SendCustomAlarmMsgResponse {
3827
4294
  /**
3828
- * 实例组ID
3829
- 注意:此字段可能返回 null,表示取不到有效值。
4295
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4296
+ */
4297
+ RequestId?: string
4298
+ }
4299
+
4300
+ /**
4301
+ * DescribeBasicAlarmList返回的Alarms里的InstanceGroup
4302
+ */
4303
+ export interface InstanceGroup {
4304
+ /**
4305
+ * 实例组ID
4306
+ 注意:此字段可能返回 null,表示取不到有效值。
3830
4307
  */
3831
4308
  InstanceGroupId: number
3832
4309
 
@@ -3983,6 +4460,21 @@ export interface DeleteAlarmNoticesRequest {
3983
4460
  NoticeIds: Array<string>
3984
4461
  }
3985
4462
 
4463
+ /**
4464
+ * DescribeExporterIntegrations返回参数结构体
4465
+ */
4466
+ export interface DescribeExporterIntegrationsResponse {
4467
+ /**
4468
+ * 集成配置列表
4469
+ */
4470
+ IntegrationSet: Array<IntegrationConfiguration>
4471
+
4472
+ /**
4473
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4474
+ */
4475
+ RequestId?: string
4476
+ }
4477
+
3986
4478
  /**
3987
4479
  * DescribePolicyConditionList.ConfigManual.PeriodNum
3988
4480
  */
@@ -4005,6 +4497,16 @@ export interface DescribePolicyConditionListConfigManualPeriodNum {
4005
4497
  Need: boolean
4006
4498
  }
4007
4499
 
4500
+ /**
4501
+ * UpgradeGrafanaDashboard返回参数结构体
4502
+ */
4503
+ export interface UpgradeGrafanaDashboardResponse {
4504
+ /**
4505
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4506
+ */
4507
+ RequestId?: string
4508
+ }
4509
+
4008
4510
  /**
4009
4511
  * DescribeAllNamespaces请求参数结构体
4010
4512
  */
@@ -4117,14 +4619,24 @@ export interface PolicyGroup {
4117
4619
  }
4118
4620
 
4119
4621
  /**
4120
- * UpdateAlertRule返回参数结构体
4622
+ * DeleteRecordingRules请求参数结构体
4121
4623
  */
4122
- export interface UpdateAlertRuleResponse {
4624
+ export interface DeleteRecordingRulesRequest {
4123
4625
  /**
4124
- * 规则 ID
4626
+ * 规则 ID 列表
4125
4627
  */
4126
- RuleId: string
4628
+ RuleIds: Array<string>
4629
+
4630
+ /**
4631
+ * Prometheus 实例 ID
4632
+ */
4633
+ InstanceId: string
4634
+ }
4127
4635
 
4636
+ /**
4637
+ * UpdatePrometheusScrapeJob返回参数结构体
4638
+ */
4639
+ export interface UpdatePrometheusScrapeJobResponse {
4128
4640
  /**
4129
4641
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4130
4642
  */
@@ -4132,18 +4644,19 @@ export interface UpdateAlertRuleResponse {
4132
4644
  }
4133
4645
 
4134
4646
  /**
4135
- * DescribeAlarmMetrics返回参数结构体
4647
+ * DescribePolicyConditionList.ConfigManual.CalcType
4136
4648
  */
4137
- export interface DescribeAlarmMetricsResponse {
4649
+ export interface DescribePolicyConditionListConfigManualCalcType {
4138
4650
  /**
4139
- * 告警指标列表
4140
- */
4141
- Metrics?: Array<Metric>
4651
+ * CalcType 取值
4652
+ 注意:此字段可能返回 null,表示取不到有效值。
4653
+ */
4654
+ Keys: Array<number>
4142
4655
 
4143
4656
  /**
4144
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4657
+ * 是否必须
4145
4658
  */
4146
- RequestId?: string
4659
+ Need: boolean
4147
4660
  }
4148
4661
 
4149
4662
  /**
@@ -4306,19 +4819,41 @@ export interface DescribeAlarmPoliciesRequest {
4306
4819
  }
4307
4820
 
4308
4821
  /**
4309
- * DescribeConditionsTemplateList返回参数结构体
4822
+ * DescribeAccidentEventList返回参数结构体
4310
4823
  */
4311
- export interface DescribeConditionsTemplateListResponse {
4824
+ export interface DescribeAccidentEventListResponse {
4312
4825
  /**
4313
- * 模板总数
4826
+ * 平台事件列表
4827
+ 注意:此字段可能返回 null,表示取不到有效值。
4828
+ */
4829
+ Alarms?: Array<DescribeAccidentEventListAlarms>
4830
+
4831
+ /**
4832
+ * 平台事件的总数
4833
+ 注意:此字段可能返回 null,表示取不到有效值。
4834
+ */
4835
+ Total?: number
4836
+
4837
+ /**
4838
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4314
4839
  */
4315
- Total: number
4840
+ RequestId?: string
4841
+ }
4316
4842
 
4843
+ /**
4844
+ * DescribePrometheusScrapeJobs返回参数结构体
4845
+ */
4846
+ export interface DescribePrometheusScrapeJobsResponse {
4317
4847
  /**
4318
- * 模板列表
4848
+ * 任务列表
4319
4849
  注意:此字段可能返回 null,表示取不到有效值。
4320
4850
  */
4321
- TemplateGroupList: Array<TemplateGroup>
4851
+ ScrapeJobSet?: Array<PrometheusScrapeJob>
4852
+
4853
+ /**
4854
+ * 任务总量
4855
+ */
4856
+ TotalCount?: number
4322
4857
 
4323
4858
  /**
4324
4859
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
@@ -4461,23 +4996,13 @@ export interface AlarmNotice {
4461
4996
  }
4462
4997
 
4463
4998
  /**
4464
- * 指标配置
4999
+ * DeleteRecordingRules返回参数结构体
4465
5000
  */
4466
- export interface MetricConfig {
4467
- /**
4468
- * 允许使用的运算符
4469
- */
4470
- Operator: Array<string>
4471
-
4472
- /**
4473
- * 允许配置的数据周期,以秒为单位
4474
- */
4475
- Period: Array<number>
4476
-
5001
+ export interface DeleteRecordingRulesResponse {
4477
5002
  /**
4478
- * 允许配置的持续周期个数
5003
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4479
5004
  */
4480
- ContinuePeriod: Array<number>
5005
+ RequestId?: string
4481
5006
  }
4482
5007
 
4483
5008
  /**
@@ -4556,6 +5081,27 @@ export interface PolicyGroupReceiverInfo {
4556
5081
  UIDList: Array<number>
4557
5082
  }
4558
5083
 
5084
+ /**
5085
+ * DescribePrometheusAgents返回参数结构体
5086
+ */
5087
+ export interface DescribePrometheusAgentsResponse {
5088
+ /**
5089
+ * Agent 列表
5090
+ 注意:此字段可能返回 null,表示取不到有效值。
5091
+ */
5092
+ AgentSet: Array<PrometheusAgent>
5093
+
5094
+ /**
5095
+ * Agent 总量
5096
+ */
5097
+ TotalCount: number
5098
+
5099
+ /**
5100
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5101
+ */
5102
+ RequestId?: string
5103
+ }
5104
+
4559
5105
  /**
4560
5106
  * DescribeAlarmEvents请求参数结构体
4561
5107
  */
@@ -4597,13 +5143,94 @@ export interface MidQueryCondition {
4597
5143
  }
4598
5144
 
4599
5145
  /**
4600
- * ModifyAlarmNotice返回参数结构体
5146
+ * DeletePrometheusScrapeJobs请求参数结构体
4601
5147
  */
4602
- export interface ModifyAlarmNoticeResponse {
5148
+ export interface DeletePrometheusScrapeJobsRequest {
4603
5149
  /**
4604
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5150
+ * 实例 ID
4605
5151
  */
4606
- RequestId?: string
5152
+ InstanceId: string
5153
+
5154
+ /**
5155
+ * Agent ID
5156
+ */
5157
+ AgentId: string
5158
+
5159
+ /**
5160
+ * 任务 ID 列表
5161
+ */
5162
+ JobIds: Array<string>
5163
+ }
5164
+
5165
+ /**
5166
+ * UnBindingPolicyObject请求参数结构体
5167
+ */
5168
+ export interface UnBindingPolicyObjectRequest {
5169
+ /**
5170
+ * 固定值,为"monitor"
5171
+ */
5172
+ Module: string
5173
+
5174
+ /**
5175
+ * 策略组id,如传入 PolicyId 则该字段被忽略可传入任意值如 0
5176
+ */
5177
+ GroupId: number
5178
+
5179
+ /**
5180
+ * 待删除对象实例的唯一id列表,UniqueId从调用[获取已绑定对象列表接口](https://cloud.tencent.com/document/api/248/40570)的出参的List中得到
5181
+ */
5182
+ UniqueId: Array<string>
5183
+
5184
+ /**
5185
+ * 实例分组id,如果按实例分组删除的话UniqueId参数是无效的
5186
+ */
5187
+ InstanceGroupId?: number
5188
+
5189
+ /**
5190
+ * 告警策略ID,使用此字段时 GroupId 会被忽略
5191
+ */
5192
+ PolicyId?: string
5193
+ }
5194
+
5195
+ /**
5196
+ * 云监控告警通知模板 - 回调通知详情
5197
+ */
5198
+ export interface URLNotice {
5199
+ /**
5200
+ * 回调 url(限长256字符)
5201
+ 注意:此字段可能返回 null,表示取不到有效值。
5202
+ */
5203
+ URL: string
5204
+
5205
+ /**
5206
+ * 是否通过验证 0=否 1=是
5207
+ 注意:此字段可能返回 null,表示取不到有效值。
5208
+ */
5209
+ IsValid?: number
5210
+
5211
+ /**
5212
+ * 验证码
5213
+ 注意:此字段可能返回 null,表示取不到有效值。
5214
+ */
5215
+ ValidationCode?: string
5216
+
5217
+ /**
5218
+ * 通知开始时间 一天开始的秒数
5219
+ 注意:此字段可能返回 null,表示取不到有效值。
5220
+ */
5221
+ StartTime?: number
5222
+
5223
+ /**
5224
+ * 通知结束时间 一天开始的秒数
5225
+ 注意:此字段可能返回 null,表示取不到有效值。
5226
+ */
5227
+ EndTime?: number
5228
+
5229
+ /**
5230
+ * 通知周期 1-7表示周一到周日
5231
+ 注意:此字段可能返回 null,表示取不到有效值。
5232
+ */
5233
+ Weekday?: Array<number>
4607
5234
  }
4608
5235
 
4609
5236
  /**
@@ -4862,44 +5489,13 @@ export interface DeleteAlarmPolicyResponse {
4862
5489
  }
4863
5490
 
4864
5491
  /**
4865
- * 云监控告警通知模板 - 回调通知详情
5492
+ * DeletePrometheusScrapeJobs返回参数结构体
4866
5493
  */
4867
- export interface URLNotice {
4868
- /**
4869
- * 回调 url(限长256字符)
4870
- 注意:此字段可能返回 null,表示取不到有效值。
4871
- */
4872
- URL: string
4873
-
4874
- /**
4875
- * 是否通过验证 0=否 1=是
4876
- 注意:此字段可能返回 null,表示取不到有效值。
4877
- */
4878
- IsValid?: number
4879
-
4880
- /**
4881
- * 验证码
4882
- 注意:此字段可能返回 null,表示取不到有效值。
4883
- */
4884
- ValidationCode?: string
4885
-
4886
- /**
4887
- * 通知开始时间 一天开始的秒数
4888
- 注意:此字段可能返回 null,表示取不到有效值。
4889
- */
4890
- StartTime?: number
4891
-
4892
- /**
4893
- * 通知结束时间 一天开始的秒数
4894
- 注意:此字段可能返回 null,表示取不到有效值。
4895
- */
4896
- EndTime?: number
4897
-
5494
+ export interface DeletePrometheusScrapeJobsResponse {
4898
5495
  /**
4899
- * 通知周期 1-7表示周一到周日
4900
- 注意:此字段可能返回 null,表示取不到有效值。
4901
- */
4902
- Weekday?: Array<number>
5496
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5497
+ */
5498
+ RequestId?: string
4903
5499
  }
4904
5500
 
4905
5501
  /**
@@ -5135,32 +5731,102 @@ export interface DescribeStatisticDataResponse {
5135
5731
  }
5136
5732
 
5137
5733
  /**
5138
- * DescribePolicyConditionList.EventMetric
5734
+ * CreatePrometheusScrapeJob请求参数结构体
5139
5735
  */
5140
- export interface DescribePolicyConditionListEventMetric {
5141
- /**
5142
- * 事件id
5143
- */
5144
- EventId: number
5145
-
5736
+ export interface CreatePrometheusScrapeJobRequest {
5146
5737
  /**
5147
- * 事件名称
5738
+ * 实例 ID
5148
5739
  */
5149
- EventShowName: string
5740
+ InstanceId: string
5150
5741
 
5151
5742
  /**
5152
- * 是否需要恢复
5743
+ * Agent ID
5153
5744
  */
5154
- NeedRecovered: boolean
5745
+ AgentId: string
5155
5746
 
5156
5747
  /**
5157
- * 事件类型,预留字段,当前固定取值为2
5748
+ * 任务内容
5158
5749
  */
5159
- Type: number
5750
+ Config?: string
5160
5751
  }
5161
5752
 
5162
5753
  /**
5163
- * DescribePolicyGroupList请求参数结构体
5754
+ * Prometheus 聚合规则响应结构体内信息
5755
+ */
5756
+ export interface RecordingRuleSet {
5757
+ /**
5758
+ * 规则 ID
5759
+ */
5760
+ RuleId: string
5761
+
5762
+ /**
5763
+ * 规则状态码
5764
+ */
5765
+ RuleState: number
5766
+
5767
+ /**
5768
+ * 规则名称
5769
+ */
5770
+ Name: string
5771
+
5772
+ /**
5773
+ * 规则内容组
5774
+ */
5775
+ Group: string
5776
+
5777
+ /**
5778
+ * 规则数量
5779
+ */
5780
+ Total: number
5781
+
5782
+ /**
5783
+ * 规则创建时间
5784
+ */
5785
+ CreatedAt: string
5786
+
5787
+ /**
5788
+ * 规则最近更新时间
5789
+ */
5790
+ UpdatedAt: string
5791
+ }
5792
+
5793
+ /**
5794
+ * CreateExporterIntegration返回参数结构体
5795
+ */
5796
+ export interface CreateExporterIntegrationResponse {
5797
+ /**
5798
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5799
+ */
5800
+ RequestId?: string
5801
+ }
5802
+
5803
+ /**
5804
+ * DescribePolicyConditionList.EventMetric
5805
+ */
5806
+ export interface DescribePolicyConditionListEventMetric {
5807
+ /**
5808
+ * 事件id
5809
+ */
5810
+ EventId: number
5811
+
5812
+ /**
5813
+ * 事件名称
5814
+ */
5815
+ EventShowName: string
5816
+
5817
+ /**
5818
+ * 是否需要恢复
5819
+ */
5820
+ NeedRecovered: boolean
5821
+
5822
+ /**
5823
+ * 事件类型,预留字段,当前固定取值为2
5824
+ */
5825
+ Type: number
5826
+ }
5827
+
5828
+ /**
5829
+ * DescribePolicyGroupList请求参数结构体
5164
5830
  */
5165
5831
  export interface DescribePolicyGroupListRequest {
5166
5832
  /**
@@ -5480,6 +6146,39 @@ export interface DescribePolicyGroupListGroup {
5480
6146
  IsUnionRule: number
5481
6147
  }
5482
6148
 
6149
+ /**
6150
+ * UpdateExporterIntegration请求参数结构体
6151
+ */
6152
+ export interface UpdateExporterIntegrationRequest {
6153
+ /**
6154
+ * 实例 ID
6155
+ */
6156
+ InstanceId: string
6157
+
6158
+ /**
6159
+ * Kubernetes 集群类型,取值如下:
6160
+ <li> 1= 容器集群(TKE) </li>
6161
+ <li> 2=弹性集群<EKS> </li>
6162
+ <li> 3= Prometheus管理的弹性集群<MEKS> </li>
6163
+ */
6164
+ KubeType: number
6165
+
6166
+ /**
6167
+ * 集群 ID
6168
+ */
6169
+ ClusterId: string
6170
+
6171
+ /**
6172
+ * 类型
6173
+ */
6174
+ Kind: string
6175
+
6176
+ /**
6177
+ * 配置内容
6178
+ */
6179
+ Content: string
6180
+ }
6181
+
5483
6182
  /**
5484
6183
  * DescribeAccidentEventList请求参数结构体
5485
6184
  */
@@ -5545,6 +6244,22 @@ export interface DescribeAccidentEventListRequest {
5545
6244
  AffectResource?: string
5546
6245
  }
5547
6246
 
6247
+ /**
6248
+ * CreateRecordingRule返回参数结构体
6249
+ */
6250
+ export interface CreateRecordingRuleResponse {
6251
+ /**
6252
+ * 规则 ID
6253
+ 注意:此字段可能返回 null,表示取不到有效值。
6254
+ */
6255
+ RuleId: string
6256
+
6257
+ /**
6258
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
6259
+ */
6260
+ RequestId?: string
6261
+ }
6262
+
5548
6263
  /**
5549
6264
  * 指标名称和值的封装
5550
6265
  */
@@ -5622,20 +6337,37 @@ export interface DescribeBindingPolicyObjectListInstanceGroup {
5622
6337
  }
5623
6338
 
5624
6339
  /**
5625
- * DescribeProductEventList返回的Events里的GroupInfo
6340
+ * UpdateServiceDiscovery请求参数结构体
5626
6341
  */
5627
- export interface DescribeProductEventListEventsGroupInfo {
6342
+ export interface UpdateServiceDiscoveryRequest {
5628
6343
  /**
5629
- * 策略ID
5630
- 注意:此字段可能返回 null,表示取不到有效值。
6344
+ * Prometheus 实例 ID
6345
+ */
6346
+ InstanceId: string
6347
+
6348
+ /**
6349
+ * <li>类型是 TKE,为对应的腾讯云容器服务集群 ID</li>
6350
+ */
6351
+ KubeClusterId: string
6352
+
6353
+ /**
6354
+ * 用户 Kubernetes 集群类型:
6355
+ <li> 1 = 容器服务集群(TKE) </li>
5631
6356
  */
5632
- GroupId: number
6357
+ KubeType: number
5633
6358
 
5634
6359
  /**
5635
- * 策略名
5636
- 注意:此字段可能返回 null,表示取不到有效值。
6360
+ * 服务发现类型,取值如下:
6361
+ <li> 1 = ServiceMonitor</li>
6362
+ <li> 2 = PodMonitor</li>
6363
+ <li> 3 = JobMonitor</li>
5637
6364
  */
5638
- GroupName: string
6365
+ Type: number
6366
+
6367
+ /**
6368
+ * 服务发现配置信息
6369
+ */
6370
+ Yaml: string
5639
6371
  }
5640
6372
 
5641
6373
  /**
@@ -5668,6 +6400,53 @@ export interface DescribeAlarmNoticeRequest {
5668
6400
  NoticeId: string
5669
6401
  }
5670
6402
 
6403
+ /**
6404
+ * UninstallGrafanaDashboard请求参数结构体
6405
+ */
6406
+ export interface UninstallGrafanaDashboardRequest {
6407
+ /**
6408
+ * 实例 ID
6409
+ */
6410
+ InstanceId: string
6411
+
6412
+ /**
6413
+ * Prometheus 集成项 Code,删除对应的 Dashboard,Code 如下:
6414
+ <li>spring_mvc</li>
6415
+ <li>mysql</li>
6416
+ <li>go</li>
6417
+ <li>redis</li>
6418
+ <li>jvm</li>
6419
+ <li>pgsql</li>
6420
+ <li>mongo</li>
6421
+ <li>kafka</li>
6422
+ <li>es</li>
6423
+ <li>flink</li>
6424
+ <li>blackbox</li>
6425
+ <li>consule</li>
6426
+ <li>memcached</li>
6427
+ <li>zk</li>
6428
+ <li>tps</li>
6429
+ <li>istio</li>
6430
+ <li>etcd</li>
6431
+ */
6432
+ IntegrationCodes?: Array<string>
6433
+ }
6434
+
6435
+ /**
6436
+ * CreatePrometheusAgent请求参数结构体
6437
+ */
6438
+ export interface CreatePrometheusAgentRequest {
6439
+ /**
6440
+ * 实例 ID
6441
+ */
6442
+ InstanceId: string
6443
+
6444
+ /**
6445
+ * Agent 名称
6446
+ */
6447
+ Name: string
6448
+ }
6449
+
5671
6450
  /**
5672
6451
  * DescribeBindingPolicyObjectList接口的Dimension
5673
6452
  */
@@ -5912,6 +6691,44 @@ export interface ReceiverInfo {
5912
6691
  ReceiveLanguage?: string
5913
6692
  }
5914
6693
 
6694
+ /**
6695
+ * DescribeRecordingRules请求参数结构体
6696
+ */
6697
+ export interface DescribeRecordingRulesRequest {
6698
+ /**
6699
+ * Prometheus 实例 ID
6700
+ */
6701
+ InstanceId: string
6702
+
6703
+ /**
6704
+ * 返回数量,默认为 20,最大值为 100
6705
+ */
6706
+ Limit?: number
6707
+
6708
+ /**
6709
+ * 偏移量,默认为 0
6710
+ */
6711
+ Offset?: number
6712
+
6713
+ /**
6714
+ * 规则 ID
6715
+ */
6716
+ RuleId?: string
6717
+
6718
+ /**
6719
+ * 规则状态码,取值如下:
6720
+ <li>1=RuleDeleted</li>
6721
+ <li>2=RuleEnabled</li>
6722
+ <li>3=RuleDisabled</li>
6723
+ */
6724
+ RuleState?: number
6725
+
6726
+ /**
6727
+ * 规则名称
6728
+ */
6729
+ Name?: string
6730
+ }
6731
+
5915
6732
  /**
5916
6733
  * UnBindingAllPolicyObject请求参数结构体
5917
6734
  */
@@ -5988,15 +6805,79 @@ export interface DescribePolicyGroupInfoEventCondition {
5988
6805
  }
5989
6806
 
5990
6807
  /**
5991
- * SendCustomAlarmMsg返回参数结构体
6808
+ * prometheus 报警规则 KV 参数
5992
6809
  */
5993
- export interface SendCustomAlarmMsgResponse {
6810
+ export interface PrometheusRuleKV {
6811
+ /**
6812
+ * 键
6813
+ */
6814
+ Key: string
6815
+
6816
+ /**
6817
+ * 值
6818
+ */
6819
+ Value: string
6820
+ }
6821
+
6822
+ /**
6823
+ * ModifyAlarmPolicyStatus返回参数结构体
6824
+ */
6825
+ export interface ModifyAlarmPolicyStatusResponse {
5994
6826
  /**
5995
6827
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5996
6828
  */
5997
6829
  RequestId?: string
5998
6830
  }
5999
6831
 
6832
+ /**
6833
+ * GetPrometheusAgentManagementCommand返回参数结构体
6834
+ */
6835
+ export interface GetPrometheusAgentManagementCommandResponse {
6836
+ /**
6837
+ * Agent 管理命令
6838
+ */
6839
+ Command?: ManagementCommand
6840
+
6841
+ /**
6842
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
6843
+ */
6844
+ RequestId?: string
6845
+ }
6846
+
6847
+ /**
6848
+ * UpdateRecordingRule请求参数结构体
6849
+ */
6850
+ export interface UpdateRecordingRuleRequest {
6851
+ /**
6852
+ * 聚合规则名称
6853
+ */
6854
+ Name: string
6855
+
6856
+ /**
6857
+ * 聚合规则组内容,格式为 yaml,通过 base64 进行编码。
6858
+ */
6859
+ Group: string
6860
+
6861
+ /**
6862
+ * Prometheus 实例 ID
6863
+ */
6864
+ InstanceId: string
6865
+
6866
+ /**
6867
+ * Prometheus 聚合规则 ID
6868
+ */
6869
+ RuleId: string
6870
+
6871
+ /**
6872
+ * 规则状态码,取值如下:
6873
+ <li>1=RuleDeleted</li>
6874
+ <li>2=RuleEnabled</li>
6875
+ <li>3=RuleDisabled</li>
6876
+ 默认状态码为 2 启用。
6877
+ */
6878
+ RuleState?: number
6879
+ }
6880
+
6000
6881
  /**
6001
6882
  * 告警策略指标触发条件
6002
6883
  */
@@ -6107,6 +6988,205 @@ export interface DescribePolicyConditionListCondition {
6107
6988
  SupportRegions: Array<string>
6108
6989
  }
6109
6990
 
6991
+ /**
6992
+ * Prometheus 服务响应体
6993
+ */
6994
+ export interface PrometheusInstancesItem {
6995
+ /**
6996
+ * 实例ID。
6997
+ */
6998
+ InstanceId: string
6999
+
7000
+ /**
7001
+ * 实例名称。
7002
+ */
7003
+ InstanceName: string
7004
+
7005
+ /**
7006
+ * 实例计费模式。取值范围:
7007
+ <ul>
7008
+ <li>2:包年包月</li>
7009
+ <li>3:按量</li>
7010
+ </ul>
7011
+ */
7012
+ InstanceChargeType: number
7013
+
7014
+ /**
7015
+ * 地域 ID
7016
+ */
7017
+ RegionId: number
7018
+
7019
+ /**
7020
+ * 可用区
7021
+ */
7022
+ Zone: string
7023
+
7024
+ /**
7025
+ * VPC ID
7026
+ */
7027
+ VpcId: string
7028
+
7029
+ /**
7030
+ * 子网 ID
7031
+ */
7032
+ SubnetId: string
7033
+
7034
+ /**
7035
+ * 存储周期
7036
+ 注意:此字段可能返回 null,表示取不到有效值。
7037
+ */
7038
+ DataRetentionTime: number
7039
+
7040
+ /**
7041
+ * 实例业务状态。取值范围:
7042
+ <ul>
7043
+ <li>1:正在创建</li>
7044
+ <li>2:运行中</li>
7045
+ <li>3:异常</li>
7046
+ <li>4:重建中</li>
7047
+ <li>5:销毁中</li>
7048
+ <li>6:已停服</li>
7049
+ <li>8:欠费停服中</li>
7050
+ <li>9:欠费已停服</li>
7051
+ </ul>
7052
+ */
7053
+ InstanceStatus: number
7054
+
7055
+ /**
7056
+ * Grafana 面板 URL
7057
+ 注意:此字段可能返回 null,表示取不到有效值。
7058
+ */
7059
+ GrafanaURL: string
7060
+
7061
+ /**
7062
+ * 创建时间
7063
+ */
7064
+ CreatedAt: string
7065
+
7066
+ /**
7067
+ * 是否开启 Grafana
7068
+ <li>0:不开启</li>
7069
+ <li>1:开启</li>
7070
+ */
7071
+ EnableGrafana: number
7072
+
7073
+ /**
7074
+ * 实例IPV4地址
7075
+ 注意:此字段可能返回 null,表示取不到有效值。
7076
+ */
7077
+ IPv4Address: string
7078
+
7079
+ /**
7080
+ * 实例关联的标签列表。
7081
+ 注意:此字段可能返回 null,表示取不到有效值。
7082
+ */
7083
+ TagSpecification: Array<PrometheusTag>
7084
+
7085
+ /**
7086
+ * 购买的实例过期时间
7087
+ 注意:此字段可能返回 null,表示取不到有效值。
7088
+ */
7089
+ ExpireTime: string
7090
+
7091
+ /**
7092
+ * 计费状态
7093
+ <ul>
7094
+ <li>1:正常</li>
7095
+ <li>2:过期</li>
7096
+ <li>3:销毁</li>
7097
+ <li>4:分配中</li>
7098
+ <li>5:分配失败</li>
7099
+ </ul>
7100
+ 注意:此字段可能返回 null,表示取不到有效值。
7101
+ */
7102
+ ChargeStatus: number
7103
+
7104
+ /**
7105
+ * 规格名称
7106
+ 注意:此字段可能返回 null,表示取不到有效值。
7107
+ */
7108
+ SpecName: string
7109
+
7110
+ /**
7111
+ * 自动续费标记
7112
+ <ul>
7113
+ <li>0:不自动续费</li>
7114
+ <li>1:开启自动续费</li>
7115
+ <li>2:禁止自动续费</li>
7116
+ <li>-1:无效</ii>
7117
+ </ul>
7118
+ 注意:此字段可能返回 null,表示取不到有效值。
7119
+ */
7120
+ AutoRenewFlag: number
7121
+
7122
+ /**
7123
+ * 是否快过期
7124
+ <ul>
7125
+ <li>0:否</li>
7126
+ <li>1:快过期</li>
7127
+ </ul>
7128
+ 注意:此字段可能返回 null,表示取不到有效值。
7129
+ */
7130
+ IsNearExpire: number
7131
+
7132
+ /**
7133
+ * 数据写入需要的 Token
7134
+ 注意:此字段可能返回 null,表示取不到有效值。
7135
+ */
7136
+ AuthToken: string
7137
+
7138
+ /**
7139
+ * Prometheus Remote Write 的地址
7140
+ 注意:此字段可能返回 null,表示取不到有效值。
7141
+ */
7142
+ RemoteWrite: string
7143
+
7144
+ /**
7145
+ * Prometheus HTTP Api 根地址
7146
+ 注意:此字段可能返回 null,表示取不到有效值。
7147
+ */
7148
+ ApiRootPath: string
7149
+
7150
+ /**
7151
+ * Proxy 的地址
7152
+ 注意:此字段可能返回 null,表示取不到有效值。
7153
+ */
7154
+ ProxyAddress: string
7155
+
7156
+ /**
7157
+ * Grafana 运行状态
7158
+ <ul>
7159
+ <li>1:正在创建</li>
7160
+ <li>2:运行中</li>
7161
+ <li>3:异常</li>
7162
+ <li>4:重启中</li>
7163
+ <li>5:销毁中</li>
7164
+ <li>6:已停机</li>
7165
+ <li>7:已删除</li>
7166
+ </ul>
7167
+ 注意:此字段可能返回 null,表示取不到有效值。
7168
+ */
7169
+ GrafanaStatus: number
7170
+
7171
+ /**
7172
+ * Grafana IP 白名单列表,使用英文分号分隔
7173
+ 注意:此字段可能返回 null,表示取不到有效值。
7174
+ */
7175
+ GrafanaIpWhiteList: string
7176
+
7177
+ /**
7178
+ * 实例的授权信息
7179
+ 注意:此字段可能返回 null,表示取不到有效值。
7180
+ */
7181
+ Grant: PrometheusInstanceGrantInfo
7182
+
7183
+ /**
7184
+ * 绑定的 Grafana 实例 ID
7185
+ 注意:此字段可能返回 null,表示取不到有效值。
7186
+ */
7187
+ GrafanaInstanceId: string
7188
+ }
7189
+
6110
7190
  /**
6111
7191
  * DeleteServiceDiscovery请求参数结构体
6112
7192
  */
@@ -6142,14 +7222,20 @@ export interface DeleteServiceDiscoveryRequest {
6142
7222
  }
6143
7223
 
6144
7224
  /**
6145
- * 告警策略事件触发条件
7225
+ * DescribeProductEventList返回的Events里的GroupInfo
6146
7226
  */
6147
- export interface AlarmPolicyEventCondition {
7227
+ export interface DescribeProductEventListEventsGroupInfo {
6148
7228
  /**
6149
- * 告警触发条件列表
7229
+ * 策略ID
6150
7230
  注意:此字段可能返回 null,表示取不到有效值。
6151
7231
  */
6152
- Rules: Array<AlarmPolicyRule>
7232
+ GroupId: number
7233
+
7234
+ /**
7235
+ * 策略名
7236
+ 注意:此字段可能返回 null,表示取不到有效值。
7237
+ */
7238
+ GroupName: string
6153
7239
  }
6154
7240
 
6155
7241
  /**
@@ -6287,6 +7373,16 @@ export interface SetDefaultAlarmPolicyResponse {
6287
7373
  RequestId?: string
6288
7374
  }
6289
7375
 
7376
+ /**
7377
+ * UninstallGrafanaDashboard返回参数结构体
7378
+ */
7379
+ export interface UninstallGrafanaDashboardResponse {
7380
+ /**
7381
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
7382
+ */
7383
+ RequestId?: string
7384
+ }
7385
+
6290
7386
  /**
6291
7387
  * BindingPolicyObject返回参数结构体
6292
7388
  */