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
@@ -218,6 +218,24 @@ export interface DescribeServiceDiscoveryResponse {
218
218
  */
219
219
  RequestId?: string;
220
220
  }
221
+ /**
222
+ * DescribeRecordingRules返回参数结构体
223
+ */
224
+ export interface DescribeRecordingRulesResponse {
225
+ /**
226
+ * 规则组数量
227
+ */
228
+ TotalCount: number;
229
+ /**
230
+ * 规则组详情
231
+ 注意:此字段可能返回 null,表示取不到有效值。
232
+ */
233
+ RecordingRuleSet: Array<RecordingRuleSet>;
234
+ /**
235
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
236
+ */
237
+ RequestId?: string;
238
+ }
221
239
  /**
222
240
  * Prometheus 托管服务标签
223
241
  */
@@ -232,6 +250,15 @@ export interface PrometheusTag {
232
250
  */
233
251
  Value: string;
234
252
  }
253
+ /**
254
+ * DestroyPrometheusInstance返回参数结构体
255
+ */
256
+ export interface DestroyPrometheusInstanceResponse {
257
+ /**
258
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
259
+ */
260
+ RequestId?: string;
261
+ }
235
262
  /**
236
263
  * 指标告警配置
237
264
  */
@@ -351,30 +378,40 @@ export interface BindingPolicyObjectRequest {
351
378
  Dimensions?: Array<BindingPolicyObjectDimension>;
352
379
  }
353
380
  /**
354
- * CreateServiceDiscovery返回参数结构体
381
+ * DescribeAlarmNoticeCallbacks请求参数结构体
355
382
  */
356
- export interface CreateServiceDiscoveryResponse {
357
- /**
358
- * 创建成功之后,返回对应服务发现信息
359
- */
360
- ServiceDiscovery?: ServiceDiscoveryItem;
383
+ export interface DescribeAlarmNoticeCallbacksRequest {
361
384
  /**
362
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
385
+ * 模块名,这里填“monitor”
363
386
  */
364
- RequestId?: string;
387
+ Module: string;
365
388
  }
366
389
  /**
367
- * prometheus 报警规则 KV 参数
390
+ * DescribeBindingPolicyObjectList返回参数结构体
368
391
  */
369
- export interface PrometheusRuleKV {
392
+ export interface DescribeBindingPolicyObjectListResponse {
370
393
  /**
371
- *
394
+ * 绑定的对象实例列表
395
+ 注意:此字段可能返回 null,表示取不到有效值。
372
396
  */
373
- Key: string;
397
+ List: Array<DescribeBindingPolicyObjectListInstance>;
374
398
  /**
375
- *
399
+ * 绑定的对象实例总数
376
400
  */
377
- Value: string;
401
+ Total: number;
402
+ /**
403
+ * 未屏蔽的对象实例数
404
+ */
405
+ NoShieldedSum: number;
406
+ /**
407
+ * 绑定的实例分组信息,没有绑定实例分组则为空
408
+ 注意:此字段可能返回 null,表示取不到有效值。
409
+ */
410
+ InstanceGroup: DescribeBindingPolicyObjectListInstanceGroup;
411
+ /**
412
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
413
+ */
414
+ RequestId?: string;
378
415
  }
379
416
  /**
380
417
  * PutMonitorData返回参数结构体
@@ -425,6 +462,15 @@ export interface DeleteServiceDiscoveryResponse {
425
462
  */
426
463
  RequestId?: string;
427
464
  }
465
+ /**
466
+ * CreatePrometheusScrapeJob返回参数结构体
467
+ */
468
+ export interface CreatePrometheusScrapeJobResponse {
469
+ /**
470
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
471
+ */
472
+ RequestId?: string;
473
+ }
428
474
  /**
429
475
  * 查询策略输出的用户回调信息
430
476
  */
@@ -528,6 +574,34 @@ export interface CreateAlarmPolicyRequest {
528
574
  */
529
575
  GroupBy?: Array<string>;
530
576
  }
577
+ /**
578
+ * CreateExporterIntegration请求参数结构体
579
+ */
580
+ export interface CreateExporterIntegrationRequest {
581
+ /**
582
+ * 实例 ID
583
+ */
584
+ InstanceId: string;
585
+ /**
586
+ * Kubernetes 集群类型,取值如下:
587
+ <li> 1= 容器集群(TKE) </li>
588
+ <li> 2=弹性集群<EKS> </li>
589
+ <li> 3= Prometheus管理的弹性集群<MEKS> </li>
590
+ */
591
+ KubeType: number;
592
+ /**
593
+ * 集群 ID
594
+ */
595
+ ClusterId: string;
596
+ /**
597
+ * 类型
598
+ */
599
+ Kind: string;
600
+ /**
601
+ * 集成配置
602
+ */
603
+ Content: string;
604
+ }
531
605
  /**
532
606
  * DescribeAlarmEvents返回参数结构体
533
607
  */
@@ -637,6 +711,48 @@ export interface DescribePolicyGroupInfoResponse {
637
711
  */
638
712
  RequestId?: string;
639
713
  }
714
+ /**
715
+ * prometheus agent
716
+ */
717
+ export interface PrometheusAgent {
718
+ /**
719
+ * Agent 名
720
+ 注意:此字段可能返回 null,表示取不到有效值。
721
+ */
722
+ Name: string;
723
+ /**
724
+ * Agent ID
725
+ */
726
+ AgentId: string;
727
+ /**
728
+ * 实例 ID
729
+ */
730
+ InstanceId: string;
731
+ /**
732
+ * Agent IP
733
+ 注意:此字段可能返回 null,表示取不到有效值。
734
+ */
735
+ Ipv4: string;
736
+ /**
737
+ * 心跳时间
738
+ 注意:此字段可能返回 null,表示取不到有效值。
739
+ */
740
+ HeartbeatTime: string;
741
+ /**
742
+ * 最近一次错误
743
+ 注意:此字段可能返回 null,表示取不到有效值。
744
+ */
745
+ LastError: string;
746
+ /**
747
+ * Agent 版本
748
+ 注意:此字段可能返回 null,表示取不到有效值。
749
+ */
750
+ AgentVersion: string;
751
+ /**
752
+ * Agent 状态
753
+ */
754
+ Status: number;
755
+ }
640
756
  /**
641
757
  * ModifyAlarmPolicyNotice请求参数结构体
642
758
  */
@@ -712,214 +828,118 @@ export interface EventCondition {
712
828
  RuleID: string;
713
829
  }
714
830
  /**
715
- * Prometheus 服务响应体
831
+ * 对业务指标的单位及支持统计周期的描述
716
832
  */
717
- export interface PrometheusInstancesItem {
833
+ export interface MetricSet {
718
834
  /**
719
- * 实例ID。
835
+ * 命名空间,每个云产品会有一个命名空间
720
836
  */
721
- InstanceId: string;
837
+ Namespace: string;
722
838
  /**
723
- * 实例名称。
839
+ * 指标名称
724
840
  */
725
- InstanceName: string;
841
+ MetricName: string;
726
842
  /**
727
- * 实例计费模式。取值范围:
728
- <ul>
729
- <li>2:包年包月</li>
730
- <li>3:按量</li>
731
- </ul>
843
+ * 指标使用的单位
732
844
  */
733
- InstanceChargeType: number;
845
+ Unit: string;
734
846
  /**
735
- * 地域 ID
847
+ * 指标使用的单位
736
848
  */
737
- RegionId: number;
849
+ UnitCname: string;
738
850
  /**
739
- * 可用区
851
+ * 指标支持的统计周期,单位是秒,如60、300
740
852
  */
741
- Zone: string;
853
+ Period: Array<number>;
742
854
  /**
743
- * VPC ID
855
+ * 统计周期内指标方式
744
856
  */
745
- VpcId: string;
857
+ Periods: Array<PeriodsSt>;
746
858
  /**
747
- * 子网 ID
859
+ * 统计指标含义解释
748
860
  */
749
- SubnetId: string;
861
+ Meaning: MetricObjectMeaning;
750
862
  /**
751
- * 存储周期
752
- 注意:此字段可能返回 null,表示取不到有效值。
863
+ * 维度描述信息
753
864
  */
754
- DataRetentionTime: number;
865
+ Dimensions: Array<DimensionsDesc>;
755
866
  /**
756
- * 实例业务状态。取值范围:
757
- <ul>
758
- <li>1:正在创建</li>
759
- <li>2:运行中</li>
760
- <li>3:异常</li>
761
- <li>4:重建中</li>
762
- <li>5:销毁中</li>
763
- <li>6:已停服</li>
764
- <li>8:欠费停服中</li>
765
- <li>9:欠费已停服</li>
766
- </ul>
867
+ * 指标中文名
868
+ 注意:此字段可能返回 null,表示取不到有效值。
767
869
  */
768
- InstanceStatus: number;
870
+ MetricCName: string;
769
871
  /**
770
- * Grafana 面板 URL
872
+ * 指标英文名
771
873
  注意:此字段可能返回 null,表示取不到有效值。
772
874
  */
773
- GrafanaURL: string;
875
+ MetricEName: string;
876
+ }
877
+ /**
878
+ * DescribeConditionsTemplateList请求参数结构体
879
+ */
880
+ export interface DescribeConditionsTemplateListRequest {
774
881
  /**
775
- * 创建时间
882
+ * 固定值,为"monitor"
776
883
  */
777
- CreatedAt: string;
884
+ Module: string;
778
885
  /**
779
- * 是否开启 Grafana
780
- <li>0:不开启</li>
781
- <li>1:开启</li>
886
+ * 视图名,由 [DescribeAllNamespaces](https://cloud.tencent.com/document/product/248/48683) 获得。对于云产品监控,取接口出参的 QceNamespacesNew.N.Id,例如 cvm_device
782
887
  */
783
- EnableGrafana: number;
888
+ ViewName?: string;
784
889
  /**
785
- * 实例IPV4地址
786
- 注意:此字段可能返回 null,表示取不到有效值。
890
+ * 根据触发条件模板名称过滤查询
787
891
  */
788
- IPv4Address: string;
892
+ GroupName?: string;
789
893
  /**
790
- * 实例关联的标签列表。
791
- 注意:此字段可能返回 null,表示取不到有效值。
894
+ * 根据触发条件模板ID过滤查询
792
895
  */
793
- TagSpecification: Array<PrometheusTag>;
896
+ GroupID?: string;
794
897
  /**
795
- * 购买的实例过期时间
796
- 注意:此字段可能返回 null,表示取不到有效值。
898
+ * 分页参数,每页返回的数量,取值1~100,默认20
797
899
  */
798
- ExpireTime: string;
900
+ Limit?: number;
799
901
  /**
800
- * 计费状态
801
- <ul>
802
- <li>1:正常</li>
803
- <li>2:过期</li>
804
- <li>3:销毁</li>
805
- <li>4:分配中</li>
806
- <li>5:分配失败</li>
807
- </ul>
808
- 注意:此字段可能返回 null,表示取不到有效值。
902
+ * 分页参数,页偏移量,从0开始计数,默认0
809
903
  */
810
- ChargeStatus: number;
904
+ Offset?: number;
811
905
  /**
812
- * 规格名称
813
- 注意:此字段可能返回 null,表示取不到有效值。
906
+ * 指定按更新时间的排序方式,asc=升序, desc=降序
814
907
  */
815
- SpecName: string;
908
+ UpdateTimeOrder?: string;
909
+ }
910
+ /**
911
+ * DescribePrometheusScrapeJobs请求参数结构体
912
+ */
913
+ export interface DescribePrometheusScrapeJobsRequest {
816
914
  /**
817
- * 自动续费标记
818
- <ul>
819
- <li>0:不自动续费</li>
820
- <li>1:开启自动续费</li>
821
- <li>2:禁止自动续费</li>
822
- <li>-1:无效</ii>
823
- </ul>
824
- 注意:此字段可能返回 null,表示取不到有效值。
915
+ * 实例 ID
825
916
  */
826
- AutoRenewFlag: number;
917
+ InstanceId: string;
827
918
  /**
828
- * 是否快过期
829
- <ul>
830
- <li>0:否</li>
831
- <li>1:快过期</li>
832
- </ul>
833
- 注意:此字段可能返回 null,表示取不到有效值。
919
+ * Agent ID
834
920
  */
835
- IsNearExpire: number;
921
+ AgentId: string;
836
922
  /**
837
- * 数据写入需要的 Token
838
- 注意:此字段可能返回 null,表示取不到有效值。
923
+ * 任务名
839
924
  */
840
- AuthToken: string;
925
+ Name?: string;
841
926
  /**
842
- * Prometheus Remote Write 的地址
843
- 注意:此字段可能返回 null,表示取不到有效值。
927
+ * 任务 ID 列表
844
928
  */
845
- RemoteWrite: string;
929
+ JobIds?: Array<string>;
846
930
  /**
847
- * Prometheus HTTP Api 根地址
848
- 注意:此字段可能返回 null,表示取不到有效值。
931
+ * 偏移量,默认为0
849
932
  */
850
- ApiRootPath: string;
933
+ Offset?: number;
851
934
  /**
852
- * Proxy 的地址
853
- 注意:此字段可能返回 null,表示取不到有效值。
935
+ * 返回数量,默认为20,最大值为100
854
936
  */
855
- ProxyAddress: string;
856
- /**
857
- * Grafana 运行状态
858
- <ul>
859
- <li>1:正在创建</li>
860
- <li>2:运行中</li>
861
- <li>3:异常</li>
862
- <li>4:重启中</li>
863
- <li>5:销毁中</li>
864
- <li>6:已停机</li>
865
- <li>7:已删除</li>
866
- </ul>
867
- 注意:此字段可能返回 null,表示取不到有效值。
868
- */
869
- GrafanaStatus: number;
870
- /**
871
- * Grafana IP 白名单列表,使用英文分号分隔
872
- 注意:此字段可能返回 null,表示取不到有效值。
873
- */
874
- GrafanaIpWhiteList: string;
875
- /**
876
- * 实例的授权信息
877
- 注意:此字段可能返回 null,表示取不到有效值。
878
- */
879
- Grant: PrometheusInstanceGrantInfo;
880
- /**
881
- * 绑定的 Grafana 实例 ID
882
- 注意:此字段可能返回 null,表示取不到有效值。
883
- */
884
- GrafanaInstanceId: string;
885
- }
886
- /**
887
- * DescribeConditionsTemplateList请求参数结构体
888
- */
889
- export interface DescribeConditionsTemplateListRequest {
890
- /**
891
- * 固定值,为"monitor"
892
- */
893
- Module: string;
894
- /**
895
- * 视图名,由 [DescribeAllNamespaces](https://cloud.tencent.com/document/product/248/48683) 获得。对于云产品监控,取接口出参的 QceNamespacesNew.N.Id,例如 cvm_device
896
- */
897
- ViewName?: string;
898
- /**
899
- * 根据触发条件模板名称过滤查询
900
- */
901
- GroupName?: string;
902
- /**
903
- * 根据触发条件模板ID过滤查询
904
- */
905
- GroupID?: string;
906
- /**
907
- * 分页参数,每页返回的数量,取值1~100,默认20
908
- */
909
- Limit?: number;
910
- /**
911
- * 分页参数,页偏移量,从0开始计数,默认0
912
- */
913
- Offset?: number;
914
- /**
915
- * 指定按更新时间的排序方式,asc=升序, desc=降序
916
- */
917
- UpdateTimeOrder?: string;
918
- }
919
- /**
920
- * CreateAlertRule返回参数结构体
921
- */
922
- export interface CreateAlertRuleResponse {
937
+ Limit?: number;
938
+ }
939
+ /**
940
+ * CreateAlertRule返回参数结构体
941
+ */
942
+ export interface CreateAlertRuleResponse {
923
943
  /**
924
944
  * 规则 ID
925
945
  注意:此字段可能返回 null,表示取不到有效值。
@@ -965,6 +985,62 @@ export interface DescribeBaseMetricsResponse {
965
985
  */
966
986
  RequestId?: string;
967
987
  }
988
+ /**
989
+ * Prometheus 抓取任务
990
+ */
991
+ export interface PrometheusScrapeJob {
992
+ /**
993
+ * 任务名
994
+ 注意:此字段可能返回 null,表示取不到有效值。
995
+ */
996
+ Name: string;
997
+ /**
998
+ * Agent ID
999
+ */
1000
+ AgentId: string;
1001
+ /**
1002
+ * 任务 ID
1003
+ */
1004
+ JobId: string;
1005
+ /**
1006
+ * 配置
1007
+ 注意:此字段可能返回 null,表示取不到有效值。
1008
+ */
1009
+ Config: string;
1010
+ }
1011
+ /**
1012
+ * CreatePrometheusMultiTenantInstancePostPayMode请求参数结构体
1013
+ */
1014
+ export interface CreatePrometheusMultiTenantInstancePostPayModeRequest {
1015
+ /**
1016
+ * 实例名
1017
+ */
1018
+ InstanceName: string;
1019
+ /**
1020
+ * VPC ID
1021
+ */
1022
+ VpcId: string;
1023
+ /**
1024
+ * 子网 ID
1025
+ */
1026
+ SubnetId: string;
1027
+ /**
1028
+ * 数据存储时间(单位天),限制值为15,30,45之一
1029
+ */
1030
+ DataRetentionTime: number;
1031
+ /**
1032
+ * 可用区
1033
+ */
1034
+ Zone: string;
1035
+ /**
1036
+ * 实例的标签
1037
+ */
1038
+ TagSpecification?: Array<PrometheusTag>;
1039
+ /**
1040
+ * 需要关联的 Grafana 实例
1041
+ */
1042
+ GrafanaInstanceId?: string;
1043
+ }
968
1044
  /**
969
1045
  * DescribeMetricData出参
970
1046
  */
@@ -1148,6 +1224,48 @@ export interface SendCustomAlarmMsgRequest {
1148
1224
  */
1149
1225
  Msg: string;
1150
1226
  }
1227
+ /**
1228
+ * CreateRecordingRule请求参数结构体
1229
+ */
1230
+ export interface CreateRecordingRuleRequest {
1231
+ /**
1232
+ * 聚合规则名称
1233
+ */
1234
+ Name: string;
1235
+ /**
1236
+ * 聚合规则组内容,格式为 yaml
1237
+ */
1238
+ Group: string;
1239
+ /**
1240
+ * Prometheus 实例 ID
1241
+ */
1242
+ InstanceId: string;
1243
+ /**
1244
+ * 规则状态码,取值如下:
1245
+ <li>1=RuleDeleted</li>
1246
+ <li>2=RuleEnabled</li>
1247
+ <li>3=RuleDisabled</li>
1248
+ 默认状态码为 2 启用。
1249
+ */
1250
+ RuleState?: number;
1251
+ }
1252
+ /**
1253
+ * ModifyPrometheusInstanceAttributes请求参数结构体
1254
+ */
1255
+ export interface ModifyPrometheusInstanceAttributesRequest {
1256
+ /**
1257
+ * 实例名称
1258
+ */
1259
+ InstanceName: string;
1260
+ /**
1261
+ * 实例 ID
1262
+ */
1263
+ InstanceId: string;
1264
+ /**
1265
+ * 存储时长(取值为 15、30、45。此参数不适用于包年包月实例)
1266
+ */
1267
+ DataRetentionTime?: number;
1268
+ }
1151
1269
  /**
1152
1270
  * DescribePolicyConditionList.ConfigManual.Period
1153
1271
  */
@@ -1168,29 +1286,21 @@ export interface DescribePolicyConditionListConfigManualPeriod {
1168
1286
  Need: boolean;
1169
1287
  }
1170
1288
  /**
1171
- * UnBindingPolicyObject请求参数结构体
1289
+ * 指标配置
1172
1290
  */
1173
- export interface UnBindingPolicyObjectRequest {
1174
- /**
1175
- * 固定值,为"monitor"
1176
- */
1177
- Module: string;
1178
- /**
1179
- * 策略组id,如传入 PolicyId 则该字段被忽略可传入任意值如 0
1180
- */
1181
- GroupId: number;
1291
+ export interface MetricConfig {
1182
1292
  /**
1183
- * 待删除对象实例的唯一id列表,UniqueId从调用[获取已绑定对象列表接口](https://cloud.tencent.com/document/api/248/40570)的出参的List中得到
1293
+ * 允许使用的运算符
1184
1294
  */
1185
- UniqueId: Array<string>;
1295
+ Operator: Array<string>;
1186
1296
  /**
1187
- * 实例分组id,如果按实例分组删除的话UniqueId参数是无效的
1297
+ * 允许配置的数据周期,以秒为单位
1188
1298
  */
1189
- InstanceGroupId?: number;
1299
+ Period: Array<number>;
1190
1300
  /**
1191
- * 告警策略ID,使用此字段时 GroupId 会被忽略
1301
+ * 允许配置的持续周期个数
1192
1302
  */
1193
- PolicyId?: string;
1303
+ ContinuePeriod: Array<number>;
1194
1304
  }
1195
1305
  /**
1196
1306
  * DescribeServiceDiscovery请求参数结构体
@@ -1266,19 +1376,18 @@ export interface DeletePolicyGroupResponse {
1266
1376
  RequestId?: string;
1267
1377
  }
1268
1378
  /**
1269
- * DescribeAccidentEventList返回参数结构体
1379
+ * DescribeConditionsTemplateList返回参数结构体
1270
1380
  */
1271
- export interface DescribeAccidentEventListResponse {
1381
+ export interface DescribeConditionsTemplateListResponse {
1272
1382
  /**
1273
- * 平台事件列表
1274
- 注意:此字段可能返回 null,表示取不到有效值。
1383
+ * 模板总数
1275
1384
  */
1276
- Alarms?: Array<DescribeAccidentEventListAlarms>;
1385
+ Total: number;
1277
1386
  /**
1278
- * 平台事件的总数
1387
+ * 模板列表
1279
1388
  注意:此字段可能返回 null,表示取不到有效值。
1280
1389
  */
1281
- Total?: number;
1390
+ TemplateGroupList: Array<TemplateGroup>;
1282
1391
  /**
1283
1392
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1284
1393
  */
@@ -1336,6 +1445,45 @@ export interface DimensionsDesc {
1336
1445
  */
1337
1446
  Dimensions: Array<string>;
1338
1447
  }
1448
+ /**
1449
+ * ModifyAlarmPolicyStatus请求参数结构体
1450
+ */
1451
+ export interface ModifyAlarmPolicyStatusRequest {
1452
+ /**
1453
+ * 模块名,固定值 monitor
1454
+ */
1455
+ Module: string;
1456
+ /**
1457
+ * 告警策略 ID
1458
+ */
1459
+ PolicyId: string;
1460
+ /**
1461
+ * 启停状态 0=停用 1=启用
1462
+ */
1463
+ Enable: number;
1464
+ }
1465
+ /**
1466
+ * CreatePrometheusMultiTenantInstancePostPayMode返回参数结构体
1467
+ */
1468
+ export interface CreatePrometheusMultiTenantInstancePostPayModeResponse {
1469
+ /**
1470
+ * 实例 ID
1471
+ */
1472
+ InstanceId: string;
1473
+ /**
1474
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1475
+ */
1476
+ RequestId?: string;
1477
+ }
1478
+ /**
1479
+ * UpdatePrometheusAgentStatus返回参数结构体
1480
+ */
1481
+ export interface UpdatePrometheusAgentStatusResponse {
1482
+ /**
1483
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1484
+ */
1485
+ RequestId?: string;
1486
+ }
1339
1487
  /**
1340
1488
  * Prometheus 服务发现信息
1341
1489
  */
@@ -1469,6 +1617,25 @@ export interface DescribeAlertRulesResponse {
1469
1617
  */
1470
1618
  RequestId?: string;
1471
1619
  }
1620
+ /**
1621
+ * DescribeBasicAlarmList返回参数结构体
1622
+ */
1623
+ export interface DescribeBasicAlarmListResponse {
1624
+ /**
1625
+ * 告警列表
1626
+ 注意:此字段可能返回 null,表示取不到有效值。
1627
+ */
1628
+ Alarms?: Array<DescribeBasicAlarmListAlarms>;
1629
+ /**
1630
+ * 总数
1631
+ 注意:此字段可能返回 null,表示取不到有效值。
1632
+ */
1633
+ Total?: number;
1634
+ /**
1635
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1636
+ */
1637
+ RequestId?: string;
1638
+ }
1472
1639
  /**
1473
1640
  * DescribeProductList请求参数结构体
1474
1641
  */
@@ -1503,6 +1670,15 @@ export interface PeriodsSt {
1503
1670
  */
1504
1671
  StatType: Array<string>;
1505
1672
  }
1673
+ /**
1674
+ * BindPrometheusManagedGrafana返回参数结构体
1675
+ */
1676
+ export interface BindPrometheusManagedGrafanaResponse {
1677
+ /**
1678
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1679
+ */
1680
+ RequestId?: string;
1681
+ }
1506
1682
  /**
1507
1683
  * 告警策略详情
1508
1684
  */
@@ -1677,21 +1853,32 @@ export interface AlarmPolicy {
1677
1853
  AdvancedMetricNumber: number;
1678
1854
  }
1679
1855
  /**
1680
- * CreateAlarmPolicy返回参数结构体
1856
+ * DeleteExporterIntegration请求参数结构体
1681
1857
  */
1682
- export interface CreateAlarmPolicyResponse {
1858
+ export interface DeleteExporterIntegrationRequest {
1683
1859
  /**
1684
- * 告警策略 ID
1860
+ * 实例 ID
1685
1861
  */
1686
- PolicyId: string;
1862
+ InstanceId: string;
1687
1863
  /**
1688
- * 可用于实例、实例组的绑定和解绑接口([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
1864
+ * Kubernetes 集群类型,取值如下:
1865
+ <li> 1= 容器集群(TKE) </li>
1866
+ <li> 2=弹性集群<EKS> </li>
1867
+ <li> 3= Prometheus管理的弹性集群<MEKS> </li>
1689
1868
  */
1690
- OriginId: string;
1869
+ KubeType: number;
1691
1870
  /**
1692
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1871
+ * 集群 ID
1693
1872
  */
1694
- RequestId?: string;
1873
+ ClusterId: string;
1874
+ /**
1875
+ * 类型
1876
+ */
1877
+ Kind: string;
1878
+ /**
1879
+ * 名字
1880
+ */
1881
+ Name: string;
1695
1882
  }
1696
1883
  /**
1697
1884
  * ModifyAlarmReceivers返回参数结构体
@@ -1703,11 +1890,41 @@ export interface ModifyAlarmReceiversResponse {
1703
1890
  RequestId?: string;
1704
1891
  }
1705
1892
  /**
1706
- * DescribePolicyConditionList返回参数结构体
1893
+ * Prometheus Agent 管理命令行
1707
1894
  */
1708
- export interface DescribePolicyConditionListResponse {
1895
+ export interface ManagementCommand {
1709
1896
  /**
1710
- * 告警策略条件列表
1897
+ * Agent 安装命令
1898
+ 注意:此字段可能返回 null,表示取不到有效值。
1899
+ */
1900
+ Install: string;
1901
+ /**
1902
+ * Agent 重启命令
1903
+ 注意:此字段可能返回 null,表示取不到有效值。
1904
+ */
1905
+ Restart: string;
1906
+ /**
1907
+ * Agent 停止命令
1908
+ 注意:此字段可能返回 null,表示取不到有效值。
1909
+ */
1910
+ Stop: string;
1911
+ /**
1912
+ * Agent 状态检测命令
1913
+ 注意:此字段可能返回 null,表示取不到有效值。
1914
+ */
1915
+ StatusCheck: string;
1916
+ /**
1917
+ * Agent 日志检测命令
1918
+ 注意:此字段可能返回 null,表示取不到有效值。
1919
+ */
1920
+ LogCheck: string;
1921
+ }
1922
+ /**
1923
+ * DescribePolicyConditionList返回参数结构体
1924
+ */
1925
+ export interface DescribePolicyConditionListResponse {
1926
+ /**
1927
+ * 告警策略条件列表
1711
1928
  */
1712
1929
  Conditions?: Array<DescribePolicyConditionListCondition>;
1713
1930
  /**
@@ -1805,6 +2022,28 @@ export interface DescribeAllNamespacesResponse {
1805
2022
  */
1806
2023
  RequestId?: string;
1807
2024
  }
2025
+ /**
2026
+ * GetPrometheusAgentManagementCommand请求参数结构体
2027
+ */
2028
+ export interface GetPrometheusAgentManagementCommandRequest {
2029
+ /**
2030
+ * Prometheus 实例 ID
2031
+ */
2032
+ InstanceId: string;
2033
+ /**
2034
+ * Prometheus Agent ID
2035
+ */
2036
+ AgentId: string;
2037
+ }
2038
+ /**
2039
+ * ModifyPrometheusInstanceAttributes返回参数结构体
2040
+ */
2041
+ export interface ModifyPrometheusInstanceAttributesResponse {
2042
+ /**
2043
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2044
+ */
2045
+ RequestId?: string;
2046
+ }
1808
2047
  /**
1809
2048
  * DeleteAlarmNotices返回参数结构体
1810
2049
  */
@@ -1815,19 +2054,54 @@ export interface DeleteAlarmNoticesResponse {
1815
2054
  RequestId?: string;
1816
2055
  }
1817
2056
  /**
1818
- * DescribeBasicAlarmList返回参数结构体
2057
+ * TerminatePrometheusInstances请求参数结构体
1819
2058
  */
1820
- export interface DescribeBasicAlarmListResponse {
2059
+ export interface TerminatePrometheusInstancesRequest {
1821
2060
  /**
1822
- * 告警列表
1823
- 注意:此字段可能返回 null,表示取不到有效值。
2061
+ * 实例 ID 列表
1824
2062
  */
1825
- Alarms?: Array<DescribeBasicAlarmListAlarms>;
2063
+ InstanceIds: Array<string>;
2064
+ }
2065
+ /**
2066
+ * UnbindPrometheusManagedGrafana返回参数结构体
2067
+ */
2068
+ export interface UnbindPrometheusManagedGrafanaResponse {
1826
2069
  /**
1827
- * 总数
1828
- 注意:此字段可能返回 null,表示取不到有效值。
2070
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1829
2071
  */
1830
- Total?: number;
2072
+ RequestId?: string;
2073
+ }
2074
+ /**
2075
+ * UpdatePrometheusAgentStatus请求参数结构体
2076
+ */
2077
+ export interface UpdatePrometheusAgentStatusRequest {
2078
+ /**
2079
+ * 实例 ID
2080
+ */
2081
+ InstanceId: string;
2082
+ /**
2083
+ * Agent ID 列表
2084
+ */
2085
+ AgentIds: Array<string>;
2086
+ /**
2087
+ * 要更新的状态
2088
+ <li> 1= 开启 </li>
2089
+ <li> 2= 关闭 </li>
2090
+ */
2091
+ Status: number;
2092
+ }
2093
+ /**
2094
+ * CreateAlarmPolicy返回参数结构体
2095
+ */
2096
+ export interface CreateAlarmPolicyResponse {
2097
+ /**
2098
+ * 告警策略 ID
2099
+ */
2100
+ PolicyId: string;
2101
+ /**
2102
+ * 可用于实例、实例组的绑定和解绑接口([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
2103
+ */
2104
+ OriginId: string;
1831
2105
  /**
1832
2106
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1833
2107
  */
@@ -1962,13 +2236,54 @@ re=正则匹配
1962
2236
  ProductId?: string;
1963
2237
  }
1964
2238
  /**
1965
- * DescribeAlarmNoticeCallbacks请求参数结构体
2239
+ * CreateServiceDiscovery返回参数结构体
1966
2240
  */
1967
- export interface DescribeAlarmNoticeCallbacksRequest {
2241
+ export interface CreateServiceDiscoveryResponse {
1968
2242
  /**
1969
- * 模块名,这里填“monitor”
2243
+ * 创建成功之后,返回对应服务发现信息
1970
2244
  */
1971
- Module: string;
2245
+ ServiceDiscovery?: ServiceDiscoveryItem;
2246
+ /**
2247
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2248
+ */
2249
+ RequestId?: string;
2250
+ }
2251
+ /**
2252
+ * CreatePrometheusAgent返回参数结构体
2253
+ */
2254
+ export interface CreatePrometheusAgentResponse {
2255
+ /**
2256
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2257
+ */
2258
+ RequestId?: string;
2259
+ }
2260
+ /**
2261
+ * DescribeExporterIntegrations请求参数结构体
2262
+ */
2263
+ export interface DescribeExporterIntegrationsRequest {
2264
+ /**
2265
+ * 实例 ID
2266
+ */
2267
+ InstanceId: string;
2268
+ /**
2269
+ * Kubernetes 集群类型,取值如下:
2270
+ <li> 1= 容器集群(TKE) </li>
2271
+ <li> 2=弹性集群<EKS> </li>
2272
+ <li> 3= Prometheus管理的弹性集群<MEKS> </li>
2273
+ */
2274
+ KubeType: number;
2275
+ /**
2276
+ * 集群 ID
2277
+ */
2278
+ ClusterId: string;
2279
+ /**
2280
+ * 类型
2281
+ */
2282
+ Kind?: string;
2283
+ /**
2284
+ * 名字
2285
+ */
2286
+ Name?: string;
1972
2287
  }
1973
2288
  /**
1974
2289
  * DescribeProductEventList返回的Events的Dimensions
@@ -1999,6 +2314,36 @@ export interface ModifyAlarmPolicyConditionResponse {
1999
2314
  */
2000
2315
  RequestId?: string;
2001
2316
  }
2317
+ /**
2318
+ * UpgradeGrafanaDashboard请求参数结构体
2319
+ */
2320
+ export interface UpgradeGrafanaDashboardRequest {
2321
+ /**
2322
+ * 实例 ID
2323
+ */
2324
+ InstanceId: string;
2325
+ /**
2326
+ * Prometheus 集成项 Code,升级对应的 Dashboard,取值如下:
2327
+ <li>spring_mvc</li>
2328
+ <li>mysql</li>
2329
+ <li>go</li>
2330
+ <li>redis</li>
2331
+ <li>jvm</li>
2332
+ <li>pgsql</li>
2333
+ <li>mongo</li>
2334
+ <li>kafka</li>
2335
+ <li>es</li>
2336
+ <li>flink</li>
2337
+ <li>blackbox</li>
2338
+ <li>consule</li>
2339
+ <li>memcached</li>
2340
+ <li>zk</li>
2341
+ <li>tps</li>
2342
+ <li>istio</li>
2343
+ <li>etcd</li>
2344
+ */
2345
+ IntegrationCodes?: Array<string>;
2346
+ }
2002
2347
  /**
2003
2348
  * 告警对象所属实例组
2004
2349
  */
@@ -2013,17 +2358,13 @@ export interface InstanceGroups {
2013
2358
  Name: string;
2014
2359
  }
2015
2360
  /**
2016
- * 实例对象的维度组合
2361
+ * DestroyPrometheusInstance请求参数结构体
2017
2362
  */
2018
- export interface Dimension {
2019
- /**
2020
- * 实例维度名称
2021
- */
2022
- Name: string;
2363
+ export interface DestroyPrometheusInstanceRequest {
2023
2364
  /**
2024
- * 实例维度值
2365
+ * 实例 ID,该实例必须先被 terminate
2025
2366
  */
2026
- Value: string;
2367
+ InstanceId: string;
2027
2368
  }
2028
2369
  /**
2029
2370
  * 实例的授权信息
@@ -2054,6 +2395,19 @@ export interface PrometheusInstanceGrantInfo {
2054
2395
  */
2055
2396
  HasApiOperation: number;
2056
2397
  }
2398
+ /**
2399
+ * UnbindPrometheusManagedGrafana请求参数结构体
2400
+ */
2401
+ export interface UnbindPrometheusManagedGrafanaRequest {
2402
+ /**
2403
+ * Prometheus 实例 ID
2404
+ */
2405
+ InstanceId: string;
2406
+ /**
2407
+ * Grafana 实例 ID
2408
+ */
2409
+ GrafanaId: string;
2410
+ }
2057
2411
  /**
2058
2412
  * 模板列表
2059
2413
  */
@@ -2393,6 +2747,27 @@ export interface UserNotice {
2393
2747
  */
2394
2748
  Weekday?: Array<number>;
2395
2749
  }
2750
+ /**
2751
+ * UpdatePrometheusScrapeJob请求参数结构体
2752
+ */
2753
+ export interface UpdatePrometheusScrapeJobRequest {
2754
+ /**
2755
+ * 实例 ID
2756
+ */
2757
+ InstanceId: string;
2758
+ /**
2759
+ * Agent ID
2760
+ */
2761
+ AgentId: string;
2762
+ /**
2763
+ * 抓取任务 ID
2764
+ */
2765
+ JobId: string;
2766
+ /**
2767
+ * 抓取任务配置
2768
+ */
2769
+ Config: string;
2770
+ }
2396
2771
  /**
2397
2772
  * 告警策略过滤条件
2398
2773
  */
@@ -2422,6 +2797,15 @@ export interface DescribeAlarmNoticeCallbacksResponse {
2422
2797
  */
2423
2798
  RequestId?: string;
2424
2799
  }
2800
+ /**
2801
+ * UpdateExporterIntegration返回参数结构体
2802
+ */
2803
+ export interface UpdateExporterIntegrationResponse {
2804
+ /**
2805
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2806
+ */
2807
+ RequestId?: string;
2808
+ }
2425
2809
  /**
2426
2810
  * ModifyAlarmPolicyCondition请求参数结构体
2427
2811
  */
@@ -2456,14 +2840,27 @@ export interface ModifyAlarmPolicyConditionRequest {
2456
2840
  GroupBy?: Array<string>;
2457
2841
  }
2458
2842
  /**
2459
- * ModifyAlarmPolicyStatus返回参数结构体
2843
+ * ModifyAlarmNotice返回参数结构体
2460
2844
  */
2461
- export interface ModifyAlarmPolicyStatusResponse {
2845
+ export interface ModifyAlarmNoticeResponse {
2462
2846
  /**
2463
2847
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2464
2848
  */
2465
2849
  RequestId?: string;
2466
2850
  }
2851
+ /**
2852
+ * BindPrometheusManagedGrafana请求参数结构体
2853
+ */
2854
+ export interface BindPrometheusManagedGrafanaRequest {
2855
+ /**
2856
+ * Prometheus 实例 ID
2857
+ */
2858
+ InstanceId: string;
2859
+ /**
2860
+ * Grafana 可视化服务实例 ID
2861
+ */
2862
+ GrafanaId: string;
2863
+ }
2467
2864
  /**
2468
2865
  * 实例维度组合数组
2469
2866
  */
@@ -2522,6 +2919,15 @@ export interface DescribeAlarmPolicyResponse {
2522
2919
  */
2523
2920
  RequestId?: string;
2524
2921
  }
2922
+ /**
2923
+ * DeleteExporterIntegration返回参数结构体
2924
+ */
2925
+ export interface DeleteExporterIntegrationResponse {
2926
+ /**
2927
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2928
+ */
2929
+ RequestId?: string;
2930
+ }
2525
2931
  /**
2526
2932
  * UpdateServiceDiscovery返回参数结构体
2527
2933
  */
@@ -2549,51 +2955,17 @@ export interface DescribeMonitorTypesResponse {
2549
2955
  RequestId?: string;
2550
2956
  }
2551
2957
  /**
2552
- * 对业务指标的单位及支持统计周期的描述
2958
+ * 实例对象的维度组合
2553
2959
  */
2554
- export interface MetricSet {
2555
- /**
2556
- * 命名空间,每个云产品会有一个命名空间
2557
- */
2558
- Namespace: string;
2559
- /**
2560
- * 指标名称
2561
- */
2562
- MetricName: string;
2563
- /**
2564
- * 指标使用的单位
2565
- */
2566
- Unit: string;
2567
- /**
2568
- * 指标使用的单位
2569
- */
2570
- UnitCname: string;
2571
- /**
2572
- * 指标支持的统计周期,单位是秒,如60、300
2573
- */
2574
- Period: Array<number>;
2575
- /**
2576
- * 统计周期内指标方式
2577
- */
2578
- Periods: Array<PeriodsSt>;
2579
- /**
2580
- * 统计指标含义解释
2581
- */
2582
- Meaning: MetricObjectMeaning;
2583
- /**
2584
- * 维度描述信息
2585
- */
2586
- Dimensions: Array<DimensionsDesc>;
2960
+ export interface Dimension {
2587
2961
  /**
2588
- * 指标中文名
2589
- 注意:此字段可能返回 null,表示取不到有效值。
2962
+ * 实例维度名称
2590
2963
  */
2591
- MetricCName: string;
2964
+ Name: string;
2592
2965
  /**
2593
- * 指标英文名
2594
- 注意:此字段可能返回 null,表示取不到有效值。
2966
+ * 实例维度值
2595
2967
  */
2596
- MetricEName: string;
2968
+ Value: string;
2597
2969
  }
2598
2970
  /**
2599
2971
  * DescribeBasicAlarmList返回的Alarms
@@ -2710,33 +3082,18 @@ export interface DescribeBasicAlarmListAlarms {
2710
3082
  InstanceGroup: Array<InstanceGroup>;
2711
3083
  }
2712
3084
  /**
2713
- * UpdateServiceDiscovery请求参数结构体
3085
+ * UpdateRecordingRule返回参数结构体
2714
3086
  */
2715
- export interface UpdateServiceDiscoveryRequest {
2716
- /**
2717
- * Prometheus 实例 ID
2718
- */
2719
- InstanceId: string;
2720
- /**
2721
- * <li>类型是 TKE,为对应的腾讯云容器服务集群 ID</li>
2722
- */
2723
- KubeClusterId: string;
2724
- /**
2725
- * 用户 Kubernetes 集群类型:
2726
- <li> 1 = 容器服务集群(TKE) </li>
2727
- */
2728
- KubeType: number;
3087
+ export interface UpdateRecordingRuleResponse {
2729
3088
  /**
2730
- * 服务发现类型,取值如下:
2731
- <li> 1 = ServiceMonitor</li>
2732
- <li> 2 = PodMonitor</li>
2733
- <li> 3 = JobMonitor</li>
3089
+ * 规则 ID
3090
+ 注意:此字段可能返回 null,表示取不到有效值。
2734
3091
  */
2735
- Type: number;
3092
+ RuleId: string;
2736
3093
  /**
2737
- * 服务发现配置信息
3094
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2738
3095
  */
2739
- Yaml: string;
3096
+ RequestId?: string;
2740
3097
  }
2741
3098
  /**
2742
3099
  * CreateAlarmNotice返回参数结构体
@@ -2902,18 +3259,17 @@ export interface ModifyPolicyGroupResponse {
2902
3259
  RequestId?: string;
2903
3260
  }
2904
3261
  /**
2905
- * DescribePolicyConditionList.ConfigManual.CalcType
3262
+ * DescribeAlarmMetrics返回参数结构体
2906
3263
  */
2907
- export interface DescribePolicyConditionListConfigManualCalcType {
3264
+ export interface DescribeAlarmMetricsResponse {
2908
3265
  /**
2909
- * CalcType 取值
2910
- 注意:此字段可能返回 null,表示取不到有效值。
3266
+ * 告警指标列表
2911
3267
  */
2912
- Keys: Array<number>;
3268
+ Metrics?: Array<Metric>;
2913
3269
  /**
2914
- * 是否必须
3270
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2915
3271
  */
2916
- Need: boolean;
3272
+ RequestId?: string;
2917
3273
  }
2918
3274
  /**
2919
3275
  * 告警条件
@@ -2963,6 +3319,19 @@ export interface Condition {
2963
3319
  */
2964
3320
  Unit: string;
2965
3321
  }
3322
+ /**
3323
+ * UpdateAlertRule返回参数结构体
3324
+ */
3325
+ export interface UpdateAlertRuleResponse {
3326
+ /**
3327
+ * 规则 ID
3328
+ */
3329
+ RuleId: string;
3330
+ /**
3331
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3332
+ */
3333
+ RequestId?: string;
3334
+ }
2966
3335
  /**
2967
3336
  * PutMonitorData请求参数结构体
2968
3337
  */
@@ -2985,21 +3354,38 @@ export interface PutMonitorDataRequest {
2985
3354
  AnnounceInstance?: string;
2986
3355
  }
2987
3356
  /**
2988
- * ModifyAlarmPolicyStatus请求参数结构体
3357
+ * DescribePrometheusAgents请求参数结构体
2989
3358
  */
2990
- export interface ModifyAlarmPolicyStatusRequest {
3359
+ export interface DescribePrometheusAgentsRequest {
2991
3360
  /**
2992
- * 模块名,固定值 monitor
3361
+ * 实例 ID
2993
3362
  */
2994
- Module: string;
3363
+ InstanceId: string;
2995
3364
  /**
2996
- * 告警策略 ID
3365
+ * Agent 名称
2997
3366
  */
2998
- PolicyId: string;
3367
+ Name?: string;
2999
3368
  /**
3000
- * 启停状态 0=停用 1=启用
3369
+ * Agent ID 列表
3001
3370
  */
3002
- Enable: number;
3371
+ AgentIds?: Array<string>;
3372
+ /**
3373
+ * 偏移量,默认为0
3374
+ */
3375
+ Offset?: number;
3376
+ /**
3377
+ * 返回数量,默认为20,最大值为100
3378
+ */
3379
+ Limit?: number;
3380
+ }
3381
+ /**
3382
+ * TerminatePrometheusInstances返回参数结构体
3383
+ */
3384
+ export interface TerminatePrometheusInstancesResponse {
3385
+ /**
3386
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3387
+ */
3388
+ RequestId?: string;
3003
3389
  }
3004
3390
  /**
3005
3391
  * DescribeMetricData接口出参
@@ -3064,6 +3450,39 @@ export interface BindingPolicyTagRequest {
3064
3450
  */
3065
3451
  BatchTag?: Array<PolicyTag>;
3066
3452
  }
3453
+ /**
3454
+ * export 集成配置
3455
+ */
3456
+ export interface IntegrationConfiguration {
3457
+ /**
3458
+ * 名字
3459
+ */
3460
+ Name: string;
3461
+ /**
3462
+ * 类型
3463
+ */
3464
+ Kind: string;
3465
+ /**
3466
+ * 内容
3467
+ */
3468
+ Content: string;
3469
+ /**
3470
+ * 状态
3471
+ */
3472
+ Status: number;
3473
+ /**
3474
+ * 实例类型
3475
+ */
3476
+ Category: string;
3477
+ /**
3478
+ * 实例描述
3479
+ */
3480
+ InstanceDesc: string;
3481
+ /**
3482
+ * dashboard 的 URL
3483
+ */
3484
+ GrafanaDashboardURL: string;
3485
+ }
3067
3486
  /**
3068
3487
  * UpdateAlertRule请求参数结构体
3069
3488
  */
@@ -3116,31 +3535,14 @@ export interface UpdateAlertRuleRequest {
3116
3535
  Type?: string;
3117
3536
  }
3118
3537
  /**
3119
- * DescribeBindingPolicyObjectList返回参数结构体
3538
+ * 告警策略事件触发条件
3120
3539
  */
3121
- export interface DescribeBindingPolicyObjectListResponse {
3122
- /**
3123
- * 绑定的对象实例列表
3124
- 注意:此字段可能返回 null,表示取不到有效值。
3125
- */
3126
- List: Array<DescribeBindingPolicyObjectListInstance>;
3127
- /**
3128
- * 绑定的对象实例总数
3129
- */
3130
- Total: number;
3131
- /**
3132
- * 未屏蔽的对象实例数
3133
- */
3134
- NoShieldedSum: number;
3540
+ export interface AlarmPolicyEventCondition {
3135
3541
  /**
3136
- * 绑定的实例分组信息,没有绑定实例分组则为空
3542
+ * 告警触发条件列表
3137
3543
  注意:此字段可能返回 null,表示取不到有效值。
3138
3544
  */
3139
- InstanceGroup: DescribeBindingPolicyObjectListInstanceGroup;
3140
- /**
3141
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3142
- */
3143
- RequestId?: string;
3545
+ Rules: Array<AlarmPolicyRule>;
3144
3546
  }
3145
3547
  /**
3146
3548
  * 查询策略输出的模板策略组信息
@@ -3220,6 +3622,15 @@ export interface UnBindingPolicyObjectResponse {
3220
3622
  */
3221
3623
  RequestId?: string;
3222
3624
  }
3625
+ /**
3626
+ * SendCustomAlarmMsg返回参数结构体
3627
+ */
3628
+ export interface SendCustomAlarmMsgResponse {
3629
+ /**
3630
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3631
+ */
3632
+ RequestId?: string;
3633
+ }
3223
3634
  /**
3224
3635
  * DescribeBasicAlarmList返回的Alarms里的InstanceGroup
3225
3636
  */
@@ -3358,6 +3769,19 @@ export interface DeleteAlarmNoticesRequest {
3358
3769
  */
3359
3770
  NoticeIds: Array<string>;
3360
3771
  }
3772
+ /**
3773
+ * DescribeExporterIntegrations返回参数结构体
3774
+ */
3775
+ export interface DescribeExporterIntegrationsResponse {
3776
+ /**
3777
+ * 集成配置列表
3778
+ */
3779
+ IntegrationSet: Array<IntegrationConfiguration>;
3780
+ /**
3781
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3782
+ */
3783
+ RequestId?: string;
3784
+ }
3361
3785
  /**
3362
3786
  * DescribePolicyConditionList.ConfigManual.PeriodNum
3363
3787
  */
@@ -3377,6 +3801,15 @@ export interface DescribePolicyConditionListConfigManualPeriodNum {
3377
3801
  */
3378
3802
  Need: boolean;
3379
3803
  }
3804
+ /**
3805
+ * UpgradeGrafanaDashboard返回参数结构体
3806
+ */
3807
+ export interface UpgradeGrafanaDashboardResponse {
3808
+ /**
3809
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3810
+ */
3811
+ RequestId?: string;
3812
+ }
3380
3813
  /**
3381
3814
  * DescribeAllNamespaces请求参数结构体
3382
3815
  */
@@ -3469,30 +3902,40 @@ export interface PolicyGroup {
3469
3902
  IsUnionRule: number;
3470
3903
  }
3471
3904
  /**
3472
- * UpdateAlertRule返回参数结构体
3905
+ * DeleteRecordingRules请求参数结构体
3473
3906
  */
3474
- export interface UpdateAlertRuleResponse {
3907
+ export interface DeleteRecordingRulesRequest {
3475
3908
  /**
3476
- * 规则 ID
3909
+ * 规则 ID 列表
3477
3910
  */
3478
- RuleId: string;
3911
+ RuleIds: Array<string>;
3912
+ /**
3913
+ * Prometheus 实例 ID
3914
+ */
3915
+ InstanceId: string;
3916
+ }
3917
+ /**
3918
+ * UpdatePrometheusScrapeJob返回参数结构体
3919
+ */
3920
+ export interface UpdatePrometheusScrapeJobResponse {
3479
3921
  /**
3480
3922
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3481
3923
  */
3482
3924
  RequestId?: string;
3483
3925
  }
3484
3926
  /**
3485
- * DescribeAlarmMetrics返回参数结构体
3927
+ * DescribePolicyConditionList.ConfigManual.CalcType
3486
3928
  */
3487
- export interface DescribeAlarmMetricsResponse {
3929
+ export interface DescribePolicyConditionListConfigManualCalcType {
3488
3930
  /**
3489
- * 告警指标列表
3931
+ * CalcType 取值
3932
+ 注意:此字段可能返回 null,表示取不到有效值。
3490
3933
  */
3491
- Metrics?: Array<Metric>;
3934
+ Keys: Array<number>;
3492
3935
  /**
3493
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3936
+ * 是否必须
3494
3937
  */
3495
- RequestId?: string;
3938
+ Need: boolean;
3496
3939
  }
3497
3940
  /**
3498
3941
  * DescribePolicyGroupList接口策略组绑定的实例分组信息
@@ -3626,18 +4069,37 @@ export interface DescribeAlarmPoliciesRequest {
3626
4069
  OneClickPolicyType?: Array<string>;
3627
4070
  }
3628
4071
  /**
3629
- * DescribeConditionsTemplateList返回参数结构体
4072
+ * DescribeAccidentEventList返回参数结构体
3630
4073
  */
3631
- export interface DescribeConditionsTemplateListResponse {
4074
+ export interface DescribeAccidentEventListResponse {
3632
4075
  /**
3633
- * 模板总数
4076
+ * 平台事件列表
4077
+ 注意:此字段可能返回 null,表示取不到有效值。
3634
4078
  */
3635
- Total: number;
4079
+ Alarms?: Array<DescribeAccidentEventListAlarms>;
3636
4080
  /**
3637
- * 模板列表
4081
+ * 平台事件的总数
3638
4082
  注意:此字段可能返回 null,表示取不到有效值。
3639
4083
  */
3640
- TemplateGroupList: Array<TemplateGroup>;
4084
+ Total?: number;
4085
+ /**
4086
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4087
+ */
4088
+ RequestId?: string;
4089
+ }
4090
+ /**
4091
+ * DescribePrometheusScrapeJobs返回参数结构体
4092
+ */
4093
+ export interface DescribePrometheusScrapeJobsResponse {
4094
+ /**
4095
+ * 任务列表
4096
+ 注意:此字段可能返回 null,表示取不到有效值。
4097
+ */
4098
+ ScrapeJobSet?: Array<PrometheusScrapeJob>;
4099
+ /**
4100
+ * 任务总量
4101
+ */
4102
+ TotalCount?: number;
3641
4103
  /**
3642
4104
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3643
4105
  */
@@ -3758,21 +4220,13 @@ export interface AlarmNotice {
3758
4220
  CLSNotices: Array<CLSNotice>;
3759
4221
  }
3760
4222
  /**
3761
- * 指标配置
4223
+ * DeleteRecordingRules返回参数结构体
3762
4224
  */
3763
- export interface MetricConfig {
3764
- /**
3765
- * 允许使用的运算符
3766
- */
3767
- Operator: Array<string>;
4225
+ export interface DeleteRecordingRulesResponse {
3768
4226
  /**
3769
- * 允许配置的数据周期,以秒为单位
3770
- */
3771
- Period: Array<number>;
3772
- /**
3773
- * 允许配置的持续周期个数
4227
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3774
4228
  */
3775
- ContinuePeriod: Array<number>;
4229
+ RequestId?: string;
3776
4230
  }
3777
4231
  /**
3778
4232
  * 2018版策略模板列表接收人信息
@@ -3837,6 +4291,24 @@ export interface PolicyGroupReceiverInfo {
3837
4291
  */
3838
4292
  UIDList: Array<number>;
3839
4293
  }
4294
+ /**
4295
+ * DescribePrometheusAgents返回参数结构体
4296
+ */
4297
+ export interface DescribePrometheusAgentsResponse {
4298
+ /**
4299
+ * Agent 列表
4300
+ 注意:此字段可能返回 null,表示取不到有效值。
4301
+ */
4302
+ AgentSet: Array<PrometheusAgent>;
4303
+ /**
4304
+ * Agent 总量
4305
+ */
4306
+ TotalCount: number;
4307
+ /**
4308
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4309
+ */
4310
+ RequestId?: string;
4311
+ }
3840
4312
  /**
3841
4313
  * DescribeAlarmEvents请求参数结构体
3842
4314
  */
@@ -3872,79 +4344,147 @@ export interface MidQueryCondition {
3872
4344
  Value: Array<string>;
3873
4345
  }
3874
4346
  /**
3875
- * ModifyAlarmNotice返回参数结构体
3876
- */
3877
- export interface ModifyAlarmNoticeResponse {
3878
- /**
3879
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3880
- */
3881
- RequestId?: string;
3882
- }
3883
- /**
3884
- * CreateAlertRule请求参数结构体
4347
+ * DeletePrometheusScrapeJobs请求参数结构体
3885
4348
  */
3886
- export interface CreateAlertRuleRequest {
4349
+ export interface DeletePrometheusScrapeJobsRequest {
3887
4350
  /**
3888
- * Prometheus 实例 ID
4351
+ * 实例 ID
3889
4352
  */
3890
4353
  InstanceId: string;
3891
4354
  /**
3892
- * 规则名称
3893
- */
3894
- RuleName: string;
3895
- /**
3896
- * 规则表达式
4355
+ * Agent ID
3897
4356
  */
3898
- Expr: string;
4357
+ AgentId: string;
3899
4358
  /**
3900
- * 告警通知模板 ID 列表
4359
+ * 任务 ID 列表
3901
4360
  */
3902
- Receivers: Array<string>;
4361
+ JobIds: Array<string>;
4362
+ }
4363
+ /**
4364
+ * UnBindingPolicyObject请求参数结构体
4365
+ */
4366
+ export interface UnBindingPolicyObjectRequest {
3903
4367
  /**
3904
- * 规则状态码,取值如下:
3905
- <li>2=RuleEnabled</li>
3906
- <li>3=RuleDisabled</li>
4368
+ * 固定值,为"monitor"
3907
4369
  */
3908
- RuleState?: number;
4370
+ Module: string;
3909
4371
  /**
3910
- * 规则报警持续时间
4372
+ * 策略组id,如传入 PolicyId 则该字段被忽略可传入任意值如 0
3911
4373
  */
3912
- Duration?: string;
4374
+ GroupId: number;
3913
4375
  /**
3914
- * 标签列表
4376
+ * 待删除对象实例的唯一id列表,UniqueId从调用[获取已绑定对象列表接口](https://cloud.tencent.com/document/api/248/40570)的出参的List中得到
3915
4377
  */
3916
- Labels?: Array<PrometheusRuleKV>;
4378
+ UniqueId: Array<string>;
3917
4379
  /**
3918
- * 注释列表。
3919
-
3920
- 告警对象和告警消息是 Prometheus Rule Annotations 的特殊字段,需要通过 annotations 来传递,对应的 Key 分别为summary/description。
4380
+ * 实例分组id,如果按实例分组删除的话UniqueId参数是无效的
3921
4381
  */
3922
- Annotations?: Array<PrometheusRuleKV>;
4382
+ InstanceGroupId?: number;
3923
4383
  /**
3924
- * 报警策略模板分类
4384
+ * 告警策略ID,使用此字段时 GroupId 会被忽略
3925
4385
  */
3926
- Type?: string;
4386
+ PolicyId?: string;
3927
4387
  }
3928
4388
  /**
3929
- * DescribeProductList返回参数结构体
4389
+ * 云监控告警通知模板 - 回调通知详情
3930
4390
  */
3931
- export interface DescribeProductListResponse {
4391
+ export interface URLNotice {
3932
4392
  /**
3933
- * 产品信息列表
4393
+ * 回调 url(限长256字符)
3934
4394
  注意:此字段可能返回 null,表示取不到有效值。
3935
4395
  */
3936
- ProductList: Array<ProductSimple>;
4396
+ URL: string;
3937
4397
  /**
3938
- * 产品总数
4398
+ * 是否通过验证 0=否 1=是
3939
4399
  注意:此字段可能返回 null,表示取不到有效值。
3940
4400
  */
3941
- TotalCount: number;
4401
+ IsValid?: number;
3942
4402
  /**
3943
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4403
+ * 验证码
4404
+ 注意:此字段可能返回 null,表示取不到有效值。
3944
4405
  */
3945
- RequestId?: string;
3946
- }
3947
- /**
4406
+ ValidationCode?: string;
4407
+ /**
4408
+ * 通知开始时间 一天开始的秒数
4409
+ 注意:此字段可能返回 null,表示取不到有效值。
4410
+ */
4411
+ StartTime?: number;
4412
+ /**
4413
+ * 通知结束时间 一天开始的秒数
4414
+ 注意:此字段可能返回 null,表示取不到有效值。
4415
+ */
4416
+ EndTime?: number;
4417
+ /**
4418
+ * 通知周期 1-7表示周一到周日
4419
+ 注意:此字段可能返回 null,表示取不到有效值。
4420
+ */
4421
+ Weekday?: Array<number>;
4422
+ }
4423
+ /**
4424
+ * CreateAlertRule请求参数结构体
4425
+ */
4426
+ export interface CreateAlertRuleRequest {
4427
+ /**
4428
+ * Prometheus 实例 ID
4429
+ */
4430
+ InstanceId: string;
4431
+ /**
4432
+ * 规则名称
4433
+ */
4434
+ RuleName: string;
4435
+ /**
4436
+ * 规则表达式
4437
+ */
4438
+ Expr: string;
4439
+ /**
4440
+ * 告警通知模板 ID 列表
4441
+ */
4442
+ Receivers: Array<string>;
4443
+ /**
4444
+ * 规则状态码,取值如下:
4445
+ <li>2=RuleEnabled</li>
4446
+ <li>3=RuleDisabled</li>
4447
+ */
4448
+ RuleState?: number;
4449
+ /**
4450
+ * 规则报警持续时间
4451
+ */
4452
+ Duration?: string;
4453
+ /**
4454
+ * 标签列表
4455
+ */
4456
+ Labels?: Array<PrometheusRuleKV>;
4457
+ /**
4458
+ * 注释列表。
4459
+
4460
+ 告警对象和告警消息是 Prometheus Rule Annotations 的特殊字段,需要通过 annotations 来传递,对应的 Key 分别为summary/description。
4461
+ */
4462
+ Annotations?: Array<PrometheusRuleKV>;
4463
+ /**
4464
+ * 报警策略模板分类
4465
+ */
4466
+ Type?: string;
4467
+ }
4468
+ /**
4469
+ * DescribeProductList返回参数结构体
4470
+ */
4471
+ export interface DescribeProductListResponse {
4472
+ /**
4473
+ * 产品信息列表
4474
+ 注意:此字段可能返回 null,表示取不到有效值。
4475
+ */
4476
+ ProductList: Array<ProductSimple>;
4477
+ /**
4478
+ * 产品总数
4479
+ 注意:此字段可能返回 null,表示取不到有效值。
4480
+ */
4481
+ TotalCount: number;
4482
+ /**
4483
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4484
+ */
4485
+ RequestId?: string;
4486
+ }
4487
+ /**
3948
4488
  * DescribeProductEventList返回参数结构体
3949
4489
  */
3950
4490
  export interface DescribeProductEventListResponse {
@@ -4093,39 +4633,13 @@ export interface DeleteAlarmPolicyResponse {
4093
4633
  RequestId?: string;
4094
4634
  }
4095
4635
  /**
4096
- * 云监控告警通知模板 - 回调通知详情
4636
+ * DeletePrometheusScrapeJobs返回参数结构体
4097
4637
  */
4098
- export interface URLNotice {
4099
- /**
4100
- * 回调 url(限长256字符)
4101
- 注意:此字段可能返回 null,表示取不到有效值。
4102
- */
4103
- URL: string;
4104
- /**
4105
- * 是否通过验证 0=否 1=是
4106
- 注意:此字段可能返回 null,表示取不到有效值。
4107
- */
4108
- IsValid?: number;
4638
+ export interface DeletePrometheusScrapeJobsResponse {
4109
4639
  /**
4110
- * 验证码
4111
- 注意:此字段可能返回 null,表示取不到有效值。
4112
- */
4113
- ValidationCode?: string;
4114
- /**
4115
- * 通知开始时间 一天开始的秒数
4116
- 注意:此字段可能返回 null,表示取不到有效值。
4117
- */
4118
- StartTime?: number;
4119
- /**
4120
- * 通知结束时间 一天开始的秒数
4121
- 注意:此字段可能返回 null,表示取不到有效值。
4122
- */
4123
- EndTime?: number;
4124
- /**
4125
- * 通知周期 1-7表示周一到周日
4126
- 注意:此字段可能返回 null,表示取不到有效值。
4640
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4127
4641
  */
4128
- Weekday?: Array<number>;
4642
+ RequestId?: string;
4129
4643
  }
4130
4644
  /**
4131
4645
  * DescribeAlarmPolicy请求参数结构体
@@ -4318,6 +4832,65 @@ export interface DescribeStatisticDataResponse {
4318
4832
  */
4319
4833
  RequestId?: string;
4320
4834
  }
4835
+ /**
4836
+ * CreatePrometheusScrapeJob请求参数结构体
4837
+ */
4838
+ export interface CreatePrometheusScrapeJobRequest {
4839
+ /**
4840
+ * 实例 ID
4841
+ */
4842
+ InstanceId: string;
4843
+ /**
4844
+ * Agent ID
4845
+ */
4846
+ AgentId: string;
4847
+ /**
4848
+ * 任务内容
4849
+ */
4850
+ Config?: string;
4851
+ }
4852
+ /**
4853
+ * Prometheus 聚合规则响应结构体内信息
4854
+ */
4855
+ export interface RecordingRuleSet {
4856
+ /**
4857
+ * 规则 ID
4858
+ */
4859
+ RuleId: string;
4860
+ /**
4861
+ * 规则状态码
4862
+ */
4863
+ RuleState: number;
4864
+ /**
4865
+ * 规则名称
4866
+ */
4867
+ Name: string;
4868
+ /**
4869
+ * 规则内容组
4870
+ */
4871
+ Group: string;
4872
+ /**
4873
+ * 规则数量
4874
+ */
4875
+ Total: number;
4876
+ /**
4877
+ * 规则创建时间
4878
+ */
4879
+ CreatedAt: string;
4880
+ /**
4881
+ * 规则最近更新时间
4882
+ */
4883
+ UpdatedAt: string;
4884
+ }
4885
+ /**
4886
+ * CreateExporterIntegration返回参数结构体
4887
+ */
4888
+ export interface CreateExporterIntegrationResponse {
4889
+ /**
4890
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4891
+ */
4892
+ RequestId?: string;
4893
+ }
4321
4894
  /**
4322
4895
  * DescribePolicyConditionList.EventMetric
4323
4896
  */
@@ -4602,6 +5175,34 @@ export interface DescribePolicyGroupListGroup {
4602
5175
  */
4603
5176
  IsUnionRule: number;
4604
5177
  }
5178
+ /**
5179
+ * UpdateExporterIntegration请求参数结构体
5180
+ */
5181
+ export interface UpdateExporterIntegrationRequest {
5182
+ /**
5183
+ * 实例 ID
5184
+ */
5185
+ InstanceId: string;
5186
+ /**
5187
+ * Kubernetes 集群类型,取值如下:
5188
+ <li> 1= 容器集群(TKE) </li>
5189
+ <li> 2=弹性集群<EKS> </li>
5190
+ <li> 3= Prometheus管理的弹性集群<MEKS> </li>
5191
+ */
5192
+ KubeType: number;
5193
+ /**
5194
+ * 集群 ID
5195
+ */
5196
+ ClusterId: string;
5197
+ /**
5198
+ * 类型
5199
+ */
5200
+ Kind: string;
5201
+ /**
5202
+ * 配置内容
5203
+ */
5204
+ Content: string;
5205
+ }
4605
5206
  /**
4606
5207
  * DescribeAccidentEventList请求参数结构体
4607
5208
  */
@@ -4655,6 +5256,20 @@ export interface DescribeAccidentEventListRequest {
4655
5256
  */
4656
5257
  AffectResource?: string;
4657
5258
  }
5259
+ /**
5260
+ * CreateRecordingRule返回参数结构体
5261
+ */
5262
+ export interface CreateRecordingRuleResponse {
5263
+ /**
5264
+ * 规则 ID
5265
+ 注意:此字段可能返回 null,表示取不到有效值。
5266
+ */
5267
+ RuleId: string;
5268
+ /**
5269
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5270
+ */
5271
+ RequestId?: string;
5272
+ }
4658
5273
  /**
4659
5274
  * 指标名称和值的封装
4660
5275
  */
@@ -4720,19 +5335,33 @@ export interface DescribeBindingPolicyObjectListInstanceGroup {
4720
5335
  Regions: Array<string>;
4721
5336
  }
4722
5337
  /**
4723
- * DescribeProductEventList返回的Events里的GroupInfo
5338
+ * UpdateServiceDiscovery请求参数结构体
4724
5339
  */
4725
- export interface DescribeProductEventListEventsGroupInfo {
5340
+ export interface UpdateServiceDiscoveryRequest {
4726
5341
  /**
4727
- * 策略ID
4728
- 注意:此字段可能返回 null,表示取不到有效值。
5342
+ * Prometheus 实例 ID
4729
5343
  */
4730
- GroupId: number;
5344
+ InstanceId: string;
4731
5345
  /**
4732
- * 策略名
4733
- 注意:此字段可能返回 null,表示取不到有效值。
5346
+ * <li>类型是 TKE,为对应的腾讯云容器服务集群 ID</li>
4734
5347
  */
4735
- GroupName: string;
5348
+ KubeClusterId: string;
5349
+ /**
5350
+ * 用户 Kubernetes 集群类型:
5351
+ <li> 1 = 容器服务集群(TKE) </li>
5352
+ */
5353
+ KubeType: number;
5354
+ /**
5355
+ * 服务发现类型,取值如下:
5356
+ <li> 1 = ServiceMonitor</li>
5357
+ <li> 2 = PodMonitor</li>
5358
+ <li> 3 = JobMonitor</li>
5359
+ */
5360
+ Type: number;
5361
+ /**
5362
+ * 服务发现配置信息
5363
+ */
5364
+ Yaml: string;
4736
5365
  }
4737
5366
  /**
4738
5367
  * DeleteAlertRules请求参数结构体
@@ -4760,6 +5389,49 @@ export interface DescribeAlarmNoticeRequest {
4760
5389
  */
4761
5390
  NoticeId: string;
4762
5391
  }
5392
+ /**
5393
+ * UninstallGrafanaDashboard请求参数结构体
5394
+ */
5395
+ export interface UninstallGrafanaDashboardRequest {
5396
+ /**
5397
+ * 实例 ID
5398
+ */
5399
+ InstanceId: string;
5400
+ /**
5401
+ * Prometheus 集成项 Code,删除对应的 Dashboard,Code 如下:
5402
+ <li>spring_mvc</li>
5403
+ <li>mysql</li>
5404
+ <li>go</li>
5405
+ <li>redis</li>
5406
+ <li>jvm</li>
5407
+ <li>pgsql</li>
5408
+ <li>mongo</li>
5409
+ <li>kafka</li>
5410
+ <li>es</li>
5411
+ <li>flink</li>
5412
+ <li>blackbox</li>
5413
+ <li>consule</li>
5414
+ <li>memcached</li>
5415
+ <li>zk</li>
5416
+ <li>tps</li>
5417
+ <li>istio</li>
5418
+ <li>etcd</li>
5419
+ */
5420
+ IntegrationCodes?: Array<string>;
5421
+ }
5422
+ /**
5423
+ * CreatePrometheusAgent请求参数结构体
5424
+ */
5425
+ export interface CreatePrometheusAgentRequest {
5426
+ /**
5427
+ * 实例 ID
5428
+ */
5429
+ InstanceId: string;
5430
+ /**
5431
+ * Agent 名称
5432
+ */
5433
+ Name: string;
5434
+ }
4763
5435
  /**
4764
5436
  * DescribeBindingPolicyObjectList接口的Dimension
4765
5437
  */
@@ -4961,6 +5633,38 @@ export interface ReceiverInfo {
4961
5633
  */
4962
5634
  ReceiveLanguage?: string;
4963
5635
  }
5636
+ /**
5637
+ * DescribeRecordingRules请求参数结构体
5638
+ */
5639
+ export interface DescribeRecordingRulesRequest {
5640
+ /**
5641
+ * Prometheus 实例 ID
5642
+ */
5643
+ InstanceId: string;
5644
+ /**
5645
+ * 返回数量,默认为 20,最大值为 100
5646
+ */
5647
+ Limit?: number;
5648
+ /**
5649
+ * 偏移量,默认为 0
5650
+ */
5651
+ Offset?: number;
5652
+ /**
5653
+ * 规则 ID
5654
+ */
5655
+ RuleId?: string;
5656
+ /**
5657
+ * 规则状态码,取值如下:
5658
+ <li>1=RuleDeleted</li>
5659
+ <li>2=RuleEnabled</li>
5660
+ <li>3=RuleDisabled</li>
5661
+ */
5662
+ RuleState?: number;
5663
+ /**
5664
+ * 规则名称
5665
+ */
5666
+ Name?: string;
5667
+ }
4964
5668
  /**
4965
5669
  * UnBindingAllPolicyObject请求参数结构体
4966
5670
  */
@@ -5025,14 +5729,69 @@ export interface DescribePolicyGroupInfoEventCondition {
5025
5729
  AlarmNotifyType: number;
5026
5730
  }
5027
5731
  /**
5028
- * SendCustomAlarmMsg返回参数结构体
5732
+ * prometheus 报警规则 KV 参数
5029
5733
  */
5030
- export interface SendCustomAlarmMsgResponse {
5734
+ export interface PrometheusRuleKV {
5735
+ /**
5736
+ * 键
5737
+ */
5738
+ Key: string;
5739
+ /**
5740
+ * 值
5741
+ */
5742
+ Value: string;
5743
+ }
5744
+ /**
5745
+ * ModifyAlarmPolicyStatus返回参数结构体
5746
+ */
5747
+ export interface ModifyAlarmPolicyStatusResponse {
5031
5748
  /**
5032
5749
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5033
5750
  */
5034
5751
  RequestId?: string;
5035
5752
  }
5753
+ /**
5754
+ * GetPrometheusAgentManagementCommand返回参数结构体
5755
+ */
5756
+ export interface GetPrometheusAgentManagementCommandResponse {
5757
+ /**
5758
+ * Agent 管理命令
5759
+ */
5760
+ Command?: ManagementCommand;
5761
+ /**
5762
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5763
+ */
5764
+ RequestId?: string;
5765
+ }
5766
+ /**
5767
+ * UpdateRecordingRule请求参数结构体
5768
+ */
5769
+ export interface UpdateRecordingRuleRequest {
5770
+ /**
5771
+ * 聚合规则名称
5772
+ */
5773
+ Name: string;
5774
+ /**
5775
+ * 聚合规则组内容,格式为 yaml,通过 base64 进行编码。
5776
+ */
5777
+ Group: string;
5778
+ /**
5779
+ * Prometheus 实例 ID
5780
+ */
5781
+ InstanceId: string;
5782
+ /**
5783
+ * Prometheus 聚合规则 ID
5784
+ */
5785
+ RuleId: string;
5786
+ /**
5787
+ * 规则状态码,取值如下:
5788
+ <li>1=RuleDeleted</li>
5789
+ <li>2=RuleEnabled</li>
5790
+ <li>3=RuleDisabled</li>
5791
+ 默认状态码为 2 启用。
5792
+ */
5793
+ RuleState?: number;
5794
+ }
5036
5795
  /**
5037
5796
  * 告警策略指标触发条件
5038
5797
  */
@@ -5125,6 +5884,178 @@ export interface DescribePolicyConditionListCondition {
5125
5884
  */
5126
5885
  SupportRegions: Array<string>;
5127
5886
  }
5887
+ /**
5888
+ * Prometheus 服务响应体
5889
+ */
5890
+ export interface PrometheusInstancesItem {
5891
+ /**
5892
+ * 实例ID。
5893
+ */
5894
+ InstanceId: string;
5895
+ /**
5896
+ * 实例名称。
5897
+ */
5898
+ InstanceName: string;
5899
+ /**
5900
+ * 实例计费模式。取值范围:
5901
+ <ul>
5902
+ <li>2:包年包月</li>
5903
+ <li>3:按量</li>
5904
+ </ul>
5905
+ */
5906
+ InstanceChargeType: number;
5907
+ /**
5908
+ * 地域 ID
5909
+ */
5910
+ RegionId: number;
5911
+ /**
5912
+ * 可用区
5913
+ */
5914
+ Zone: string;
5915
+ /**
5916
+ * VPC ID
5917
+ */
5918
+ VpcId: string;
5919
+ /**
5920
+ * 子网 ID
5921
+ */
5922
+ SubnetId: string;
5923
+ /**
5924
+ * 存储周期
5925
+ 注意:此字段可能返回 null,表示取不到有效值。
5926
+ */
5927
+ DataRetentionTime: number;
5928
+ /**
5929
+ * 实例业务状态。取值范围:
5930
+ <ul>
5931
+ <li>1:正在创建</li>
5932
+ <li>2:运行中</li>
5933
+ <li>3:异常</li>
5934
+ <li>4:重建中</li>
5935
+ <li>5:销毁中</li>
5936
+ <li>6:已停服</li>
5937
+ <li>8:欠费停服中</li>
5938
+ <li>9:欠费已停服</li>
5939
+ </ul>
5940
+ */
5941
+ InstanceStatus: number;
5942
+ /**
5943
+ * Grafana 面板 URL
5944
+ 注意:此字段可能返回 null,表示取不到有效值。
5945
+ */
5946
+ GrafanaURL: string;
5947
+ /**
5948
+ * 创建时间
5949
+ */
5950
+ CreatedAt: string;
5951
+ /**
5952
+ * 是否开启 Grafana
5953
+ <li>0:不开启</li>
5954
+ <li>1:开启</li>
5955
+ */
5956
+ EnableGrafana: number;
5957
+ /**
5958
+ * 实例IPV4地址
5959
+ 注意:此字段可能返回 null,表示取不到有效值。
5960
+ */
5961
+ IPv4Address: string;
5962
+ /**
5963
+ * 实例关联的标签列表。
5964
+ 注意:此字段可能返回 null,表示取不到有效值。
5965
+ */
5966
+ TagSpecification: Array<PrometheusTag>;
5967
+ /**
5968
+ * 购买的实例过期时间
5969
+ 注意:此字段可能返回 null,表示取不到有效值。
5970
+ */
5971
+ ExpireTime: string;
5972
+ /**
5973
+ * 计费状态
5974
+ <ul>
5975
+ <li>1:正常</li>
5976
+ <li>2:过期</li>
5977
+ <li>3:销毁</li>
5978
+ <li>4:分配中</li>
5979
+ <li>5:分配失败</li>
5980
+ </ul>
5981
+ 注意:此字段可能返回 null,表示取不到有效值。
5982
+ */
5983
+ ChargeStatus: number;
5984
+ /**
5985
+ * 规格名称
5986
+ 注意:此字段可能返回 null,表示取不到有效值。
5987
+ */
5988
+ SpecName: string;
5989
+ /**
5990
+ * 自动续费标记
5991
+ <ul>
5992
+ <li>0:不自动续费</li>
5993
+ <li>1:开启自动续费</li>
5994
+ <li>2:禁止自动续费</li>
5995
+ <li>-1:无效</ii>
5996
+ </ul>
5997
+ 注意:此字段可能返回 null,表示取不到有效值。
5998
+ */
5999
+ AutoRenewFlag: number;
6000
+ /**
6001
+ * 是否快过期
6002
+ <ul>
6003
+ <li>0:否</li>
6004
+ <li>1:快过期</li>
6005
+ </ul>
6006
+ 注意:此字段可能返回 null,表示取不到有效值。
6007
+ */
6008
+ IsNearExpire: number;
6009
+ /**
6010
+ * 数据写入需要的 Token
6011
+ 注意:此字段可能返回 null,表示取不到有效值。
6012
+ */
6013
+ AuthToken: string;
6014
+ /**
6015
+ * Prometheus Remote Write 的地址
6016
+ 注意:此字段可能返回 null,表示取不到有效值。
6017
+ */
6018
+ RemoteWrite: string;
6019
+ /**
6020
+ * Prometheus HTTP Api 根地址
6021
+ 注意:此字段可能返回 null,表示取不到有效值。
6022
+ */
6023
+ ApiRootPath: string;
6024
+ /**
6025
+ * Proxy 的地址
6026
+ 注意:此字段可能返回 null,表示取不到有效值。
6027
+ */
6028
+ ProxyAddress: string;
6029
+ /**
6030
+ * Grafana 运行状态
6031
+ <ul>
6032
+ <li>1:正在创建</li>
6033
+ <li>2:运行中</li>
6034
+ <li>3:异常</li>
6035
+ <li>4:重启中</li>
6036
+ <li>5:销毁中</li>
6037
+ <li>6:已停机</li>
6038
+ <li>7:已删除</li>
6039
+ </ul>
6040
+ 注意:此字段可能返回 null,表示取不到有效值。
6041
+ */
6042
+ GrafanaStatus: number;
6043
+ /**
6044
+ * Grafana IP 白名单列表,使用英文分号分隔
6045
+ 注意:此字段可能返回 null,表示取不到有效值。
6046
+ */
6047
+ GrafanaIpWhiteList: string;
6048
+ /**
6049
+ * 实例的授权信息
6050
+ 注意:此字段可能返回 null,表示取不到有效值。
6051
+ */
6052
+ Grant: PrometheusInstanceGrantInfo;
6053
+ /**
6054
+ * 绑定的 Grafana 实例 ID
6055
+ 注意:此字段可能返回 null,表示取不到有效值。
6056
+ */
6057
+ GrafanaInstanceId: string;
6058
+ }
5128
6059
  /**
5129
6060
  * DeleteServiceDiscovery请求参数结构体
5130
6061
  */
@@ -5155,14 +6086,19 @@ export interface DeleteServiceDiscoveryRequest {
5155
6086
  Yaml: string;
5156
6087
  }
5157
6088
  /**
5158
- * 告警策略事件触发条件
6089
+ * DescribeProductEventList返回的Events里的GroupInfo
5159
6090
  */
5160
- export interface AlarmPolicyEventCondition {
6091
+ export interface DescribeProductEventListEventsGroupInfo {
5161
6092
  /**
5162
- * 告警触发条件列表
6093
+ * 策略ID
5163
6094
  注意:此字段可能返回 null,表示取不到有效值。
5164
6095
  */
5165
- Rules: Array<AlarmPolicyRule>;
6096
+ GroupId: number;
6097
+ /**
6098
+ * 策略名
6099
+ 注意:此字段可能返回 null,表示取不到有效值。
6100
+ */
6101
+ GroupName: string;
5166
6102
  }
5167
6103
  /**
5168
6104
  * DescribePrometheusInstances请求参数结构体
@@ -5280,6 +6216,15 @@ export interface SetDefaultAlarmPolicyResponse {
5280
6216
  */
5281
6217
  RequestId?: string;
5282
6218
  }
6219
+ /**
6220
+ * UninstallGrafanaDashboard返回参数结构体
6221
+ */
6222
+ export interface UninstallGrafanaDashboardResponse {
6223
+ /**
6224
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
6225
+ */
6226
+ RequestId?: string;
6227
+ }
5283
6228
  /**
5284
6229
  * BindingPolicyObject返回参数结构体
5285
6230
  */