tencentcloud-sdk-nodejs 4.0.367 → 4.0.370

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/CHANGELOG.md +438 -0
  2. package/SERVICE_CHANGELOG.md +388 -57
  3. package/package.json +1 -1
  4. package/products.md +25 -25
  5. package/src/common/sdk_version.ts +1 -1
  6. package/src/services/asr/v20190614/asr_client.ts +1 -1
  7. package/src/services/cdn/v20180606/cdn_models.ts +12 -0
  8. package/src/services/cii/v20210408/cii_models.ts +5 -0
  9. package/src/services/cme/v20191029/cme_client.ts +3 -1
  10. package/src/services/cme/v20191029/cme_models.ts +21 -0
  11. package/src/services/cpdp/v20190820/cpdp_models.ts +18 -6
  12. package/src/services/cwp/v20180228/cwp_client.ts +1 -0
  13. package/src/services/cwp/v20180228/cwp_models.ts +38 -2
  14. package/src/services/dnspod/v20210323/dnspod_client.ts +75 -26
  15. package/src/services/dnspod/v20210323/dnspod_models.ts +184 -0
  16. package/src/services/essbasic/v20210526/essbasic_models.ts +10 -0
  17. package/src/services/mmps/v20200710/mmps_models.ts +6 -0
  18. package/src/services/monitor/v20180724/monitor_client.ts +333 -52
  19. package/src/services/monitor/v20180724/monitor_models.ts +1493 -447
  20. package/src/services/mrs/v20200910/mrs_client.ts +1 -0
  21. package/src/services/mrs/v20200910/mrs_models.ts +65 -0
  22. package/src/services/ocr/v20181119/ocr_models.ts +11 -10
  23. package/src/services/postgres/v20170312/postgres_models.ts +2 -2
  24. package/src/services/tcbr/v20220217/tcbr_client.ts +21 -7
  25. package/src/services/tcbr/v20220217/tcbr_models.ts +184 -16
  26. package/src/services/teo/v20220106/teo_client.ts +4 -3
  27. package/src/services/teo/v20220106/teo_models.ts +135 -108
  28. package/src/services/tke/v20180525/tke_client.ts +13 -1
  29. package/src/services/tke/v20180525/tke_models.ts +63 -8
  30. package/src/services/vod/v20180717/vod_models.ts +16 -15
  31. package/src/services/vpc/v20170312/vpc_client.ts +2 -0
  32. package/src/services/vpc/v20170312/vpc_models.ts +111 -6
  33. package/src/services/waf/v20180125/waf_client.ts +37 -20
  34. package/src/services/waf/v20180125/waf_models.ts +435 -129
  35. package/tencentcloud/common/sdk_version.d.ts +1 -1
  36. package/tencentcloud/common/sdk_version.js +1 -1
  37. package/tencentcloud/services/asr/v20190614/asr_client.d.ts +1 -1
  38. package/tencentcloud/services/asr/v20190614/asr_client.js +1 -1
  39. package/tencentcloud/services/cdn/v20180606/cdn_models.d.ts +10 -0
  40. package/tencentcloud/services/cii/v20210408/cii_models.d.ts +4 -0
  41. package/tencentcloud/services/cme/v20191029/cme_client.d.ts +2 -1
  42. package/tencentcloud/services/cme/v20191029/cme_client.js +2 -1
  43. package/tencentcloud/services/cme/v20191029/cme_models.d.ts +18 -0
  44. package/tencentcloud/services/cpdp/v20190820/cpdp_models.d.ts +16 -6
  45. package/tencentcloud/services/cwp/v20180228/cwp_models.d.ts +32 -2
  46. package/tencentcloud/services/dnspod/v20210323/dnspod_client.d.ts +26 -10
  47. package/tencentcloud/services/dnspod/v20210323/dnspod_client.js +37 -13
  48. package/tencentcloud/services/dnspod/v20210323/dnspod_models.d.ts +159 -0
  49. package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +8 -0
  50. package/tencentcloud/services/mmps/v20200710/mmps_models.d.ts +5 -0
  51. package/tencentcloud/services/monitor/v20180724/monitor_client.d.ts +106 -14
  52. package/tencentcloud/services/monitor/v20180724/monitor_client.js +155 -17
  53. package/tencentcloud/services/monitor/v20180724/monitor_models.d.ts +1316 -413
  54. package/tencentcloud/services/mrs/v20200910/mrs_models.d.ts +55 -0
  55. package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +11 -10
  56. package/tencentcloud/services/postgres/v20170312/postgres_models.d.ts +2 -2
  57. package/tencentcloud/services/tcbr/v20220217/tcbr_client.d.ts +7 -3
  58. package/tencentcloud/services/tcbr/v20220217/tcbr_client.js +9 -3
  59. package/tencentcloud/services/tcbr/v20220217/tcbr_models.d.ts +153 -14
  60. package/tencentcloud/services/teo/v20220106/teo_client.d.ts +1 -1
  61. package/tencentcloud/services/teo/v20220106/teo_models.d.ts +114 -91
  62. package/tencentcloud/services/tke/v20180525/tke_client.d.ts +5 -1
  63. package/tencentcloud/services/tke/v20180525/tke_client.js +6 -0
  64. package/tencentcloud/services/tke/v20180525/tke_models.d.ts +54 -8
  65. package/tencentcloud/services/vod/v20180717/vod_models.d.ts +13 -12
  66. package/tencentcloud/services/vpc/v20170312/vpc_models.d.ts +92 -6
  67. package/tencentcloud/services/waf/v20180125/waf_client.d.ts +9 -5
  68. package/tencentcloud/services/waf/v20180125/waf_client.js +12 -6
  69. package/tencentcloud/services/waf/v20180125/waf_models.d.ts +363 -108
  70. package/test/dnspod.v20210323.test.js +48 -8
  71. package/test/monitor.v20180724.test.js +238 -8
  72. package/test/tcbr.v20220217.test.js +12 -2
  73. package/test/tke.v20180525.test.js +10 -0
  74. package/test/waf.v20180125.test.js +14 -4
@@ -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,76 @@ 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
+ }
756
+ /**
757
+ * DeleteExporterIntegration请求参数结构体
758
+ */
759
+ export interface DeleteExporterIntegrationRequest {
760
+ /**
761
+ * 实例 ID
762
+ */
763
+ InstanceId: string;
764
+ /**
765
+ * Kubernetes 集群类型,取值如下:
766
+ <li> 1= 容器集群(TKE) </li>
767
+ <li> 2=弹性集群<EKS> </li>
768
+ <li> 3= Prometheus管理的弹性集群<MEKS> </li>
769
+ */
770
+ KubeType: number;
771
+ /**
772
+ * 集群 ID
773
+ */
774
+ ClusterId: string;
775
+ /**
776
+ * 类型
777
+ */
778
+ Kind: string;
779
+ /**
780
+ * 名字
781
+ */
782
+ Name: string;
783
+ }
640
784
  /**
641
785
  * ModifyAlarmPolicyNotice请求参数结构体
642
786
  */
@@ -712,209 +856,113 @@ export interface EventCondition {
712
856
  RuleID: string;
713
857
  }
714
858
  /**
715
- * Prometheus 服务响应体
859
+ * 对业务指标的单位及支持统计周期的描述
716
860
  */
717
- export interface PrometheusInstancesItem {
861
+ export interface MetricSet {
718
862
  /**
719
- * 实例ID。
863
+ * 命名空间,每个云产品会有一个命名空间
720
864
  */
721
- InstanceId: string;
865
+ Namespace: string;
722
866
  /**
723
- * 实例名称。
867
+ * 指标名称
724
868
  */
725
- InstanceName: string;
869
+ MetricName: string;
726
870
  /**
727
- * 实例计费模式。取值范围:
728
- <ul>
729
- <li>2:包年包月</li>
730
- <li>3:按量</li>
731
- </ul>
871
+ * 指标使用的单位
732
872
  */
733
- InstanceChargeType: number;
873
+ Unit: string;
734
874
  /**
735
- * 地域 ID
875
+ * 指标使用的单位
736
876
  */
737
- RegionId: number;
877
+ UnitCname: string;
738
878
  /**
739
- * 可用区
879
+ * 指标支持的统计周期,单位是秒,如60、300
740
880
  */
741
- Zone: string;
881
+ Period: Array<number>;
742
882
  /**
743
- * VPC ID
883
+ * 统计周期内指标方式
744
884
  */
745
- VpcId: string;
885
+ Periods: Array<PeriodsSt>;
746
886
  /**
747
- * 子网 ID
887
+ * 统计指标含义解释
748
888
  */
749
- SubnetId: string;
889
+ Meaning: MetricObjectMeaning;
750
890
  /**
751
- * 存储周期
752
- 注意:此字段可能返回 null,表示取不到有效值。
891
+ * 维度描述信息
753
892
  */
754
- DataRetentionTime: number;
893
+ Dimensions: Array<DimensionsDesc>;
755
894
  /**
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>
895
+ * 指标中文名
896
+ 注意:此字段可能返回 null,表示取不到有效值。
767
897
  */
768
- InstanceStatus: number;
898
+ MetricCName: string;
769
899
  /**
770
- * Grafana 面板 URL
900
+ * 指标英文名
771
901
  注意:此字段可能返回 null,表示取不到有效值。
772
902
  */
773
- GrafanaURL: string;
903
+ MetricEName: string;
904
+ }
905
+ /**
906
+ * DescribeConditionsTemplateList请求参数结构体
907
+ */
908
+ export interface DescribeConditionsTemplateListRequest {
774
909
  /**
775
- * 创建时间
910
+ * 固定值,为"monitor"
776
911
  */
777
- CreatedAt: string;
912
+ Module: string;
778
913
  /**
779
- * 是否开启 Grafana
780
- <li>0:不开启</li>
781
- <li>1:开启</li>
914
+ * 视图名,由 [DescribeAllNamespaces](https://cloud.tencent.com/document/product/248/48683) 获得。对于云产品监控,取接口出参的 QceNamespacesNew.N.Id,例如 cvm_device
782
915
  */
783
- EnableGrafana: number;
916
+ ViewName?: string;
784
917
  /**
785
- * 实例IPV4地址
786
- 注意:此字段可能返回 null,表示取不到有效值。
918
+ * 根据触发条件模板名称过滤查询
787
919
  */
788
- IPv4Address: string;
920
+ GroupName?: string;
789
921
  /**
790
- * 实例关联的标签列表。
791
- 注意:此字段可能返回 null,表示取不到有效值。
922
+ * 根据触发条件模板ID过滤查询
792
923
  */
793
- TagSpecification: Array<PrometheusTag>;
924
+ GroupID?: string;
794
925
  /**
795
- * 购买的实例过期时间
796
- 注意:此字段可能返回 null,表示取不到有效值。
926
+ * 分页参数,每页返回的数量,取值1~100,默认20
797
927
  */
798
- ExpireTime: string;
928
+ Limit?: number;
799
929
  /**
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,表示取不到有效值。
930
+ * 分页参数,页偏移量,从0开始计数,默认0
809
931
  */
810
- ChargeStatus: number;
932
+ Offset?: number;
811
933
  /**
812
- * 规格名称
813
- 注意:此字段可能返回 null,表示取不到有效值。
934
+ * 指定按更新时间的排序方式,asc=升序, desc=降序
814
935
  */
815
- SpecName: string;
936
+ UpdateTimeOrder?: string;
937
+ }
938
+ /**
939
+ * DescribePrometheusScrapeJobs请求参数结构体
940
+ */
941
+ export interface DescribePrometheusScrapeJobsRequest {
816
942
  /**
817
- * 自动续费标记
818
- <ul>
819
- <li>0:不自动续费</li>
820
- <li>1:开启自动续费</li>
821
- <li>2:禁止自动续费</li>
822
- <li>-1:无效</ii>
823
- </ul>
824
- 注意:此字段可能返回 null,表示取不到有效值。
943
+ * 实例 ID
825
944
  */
826
- AutoRenewFlag: number;
945
+ InstanceId: string;
827
946
  /**
828
- * 是否快过期
829
- <ul>
830
- <li>0:否</li>
831
- <li>1:快过期</li>
832
- </ul>
833
- 注意:此字段可能返回 null,表示取不到有效值。
947
+ * Agent ID
834
948
  */
835
- IsNearExpire: number;
949
+ AgentId: string;
836
950
  /**
837
- * 数据写入需要的 Token
838
- 注意:此字段可能返回 null,表示取不到有效值。
951
+ * 任务名
839
952
  */
840
- AuthToken: string;
841
- /**
842
- * Prometheus Remote Write 的地址
843
- 注意:此字段可能返回 null,表示取不到有效值。
844
- */
845
- RemoteWrite: string;
846
- /**
847
- * Prometheus HTTP Api 根地址
848
- 注意:此字段可能返回 null,表示取不到有效值。
849
- */
850
- ApiRootPath: string;
851
- /**
852
- * Proxy 的地址
853
- 注意:此字段可能返回 null,表示取不到有效值。
854
- */
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;
953
+ Name?: string;
906
954
  /**
907
- * 分页参数,每页返回的数量,取值1~100,默认20
955
+ * 任务 ID 列表
908
956
  */
909
- Limit?: number;
957
+ JobIds?: Array<string>;
910
958
  /**
911
- * 分页参数,页偏移量,从0开始计数,默认0
959
+ * 偏移量,默认为0
912
960
  */
913
961
  Offset?: number;
914
962
  /**
915
- * 指定按更新时间的排序方式,asc=升序, desc=降序
963
+ * 返回数量,默认为20,最大值为100
916
964
  */
917
- UpdateTimeOrder?: string;
965
+ Limit?: number;
918
966
  }
919
967
  /**
920
968
  * CreateAlertRule返回参数结构体
@@ -965,6 +1013,38 @@ export interface DescribeBaseMetricsResponse {
965
1013
  */
966
1014
  RequestId?: string;
967
1015
  }
1016
+ /**
1017
+ * Prometheus 抓取任务
1018
+ */
1019
+ export interface PrometheusScrapeJob {
1020
+ /**
1021
+ * 任务名
1022
+ 注意:此字段可能返回 null,表示取不到有效值。
1023
+ */
1024
+ Name: string;
1025
+ /**
1026
+ * Agent ID
1027
+ */
1028
+ AgentId: string;
1029
+ /**
1030
+ * 任务 ID
1031
+ */
1032
+ JobId: string;
1033
+ /**
1034
+ * 配置
1035
+ 注意:此字段可能返回 null,表示取不到有效值。
1036
+ */
1037
+ Config: string;
1038
+ }
1039
+ /**
1040
+ * ModifyPrometheusInstanceAttributes返回参数结构体
1041
+ */
1042
+ export interface ModifyPrometheusInstanceAttributesResponse {
1043
+ /**
1044
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1045
+ */
1046
+ RequestId?: string;
1047
+ }
968
1048
  /**
969
1049
  * DescribeMetricData出参
970
1050
  */
@@ -1148,6 +1228,48 @@ export interface SendCustomAlarmMsgRequest {
1148
1228
  */
1149
1229
  Msg: string;
1150
1230
  }
1231
+ /**
1232
+ * CreateRecordingRule请求参数结构体
1233
+ */
1234
+ export interface CreateRecordingRuleRequest {
1235
+ /**
1236
+ * 聚合规则名称
1237
+ */
1238
+ Name: string;
1239
+ /**
1240
+ * 聚合规则组内容,格式为 yaml
1241
+ */
1242
+ Group: string;
1243
+ /**
1244
+ * Prometheus 实例 ID
1245
+ */
1246
+ InstanceId: string;
1247
+ /**
1248
+ * 规则状态码,取值如下:
1249
+ <li>1=RuleDeleted</li>
1250
+ <li>2=RuleEnabled</li>
1251
+ <li>3=RuleDisabled</li>
1252
+ 默认状态码为 2 启用。
1253
+ */
1254
+ RuleState?: number;
1255
+ }
1256
+ /**
1257
+ * ModifyPrometheusInstanceAttributes请求参数结构体
1258
+ */
1259
+ export interface ModifyPrometheusInstanceAttributesRequest {
1260
+ /**
1261
+ * 实例名称
1262
+ */
1263
+ InstanceName: string;
1264
+ /**
1265
+ * 实例 ID
1266
+ */
1267
+ InstanceId: string;
1268
+ /**
1269
+ * 存储时长(取值为 15、30、45。此参数不适用于包年包月实例)
1270
+ */
1271
+ DataRetentionTime?: number;
1272
+ }
1151
1273
  /**
1152
1274
  * DescribePolicyConditionList.ConfigManual.Period
1153
1275
  */
@@ -1168,29 +1290,21 @@ export interface DescribePolicyConditionListConfigManualPeriod {
1168
1290
  Need: boolean;
1169
1291
  }
1170
1292
  /**
1171
- * UnBindingPolicyObject请求参数结构体
1293
+ * 指标配置
1172
1294
  */
1173
- export interface UnBindingPolicyObjectRequest {
1174
- /**
1175
- * 固定值,为"monitor"
1176
- */
1177
- Module: string;
1178
- /**
1179
- * 策略组id,如传入 PolicyId 则该字段被忽略可传入任意值如 0
1180
- */
1181
- GroupId: number;
1295
+ export interface MetricConfig {
1182
1296
  /**
1183
- * 待删除对象实例的唯一id列表,UniqueId从调用[获取已绑定对象列表接口](https://cloud.tencent.com/document/api/248/40570)的出参的List中得到
1297
+ * 允许使用的运算符
1184
1298
  */
1185
- UniqueId: Array<string>;
1299
+ Operator: Array<string>;
1186
1300
  /**
1187
- * 实例分组id,如果按实例分组删除的话UniqueId参数是无效的
1301
+ * 允许配置的数据周期,以秒为单位
1188
1302
  */
1189
- InstanceGroupId?: number;
1303
+ Period: Array<number>;
1190
1304
  /**
1191
- * 告警策略ID,使用此字段时 GroupId 会被忽略
1305
+ * 允许配置的持续周期个数
1192
1306
  */
1193
- PolicyId?: string;
1307
+ ContinuePeriod: Array<number>;
1194
1308
  }
1195
1309
  /**
1196
1310
  * DescribeServiceDiscovery请求参数结构体
@@ -1266,19 +1380,18 @@ export interface DeletePolicyGroupResponse {
1266
1380
  RequestId?: string;
1267
1381
  }
1268
1382
  /**
1269
- * DescribeAccidentEventList返回参数结构体
1383
+ * DescribeConditionsTemplateList返回参数结构体
1270
1384
  */
1271
- export interface DescribeAccidentEventListResponse {
1385
+ export interface DescribeConditionsTemplateListResponse {
1272
1386
  /**
1273
- * 平台事件列表
1274
- 注意:此字段可能返回 null,表示取不到有效值。
1387
+ * 模板总数
1275
1388
  */
1276
- Alarms?: Array<DescribeAccidentEventListAlarms>;
1389
+ Total: number;
1277
1390
  /**
1278
- * 平台事件的总数
1391
+ * 模板列表
1279
1392
  注意:此字段可能返回 null,表示取不到有效值。
1280
1393
  */
1281
- Total?: number;
1394
+ TemplateGroupList: Array<TemplateGroup>;
1282
1395
  /**
1283
1396
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1284
1397
  */
@@ -1336,6 +1449,32 @@ export interface DimensionsDesc {
1336
1449
  */
1337
1450
  Dimensions: Array<string>;
1338
1451
  }
1452
+ /**
1453
+ * ModifyAlarmPolicyStatus请求参数结构体
1454
+ */
1455
+ export interface ModifyAlarmPolicyStatusRequest {
1456
+ /**
1457
+ * 模块名,固定值 monitor
1458
+ */
1459
+ Module: string;
1460
+ /**
1461
+ * 告警策略 ID
1462
+ */
1463
+ PolicyId: string;
1464
+ /**
1465
+ * 启停状态 0=停用 1=启用
1466
+ */
1467
+ Enable: number;
1468
+ }
1469
+ /**
1470
+ * UpdatePrometheusAgentStatus返回参数结构体
1471
+ */
1472
+ export interface UpdatePrometheusAgentStatusResponse {
1473
+ /**
1474
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1475
+ */
1476
+ RequestId?: string;
1477
+ }
1339
1478
  /**
1340
1479
  * Prometheus 服务发现信息
1341
1480
  */
@@ -1503,6 +1642,15 @@ export interface PeriodsSt {
1503
1642
  */
1504
1643
  StatType: Array<string>;
1505
1644
  }
1645
+ /**
1646
+ * BindPrometheusManagedGrafana返回参数结构体
1647
+ */
1648
+ export interface BindPrometheusManagedGrafanaResponse {
1649
+ /**
1650
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1651
+ */
1652
+ RequestId?: string;
1653
+ }
1506
1654
  /**
1507
1655
  * 告警策略详情
1508
1656
  */
@@ -1702,6 +1850,36 @@ export interface ModifyAlarmReceiversResponse {
1702
1850
  */
1703
1851
  RequestId?: string;
1704
1852
  }
1853
+ /**
1854
+ * Prometheus Agent 管理命令行
1855
+ */
1856
+ export interface ManagementCommand {
1857
+ /**
1858
+ * Agent 安装命令
1859
+ 注意:此字段可能返回 null,表示取不到有效值。
1860
+ */
1861
+ Install: string;
1862
+ /**
1863
+ * Agent 重启命令
1864
+ 注意:此字段可能返回 null,表示取不到有效值。
1865
+ */
1866
+ Restart: string;
1867
+ /**
1868
+ * Agent 停止命令
1869
+ 注意:此字段可能返回 null,表示取不到有效值。
1870
+ */
1871
+ Stop: string;
1872
+ /**
1873
+ * Agent 状态检测命令
1874
+ 注意:此字段可能返回 null,表示取不到有效值。
1875
+ */
1876
+ StatusCheck: string;
1877
+ /**
1878
+ * Agent 日志检测命令
1879
+ 注意:此字段可能返回 null,表示取不到有效值。
1880
+ */
1881
+ LogCheck: string;
1882
+ }
1705
1883
  /**
1706
1884
  * DescribePolicyConditionList返回参数结构体
1707
1885
  */
@@ -1805,6 +1983,19 @@ export interface DescribeAllNamespacesResponse {
1805
1983
  */
1806
1984
  RequestId?: string;
1807
1985
  }
1986
+ /**
1987
+ * GetPrometheusAgentManagementCommand请求参数结构体
1988
+ */
1989
+ export interface GetPrometheusAgentManagementCommandRequest {
1990
+ /**
1991
+ * Prometheus 实例 ID
1992
+ */
1993
+ InstanceId: string;
1994
+ /**
1995
+ * Prometheus Agent ID
1996
+ */
1997
+ AgentId: string;
1998
+ }
1808
1999
  /**
1809
2000
  * DeleteAlarmNotices返回参数结构体
1810
2001
  */
@@ -1814,6 +2005,43 @@ export interface DeleteAlarmNoticesResponse {
1814
2005
  */
1815
2006
  RequestId?: string;
1816
2007
  }
2008
+ /**
2009
+ * TerminatePrometheusInstances请求参数结构体
2010
+ */
2011
+ export interface TerminatePrometheusInstancesRequest {
2012
+ /**
2013
+ * 实例 ID 列表
2014
+ */
2015
+ InstanceIds: Array<string>;
2016
+ }
2017
+ /**
2018
+ * UnbindPrometheusManagedGrafana返回参数结构体
2019
+ */
2020
+ export interface UnbindPrometheusManagedGrafanaResponse {
2021
+ /**
2022
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2023
+ */
2024
+ RequestId?: string;
2025
+ }
2026
+ /**
2027
+ * UpdatePrometheusAgentStatus请求参数结构体
2028
+ */
2029
+ export interface UpdatePrometheusAgentStatusRequest {
2030
+ /**
2031
+ * 实例 ID
2032
+ */
2033
+ InstanceId: string;
2034
+ /**
2035
+ * Agent ID 列表
2036
+ */
2037
+ AgentIds: Array<string>;
2038
+ /**
2039
+ * 要更新的状态
2040
+ <li> 1= 开启 </li>
2041
+ <li> 2= 关闭 </li>
2042
+ */
2043
+ Status: number;
2044
+ }
1817
2045
  /**
1818
2046
  * DescribeBasicAlarmList返回参数结构体
1819
2047
  */
@@ -1962,13 +2190,54 @@ re=正则匹配
1962
2190
  ProductId?: string;
1963
2191
  }
1964
2192
  /**
1965
- * DescribeAlarmNoticeCallbacks请求参数结构体
2193
+ * CreateServiceDiscovery返回参数结构体
1966
2194
  */
1967
- export interface DescribeAlarmNoticeCallbacksRequest {
2195
+ export interface CreateServiceDiscoveryResponse {
1968
2196
  /**
1969
- * 模块名,这里填“monitor”
2197
+ * 创建成功之后,返回对应服务发现信息
1970
2198
  */
1971
- Module: string;
2199
+ ServiceDiscovery?: ServiceDiscoveryItem;
2200
+ /**
2201
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2202
+ */
2203
+ RequestId?: string;
2204
+ }
2205
+ /**
2206
+ * CreatePrometheusAgent返回参数结构体
2207
+ */
2208
+ export interface CreatePrometheusAgentResponse {
2209
+ /**
2210
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2211
+ */
2212
+ RequestId?: string;
2213
+ }
2214
+ /**
2215
+ * DescribeExporterIntegrations请求参数结构体
2216
+ */
2217
+ export interface DescribeExporterIntegrationsRequest {
2218
+ /**
2219
+ * 实例 ID
2220
+ */
2221
+ InstanceId: string;
2222
+ /**
2223
+ * Kubernetes 集群类型,取值如下:
2224
+ <li> 1= 容器集群(TKE) </li>
2225
+ <li> 2=弹性集群<EKS> </li>
2226
+ <li> 3= Prometheus管理的弹性集群<MEKS> </li>
2227
+ */
2228
+ KubeType: number;
2229
+ /**
2230
+ * 集群 ID
2231
+ */
2232
+ ClusterId: string;
2233
+ /**
2234
+ * 类型
2235
+ */
2236
+ Kind?: string;
2237
+ /**
2238
+ * 名字
2239
+ */
2240
+ Name?: string;
1972
2241
  }
1973
2242
  /**
1974
2243
  * DescribeProductEventList返回的Events的Dimensions
@@ -1999,6 +2268,36 @@ export interface ModifyAlarmPolicyConditionResponse {
1999
2268
  */
2000
2269
  RequestId?: string;
2001
2270
  }
2271
+ /**
2272
+ * UpgradeGrafanaDashboard请求参数结构体
2273
+ */
2274
+ export interface UpgradeGrafanaDashboardRequest {
2275
+ /**
2276
+ * 实例 ID
2277
+ */
2278
+ InstanceId: string;
2279
+ /**
2280
+ * Prometheus 集成项 Code,升级对应的 Dashboard,取值如下:
2281
+ <li>spring_mvc</li>
2282
+ <li>mysql</li>
2283
+ <li>go</li>
2284
+ <li>redis</li>
2285
+ <li>jvm</li>
2286
+ <li>pgsql</li>
2287
+ <li>mongo</li>
2288
+ <li>kafka</li>
2289
+ <li>es</li>
2290
+ <li>flink</li>
2291
+ <li>blackbox</li>
2292
+ <li>consule</li>
2293
+ <li>memcached</li>
2294
+ <li>zk</li>
2295
+ <li>tps</li>
2296
+ <li>istio</li>
2297
+ <li>etcd</li>
2298
+ */
2299
+ IntegrationCodes?: Array<string>;
2300
+ }
2002
2301
  /**
2003
2302
  * 告警对象所属实例组
2004
2303
  */
@@ -2013,17 +2312,13 @@ export interface InstanceGroups {
2013
2312
  Name: string;
2014
2313
  }
2015
2314
  /**
2016
- * 实例对象的维度组合
2315
+ * DestroyPrometheusInstance请求参数结构体
2017
2316
  */
2018
- export interface Dimension {
2317
+ export interface DestroyPrometheusInstanceRequest {
2019
2318
  /**
2020
- * 实例维度名称
2021
- */
2022
- Name: string;
2023
- /**
2024
- * 实例维度值
2319
+ * 实例 ID,该实例必须先被 terminate
2025
2320
  */
2026
- Value: string;
2321
+ InstanceId: string;
2027
2322
  }
2028
2323
  /**
2029
2324
  * 实例的授权信息
@@ -2054,6 +2349,19 @@ export interface PrometheusInstanceGrantInfo {
2054
2349
  */
2055
2350
  HasApiOperation: number;
2056
2351
  }
2352
+ /**
2353
+ * UnbindPrometheusManagedGrafana请求参数结构体
2354
+ */
2355
+ export interface UnbindPrometheusManagedGrafanaRequest {
2356
+ /**
2357
+ * Prometheus 实例 ID
2358
+ */
2359
+ InstanceId: string;
2360
+ /**
2361
+ * Grafana 实例 ID
2362
+ */
2363
+ GrafanaId: string;
2364
+ }
2057
2365
  /**
2058
2366
  * 模板列表
2059
2367
  */
@@ -2393,6 +2701,27 @@ export interface UserNotice {
2393
2701
  */
2394
2702
  Weekday?: Array<number>;
2395
2703
  }
2704
+ /**
2705
+ * UpdatePrometheusScrapeJob请求参数结构体
2706
+ */
2707
+ export interface UpdatePrometheusScrapeJobRequest {
2708
+ /**
2709
+ * 实例 ID
2710
+ */
2711
+ InstanceId: string;
2712
+ /**
2713
+ * Agent ID
2714
+ */
2715
+ AgentId: string;
2716
+ /**
2717
+ * 抓取任务 ID
2718
+ */
2719
+ JobId: string;
2720
+ /**
2721
+ * 抓取任务配置
2722
+ */
2723
+ Config: string;
2724
+ }
2396
2725
  /**
2397
2726
  * 告警策略过滤条件
2398
2727
  */
@@ -2422,6 +2751,15 @@ export interface DescribeAlarmNoticeCallbacksResponse {
2422
2751
  */
2423
2752
  RequestId?: string;
2424
2753
  }
2754
+ /**
2755
+ * UpdateExporterIntegration返回参数结构体
2756
+ */
2757
+ export interface UpdateExporterIntegrationResponse {
2758
+ /**
2759
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2760
+ */
2761
+ RequestId?: string;
2762
+ }
2425
2763
  /**
2426
2764
  * ModifyAlarmPolicyCondition请求参数结构体
2427
2765
  */
@@ -2456,14 +2794,27 @@ export interface ModifyAlarmPolicyConditionRequest {
2456
2794
  GroupBy?: Array<string>;
2457
2795
  }
2458
2796
  /**
2459
- * ModifyAlarmPolicyStatus返回参数结构体
2797
+ * ModifyAlarmNotice返回参数结构体
2460
2798
  */
2461
- export interface ModifyAlarmPolicyStatusResponse {
2799
+ export interface ModifyAlarmNoticeResponse {
2462
2800
  /**
2463
2801
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2464
2802
  */
2465
2803
  RequestId?: string;
2466
2804
  }
2805
+ /**
2806
+ * BindPrometheusManagedGrafana请求参数结构体
2807
+ */
2808
+ export interface BindPrometheusManagedGrafanaRequest {
2809
+ /**
2810
+ * Prometheus 实例 ID
2811
+ */
2812
+ InstanceId: string;
2813
+ /**
2814
+ * Grafana 可视化服务实例 ID
2815
+ */
2816
+ GrafanaId: string;
2817
+ }
2467
2818
  /**
2468
2819
  * 实例维度组合数组
2469
2820
  */
@@ -2522,6 +2873,15 @@ export interface DescribeAlarmPolicyResponse {
2522
2873
  */
2523
2874
  RequestId?: string;
2524
2875
  }
2876
+ /**
2877
+ * DeleteExporterIntegration返回参数结构体
2878
+ */
2879
+ export interface DeleteExporterIntegrationResponse {
2880
+ /**
2881
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2882
+ */
2883
+ RequestId?: string;
2884
+ }
2525
2885
  /**
2526
2886
  * UpdateServiceDiscovery返回参数结构体
2527
2887
  */
@@ -2549,51 +2909,17 @@ export interface DescribeMonitorTypesResponse {
2549
2909
  RequestId?: string;
2550
2910
  }
2551
2911
  /**
2552
- * 对业务指标的单位及支持统计周期的描述
2912
+ * 实例对象的维度组合
2553
2913
  */
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>;
2914
+ export interface Dimension {
2587
2915
  /**
2588
- * 指标中文名
2589
- 注意:此字段可能返回 null,表示取不到有效值。
2916
+ * 实例维度名称
2590
2917
  */
2591
- MetricCName: string;
2918
+ Name: string;
2592
2919
  /**
2593
- * 指标英文名
2594
- 注意:此字段可能返回 null,表示取不到有效值。
2920
+ * 实例维度值
2595
2921
  */
2596
- MetricEName: string;
2922
+ Value: string;
2597
2923
  }
2598
2924
  /**
2599
2925
  * DescribeBasicAlarmList返回的Alarms
@@ -2710,33 +3036,18 @@ export interface DescribeBasicAlarmListAlarms {
2710
3036
  InstanceGroup: Array<InstanceGroup>;
2711
3037
  }
2712
3038
  /**
2713
- * UpdateServiceDiscovery请求参数结构体
3039
+ * UpdateRecordingRule返回参数结构体
2714
3040
  */
2715
- export interface UpdateServiceDiscoveryRequest {
2716
- /**
2717
- * Prometheus 实例 ID
2718
- */
2719
- InstanceId: string;
2720
- /**
2721
- * <li>类型是 TKE,为对应的腾讯云容器服务集群 ID</li>
2722
- */
2723
- KubeClusterId: string;
3041
+ export interface UpdateRecordingRuleResponse {
2724
3042
  /**
2725
- * 用户 Kubernetes 集群类型:
2726
- <li> 1 = 容器服务集群(TKE) </li>
2727
- */
2728
- KubeType: number;
2729
- /**
2730
- * 服务发现类型,取值如下:
2731
- <li> 1 = ServiceMonitor</li>
2732
- <li> 2 = PodMonitor</li>
2733
- <li> 3 = JobMonitor</li>
3043
+ * 规则 ID
3044
+ 注意:此字段可能返回 null,表示取不到有效值。
2734
3045
  */
2735
- Type: number;
3046
+ RuleId: string;
2736
3047
  /**
2737
- * 服务发现配置信息
3048
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2738
3049
  */
2739
- Yaml: string;
3050
+ RequestId?: string;
2740
3051
  }
2741
3052
  /**
2742
3053
  * CreateAlarmNotice返回参数结构体
@@ -2902,18 +3213,17 @@ export interface ModifyPolicyGroupResponse {
2902
3213
  RequestId?: string;
2903
3214
  }
2904
3215
  /**
2905
- * DescribePolicyConditionList.ConfigManual.CalcType
3216
+ * DescribeAlarmMetrics返回参数结构体
2906
3217
  */
2907
- export interface DescribePolicyConditionListConfigManualCalcType {
3218
+ export interface DescribeAlarmMetricsResponse {
2908
3219
  /**
2909
- * CalcType 取值
2910
- 注意:此字段可能返回 null,表示取不到有效值。
3220
+ * 告警指标列表
2911
3221
  */
2912
- Keys: Array<number>;
3222
+ Metrics?: Array<Metric>;
2913
3223
  /**
2914
- * 是否必须
3224
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2915
3225
  */
2916
- Need: boolean;
3226
+ RequestId?: string;
2917
3227
  }
2918
3228
  /**
2919
3229
  * 告警条件
@@ -2963,6 +3273,19 @@ export interface Condition {
2963
3273
  */
2964
3274
  Unit: string;
2965
3275
  }
3276
+ /**
3277
+ * UpdateAlertRule返回参数结构体
3278
+ */
3279
+ export interface UpdateAlertRuleResponse {
3280
+ /**
3281
+ * 规则 ID
3282
+ */
3283
+ RuleId: string;
3284
+ /**
3285
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3286
+ */
3287
+ RequestId?: string;
3288
+ }
2966
3289
  /**
2967
3290
  * PutMonitorData请求参数结构体
2968
3291
  */
@@ -2985,21 +3308,38 @@ export interface PutMonitorDataRequest {
2985
3308
  AnnounceInstance?: string;
2986
3309
  }
2987
3310
  /**
2988
- * ModifyAlarmPolicyStatus请求参数结构体
3311
+ * DescribePrometheusAgents请求参数结构体
2989
3312
  */
2990
- export interface ModifyAlarmPolicyStatusRequest {
3313
+ export interface DescribePrometheusAgentsRequest {
2991
3314
  /**
2992
- * 模块名,固定值 monitor
3315
+ * 实例 ID
2993
3316
  */
2994
- Module: string;
3317
+ InstanceId: string;
2995
3318
  /**
2996
- * 告警策略 ID
3319
+ * Agent 名称
2997
3320
  */
2998
- PolicyId: string;
3321
+ Name?: string;
2999
3322
  /**
3000
- * 启停状态 0=停用 1=启用
3323
+ * Agent ID 列表
3001
3324
  */
3002
- Enable: number;
3325
+ AgentIds?: Array<string>;
3326
+ /**
3327
+ * 偏移量,默认为0
3328
+ */
3329
+ Offset?: number;
3330
+ /**
3331
+ * 返回数量,默认为20,最大值为100
3332
+ */
3333
+ Limit?: number;
3334
+ }
3335
+ /**
3336
+ * TerminatePrometheusInstances返回参数结构体
3337
+ */
3338
+ export interface TerminatePrometheusInstancesResponse {
3339
+ /**
3340
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3341
+ */
3342
+ RequestId?: string;
3003
3343
  }
3004
3344
  /**
3005
3345
  * DescribeMetricData接口出参
@@ -3047,18 +3387,55 @@ export interface BindingPolicyTagRequest {
3047
3387
  * 用于实例、实例组绑定和解绑接口(BindingPolicyObject、UnBindingAllPolicyObject、UnBindingPolicyObject)的策略 ID
3048
3388
  */
3049
3389
  GroupId: string;
3050
- /**
3051
- * 策略标签
3052
- */
3053
- Tag: PolicyTag;
3054
3390
  /**
3055
3391
  * 产品类型
3056
3392
  */
3057
3393
  ServiceType: string;
3394
+ /**
3395
+ * 策略标签
3396
+ */
3397
+ Tag?: PolicyTag;
3058
3398
  /**
3059
3399
  * 实例分组ID
3060
3400
  */
3061
3401
  InstanceGroupId?: number;
3402
+ /**
3403
+ * 批量绑定标签
3404
+ */
3405
+ BatchTag?: Array<PolicyTag>;
3406
+ }
3407
+ /**
3408
+ * export 集成配置
3409
+ */
3410
+ export interface IntegrationConfiguration {
3411
+ /**
3412
+ * 名字
3413
+ */
3414
+ Name: string;
3415
+ /**
3416
+ * 类型
3417
+ */
3418
+ Kind: string;
3419
+ /**
3420
+ * 内容
3421
+ */
3422
+ Content: string;
3423
+ /**
3424
+ * 状态
3425
+ */
3426
+ Status: number;
3427
+ /**
3428
+ * 实例类型
3429
+ */
3430
+ Category: string;
3431
+ /**
3432
+ * 实例描述
3433
+ */
3434
+ InstanceDesc: string;
3435
+ /**
3436
+ * dashboard 的 URL
3437
+ */
3438
+ GrafanaDashboardURL: string;
3062
3439
  }
3063
3440
  /**
3064
3441
  * UpdateAlertRule请求参数结构体
@@ -3112,38 +3489,21 @@ export interface UpdateAlertRuleRequest {
3112
3489
  Type?: string;
3113
3490
  }
3114
3491
  /**
3115
- * DescribeBindingPolicyObjectList返回参数结构体
3492
+ * 告警策略事件触发条件
3116
3493
  */
3117
- export interface DescribeBindingPolicyObjectListResponse {
3494
+ export interface AlarmPolicyEventCondition {
3118
3495
  /**
3119
- * 绑定的对象实例列表
3496
+ * 告警触发条件列表
3120
3497
  注意:此字段可能返回 null,表示取不到有效值。
3121
3498
  */
3122
- List: Array<DescribeBindingPolicyObjectListInstance>;
3499
+ Rules: Array<AlarmPolicyRule>;
3500
+ }
3501
+ /**
3502
+ * 查询策略输出的模板策略组信息
3503
+ */
3504
+ export interface DescribePolicyGroupInfoConditionTpl {
3123
3505
  /**
3124
- * 绑定的对象实例总数
3125
- */
3126
- Total: number;
3127
- /**
3128
- * 未屏蔽的对象实例数
3129
- */
3130
- NoShieldedSum: number;
3131
- /**
3132
- * 绑定的实例分组信息,没有绑定实例分组则为空
3133
- 注意:此字段可能返回 null,表示取不到有效值。
3134
- */
3135
- InstanceGroup: DescribeBindingPolicyObjectListInstanceGroup;
3136
- /**
3137
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3138
- */
3139
- RequestId?: string;
3140
- }
3141
- /**
3142
- * 查询策略输出的模板策略组信息
3143
- */
3144
- export interface DescribePolicyGroupInfoConditionTpl {
3145
- /**
3146
- * 策略组id
3506
+ * 策略组id
3147
3507
  */
3148
3508
  GroupId: number;
3149
3509
  /**
@@ -3216,6 +3576,15 @@ export interface UnBindingPolicyObjectResponse {
3216
3576
  */
3217
3577
  RequestId?: string;
3218
3578
  }
3579
+ /**
3580
+ * SendCustomAlarmMsg返回参数结构体
3581
+ */
3582
+ export interface SendCustomAlarmMsgResponse {
3583
+ /**
3584
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3585
+ */
3586
+ RequestId?: string;
3587
+ }
3219
3588
  /**
3220
3589
  * DescribeBasicAlarmList返回的Alarms里的InstanceGroup
3221
3590
  */
@@ -3354,6 +3723,19 @@ export interface DeleteAlarmNoticesRequest {
3354
3723
  */
3355
3724
  NoticeIds: Array<string>;
3356
3725
  }
3726
+ /**
3727
+ * DescribeExporterIntegrations返回参数结构体
3728
+ */
3729
+ export interface DescribeExporterIntegrationsResponse {
3730
+ /**
3731
+ * 集成配置列表
3732
+ */
3733
+ IntegrationSet: Array<IntegrationConfiguration>;
3734
+ /**
3735
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3736
+ */
3737
+ RequestId?: string;
3738
+ }
3357
3739
  /**
3358
3740
  * DescribePolicyConditionList.ConfigManual.PeriodNum
3359
3741
  */
@@ -3373,6 +3755,15 @@ export interface DescribePolicyConditionListConfigManualPeriodNum {
3373
3755
  */
3374
3756
  Need: boolean;
3375
3757
  }
3758
+ /**
3759
+ * UpgradeGrafanaDashboard返回参数结构体
3760
+ */
3761
+ export interface UpgradeGrafanaDashboardResponse {
3762
+ /**
3763
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3764
+ */
3765
+ RequestId?: string;
3766
+ }
3376
3767
  /**
3377
3768
  * DescribeAllNamespaces请求参数结构体
3378
3769
  */
@@ -3465,30 +3856,40 @@ export interface PolicyGroup {
3465
3856
  IsUnionRule: number;
3466
3857
  }
3467
3858
  /**
3468
- * UpdateAlertRule返回参数结构体
3859
+ * DeleteRecordingRules请求参数结构体
3469
3860
  */
3470
- export interface UpdateAlertRuleResponse {
3861
+ export interface DeleteRecordingRulesRequest {
3471
3862
  /**
3472
- * 规则 ID
3863
+ * 规则 ID 列表
3473
3864
  */
3474
- RuleId: string;
3865
+ RuleIds: Array<string>;
3866
+ /**
3867
+ * Prometheus 实例 ID
3868
+ */
3869
+ InstanceId: string;
3870
+ }
3871
+ /**
3872
+ * UpdatePrometheusScrapeJob返回参数结构体
3873
+ */
3874
+ export interface UpdatePrometheusScrapeJobResponse {
3475
3875
  /**
3476
3876
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3477
3877
  */
3478
3878
  RequestId?: string;
3479
3879
  }
3480
3880
  /**
3481
- * DescribeAlarmMetrics返回参数结构体
3881
+ * DescribePolicyConditionList.ConfigManual.CalcType
3482
3882
  */
3483
- export interface DescribeAlarmMetricsResponse {
3883
+ export interface DescribePolicyConditionListConfigManualCalcType {
3484
3884
  /**
3485
- * 告警指标列表
3885
+ * CalcType 取值
3886
+ 注意:此字段可能返回 null,表示取不到有效值。
3486
3887
  */
3487
- Metrics?: Array<Metric>;
3888
+ Keys: Array<number>;
3488
3889
  /**
3489
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3890
+ * 是否必须
3490
3891
  */
3491
- RequestId?: string;
3892
+ Need: boolean;
3492
3893
  }
3493
3894
  /**
3494
3895
  * DescribePolicyGroupList接口策略组绑定的实例分组信息
@@ -3622,18 +4023,37 @@ export interface DescribeAlarmPoliciesRequest {
3622
4023
  OneClickPolicyType?: Array<string>;
3623
4024
  }
3624
4025
  /**
3625
- * DescribeConditionsTemplateList返回参数结构体
4026
+ * DescribeAccidentEventList返回参数结构体
3626
4027
  */
3627
- export interface DescribeConditionsTemplateListResponse {
4028
+ export interface DescribeAccidentEventListResponse {
3628
4029
  /**
3629
- * 模板总数
4030
+ * 平台事件列表
4031
+ 注意:此字段可能返回 null,表示取不到有效值。
3630
4032
  */
3631
- Total: number;
4033
+ Alarms?: Array<DescribeAccidentEventListAlarms>;
3632
4034
  /**
3633
- * 模板列表
4035
+ * 平台事件的总数
3634
4036
  注意:此字段可能返回 null,表示取不到有效值。
3635
4037
  */
3636
- TemplateGroupList: Array<TemplateGroup>;
4038
+ Total?: number;
4039
+ /**
4040
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4041
+ */
4042
+ RequestId?: string;
4043
+ }
4044
+ /**
4045
+ * DescribePrometheusScrapeJobs返回参数结构体
4046
+ */
4047
+ export interface DescribePrometheusScrapeJobsResponse {
4048
+ /**
4049
+ * 任务列表
4050
+ 注意:此字段可能返回 null,表示取不到有效值。
4051
+ */
4052
+ ScrapeJobSet?: Array<PrometheusScrapeJob>;
4053
+ /**
4054
+ * 任务总量
4055
+ */
4056
+ TotalCount?: number;
3637
4057
  /**
3638
4058
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3639
4059
  */
@@ -3754,21 +4174,13 @@ export interface AlarmNotice {
3754
4174
  CLSNotices: Array<CLSNotice>;
3755
4175
  }
3756
4176
  /**
3757
- * 指标配置
4177
+ * DeleteRecordingRules返回参数结构体
3758
4178
  */
3759
- export interface MetricConfig {
3760
- /**
3761
- * 允许使用的运算符
3762
- */
3763
- Operator: Array<string>;
3764
- /**
3765
- * 允许配置的数据周期,以秒为单位
3766
- */
3767
- Period: Array<number>;
4179
+ export interface DeleteRecordingRulesResponse {
3768
4180
  /**
3769
- * 允许配置的持续周期个数
4181
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3770
4182
  */
3771
- ContinuePeriod: Array<number>;
4183
+ RequestId?: string;
3772
4184
  }
3773
4185
  /**
3774
4186
  * 2018版策略模板列表接收人信息
@@ -3833,6 +4245,24 @@ export interface PolicyGroupReceiverInfo {
3833
4245
  */
3834
4246
  UIDList: Array<number>;
3835
4247
  }
4248
+ /**
4249
+ * DescribePrometheusAgents返回参数结构体
4250
+ */
4251
+ export interface DescribePrometheusAgentsResponse {
4252
+ /**
4253
+ * Agent 列表
4254
+ 注意:此字段可能返回 null,表示取不到有效值。
4255
+ */
4256
+ AgentSet: Array<PrometheusAgent>;
4257
+ /**
4258
+ * Agent 总量
4259
+ */
4260
+ TotalCount: number;
4261
+ /**
4262
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4263
+ */
4264
+ RequestId?: string;
4265
+ }
3836
4266
  /**
3837
4267
  * DescribeAlarmEvents请求参数结构体
3838
4268
  */
@@ -3868,13 +4298,81 @@ export interface MidQueryCondition {
3868
4298
  Value: Array<string>;
3869
4299
  }
3870
4300
  /**
3871
- * ModifyAlarmNotice返回参数结构体
4301
+ * DeletePrometheusScrapeJobs请求参数结构体
3872
4302
  */
3873
- export interface ModifyAlarmNoticeResponse {
4303
+ export interface DeletePrometheusScrapeJobsRequest {
3874
4304
  /**
3875
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4305
+ * 实例 ID
3876
4306
  */
3877
- RequestId?: string;
4307
+ InstanceId: string;
4308
+ /**
4309
+ * Agent ID
4310
+ */
4311
+ AgentId: string;
4312
+ /**
4313
+ * 任务 ID 列表
4314
+ */
4315
+ JobIds: Array<string>;
4316
+ }
4317
+ /**
4318
+ * UnBindingPolicyObject请求参数结构体
4319
+ */
4320
+ export interface UnBindingPolicyObjectRequest {
4321
+ /**
4322
+ * 固定值,为"monitor"
4323
+ */
4324
+ Module: string;
4325
+ /**
4326
+ * 策略组id,如传入 PolicyId 则该字段被忽略可传入任意值如 0
4327
+ */
4328
+ GroupId: number;
4329
+ /**
4330
+ * 待删除对象实例的唯一id列表,UniqueId从调用[获取已绑定对象列表接口](https://cloud.tencent.com/document/api/248/40570)的出参的List中得到
4331
+ */
4332
+ UniqueId: Array<string>;
4333
+ /**
4334
+ * 实例分组id,如果按实例分组删除的话UniqueId参数是无效的
4335
+ */
4336
+ InstanceGroupId?: number;
4337
+ /**
4338
+ * 告警策略ID,使用此字段时 GroupId 会被忽略
4339
+ */
4340
+ PolicyId?: string;
4341
+ }
4342
+ /**
4343
+ * 云监控告警通知模板 - 回调通知详情
4344
+ */
4345
+ export interface URLNotice {
4346
+ /**
4347
+ * 回调 url(限长256字符)
4348
+ 注意:此字段可能返回 null,表示取不到有效值。
4349
+ */
4350
+ URL: string;
4351
+ /**
4352
+ * 是否通过验证 0=否 1=是
4353
+ 注意:此字段可能返回 null,表示取不到有效值。
4354
+ */
4355
+ IsValid?: number;
4356
+ /**
4357
+ * 验证码
4358
+ 注意:此字段可能返回 null,表示取不到有效值。
4359
+ */
4360
+ ValidationCode?: string;
4361
+ /**
4362
+ * 通知开始时间 一天开始的秒数
4363
+ 注意:此字段可能返回 null,表示取不到有效值。
4364
+ */
4365
+ StartTime?: number;
4366
+ /**
4367
+ * 通知结束时间 一天开始的秒数
4368
+ 注意:此字段可能返回 null,表示取不到有效值。
4369
+ */
4370
+ EndTime?: number;
4371
+ /**
4372
+ * 通知周期 1-7表示周一到周日
4373
+ 注意:此字段可能返回 null,表示取不到有效值。
4374
+ */
4375
+ Weekday?: Array<number>;
3878
4376
  }
3879
4377
  /**
3880
4378
  * CreateAlertRule请求参数结构体
@@ -4089,39 +4587,13 @@ export interface DeleteAlarmPolicyResponse {
4089
4587
  RequestId?: string;
4090
4588
  }
4091
4589
  /**
4092
- * 云监控告警通知模板 - 回调通知详情
4590
+ * DeletePrometheusScrapeJobs返回参数结构体
4093
4591
  */
4094
- export interface URLNotice {
4095
- /**
4096
- * 回调 url(限长256字符)
4097
- 注意:此字段可能返回 null,表示取不到有效值。
4098
- */
4099
- URL: string;
4100
- /**
4101
- * 是否通过验证 0=否 1=是
4102
- 注意:此字段可能返回 null,表示取不到有效值。
4103
- */
4104
- IsValid?: number;
4105
- /**
4106
- * 验证码
4107
- 注意:此字段可能返回 null,表示取不到有效值。
4108
- */
4109
- ValidationCode?: string;
4110
- /**
4111
- * 通知开始时间 一天开始的秒数
4112
- 注意:此字段可能返回 null,表示取不到有效值。
4113
- */
4114
- StartTime?: number;
4115
- /**
4116
- * 通知结束时间 一天开始的秒数
4117
- 注意:此字段可能返回 null,表示取不到有效值。
4118
- */
4119
- EndTime?: number;
4592
+ export interface DeletePrometheusScrapeJobsResponse {
4120
4593
  /**
4121
- * 通知周期 1-7表示周一到周日
4122
- 注意:此字段可能返回 null,表示取不到有效值。
4594
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4123
4595
  */
4124
- Weekday?: Array<number>;
4596
+ RequestId?: string;
4125
4597
  }
4126
4598
  /**
4127
4599
  * DescribeAlarmPolicy请求参数结构体
@@ -4315,50 +4787,109 @@ export interface DescribeStatisticDataResponse {
4315
4787
  RequestId?: string;
4316
4788
  }
4317
4789
  /**
4318
- * DescribePolicyConditionList.EventMetric
4790
+ * CreatePrometheusScrapeJob请求参数结构体
4319
4791
  */
4320
- export interface DescribePolicyConditionListEventMetric {
4321
- /**
4322
- * 事件id
4323
- */
4324
- EventId: number;
4792
+ export interface CreatePrometheusScrapeJobRequest {
4325
4793
  /**
4326
- * 事件名称
4794
+ * 实例 ID
4327
4795
  */
4328
- EventShowName: string;
4796
+ InstanceId: string;
4329
4797
  /**
4330
- * 是否需要恢复
4798
+ * Agent ID
4331
4799
  */
4332
- NeedRecovered: boolean;
4800
+ AgentId: string;
4333
4801
  /**
4334
- * 事件类型,预留字段,当前固定取值为2
4802
+ * 任务内容
4335
4803
  */
4336
- Type: number;
4804
+ Config?: string;
4337
4805
  }
4338
4806
  /**
4339
- * DescribePolicyGroupList请求参数结构体
4807
+ * Prometheus 聚合规则响应结构体内信息
4340
4808
  */
4341
- export interface DescribePolicyGroupListRequest {
4809
+ export interface RecordingRuleSet {
4342
4810
  /**
4343
- * 固定值,为"monitor"
4811
+ * 规则 ID
4344
4812
  */
4345
- Module: string;
4813
+ RuleId: string;
4346
4814
  /**
4347
- * 分页参数,每页返回的数量,取值1~100
4815
+ * 规则状态码
4348
4816
  */
4349
- Limit: number;
4817
+ RuleState: number;
4350
4818
  /**
4351
- * 分页参数,页偏移量,从0开始计数
4819
+ * 规则名称
4352
4820
  */
4353
- Offset: number;
4821
+ Name: string;
4354
4822
  /**
4355
- * 按策略名搜索
4823
+ * 规则内容组
4356
4824
  */
4357
- Like?: string;
4825
+ Group: string;
4358
4826
  /**
4359
- * 实例分组id
4827
+ * 规则数量
4360
4828
  */
4361
- InstanceGroupId?: number;
4829
+ Total: number;
4830
+ /**
4831
+ * 规则创建时间
4832
+ */
4833
+ CreatedAt: string;
4834
+ /**
4835
+ * 规则最近更新时间
4836
+ */
4837
+ UpdatedAt: string;
4838
+ }
4839
+ /**
4840
+ * CreateExporterIntegration返回参数结构体
4841
+ */
4842
+ export interface CreateExporterIntegrationResponse {
4843
+ /**
4844
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4845
+ */
4846
+ RequestId?: string;
4847
+ }
4848
+ /**
4849
+ * DescribePolicyConditionList.EventMetric
4850
+ */
4851
+ export interface DescribePolicyConditionListEventMetric {
4852
+ /**
4853
+ * 事件id
4854
+ */
4855
+ EventId: number;
4856
+ /**
4857
+ * 事件名称
4858
+ */
4859
+ EventShowName: string;
4860
+ /**
4861
+ * 是否需要恢复
4862
+ */
4863
+ NeedRecovered: boolean;
4864
+ /**
4865
+ * 事件类型,预留字段,当前固定取值为2
4866
+ */
4867
+ Type: number;
4868
+ }
4869
+ /**
4870
+ * DescribePolicyGroupList请求参数结构体
4871
+ */
4872
+ export interface DescribePolicyGroupListRequest {
4873
+ /**
4874
+ * 固定值,为"monitor"
4875
+ */
4876
+ Module: string;
4877
+ /**
4878
+ * 分页参数,每页返回的数量,取值1~100
4879
+ */
4880
+ Limit: number;
4881
+ /**
4882
+ * 分页参数,页偏移量,从0开始计数
4883
+ */
4884
+ Offset: number;
4885
+ /**
4886
+ * 按策略名搜索
4887
+ */
4888
+ Like?: string;
4889
+ /**
4890
+ * 实例分组id
4891
+ */
4892
+ InstanceGroupId?: number;
4362
4893
  /**
4363
4894
  * 按更新时间排序, asc 或者 desc
4364
4895
  */
@@ -4598,6 +5129,34 @@ export interface DescribePolicyGroupListGroup {
4598
5129
  */
4599
5130
  IsUnionRule: number;
4600
5131
  }
5132
+ /**
5133
+ * UpdateExporterIntegration请求参数结构体
5134
+ */
5135
+ export interface UpdateExporterIntegrationRequest {
5136
+ /**
5137
+ * 实例 ID
5138
+ */
5139
+ InstanceId: string;
5140
+ /**
5141
+ * Kubernetes 集群类型,取值如下:
5142
+ <li> 1= 容器集群(TKE) </li>
5143
+ <li> 2=弹性集群<EKS> </li>
5144
+ <li> 3= Prometheus管理的弹性集群<MEKS> </li>
5145
+ */
5146
+ KubeType: number;
5147
+ /**
5148
+ * 集群 ID
5149
+ */
5150
+ ClusterId: string;
5151
+ /**
5152
+ * 类型
5153
+ */
5154
+ Kind: string;
5155
+ /**
5156
+ * 配置内容
5157
+ */
5158
+ Content: string;
5159
+ }
4601
5160
  /**
4602
5161
  * DescribeAccidentEventList请求参数结构体
4603
5162
  */
@@ -4651,6 +5210,20 @@ export interface DescribeAccidentEventListRequest {
4651
5210
  */
4652
5211
  AffectResource?: string;
4653
5212
  }
5213
+ /**
5214
+ * CreateRecordingRule返回参数结构体
5215
+ */
5216
+ export interface CreateRecordingRuleResponse {
5217
+ /**
5218
+ * 规则 ID
5219
+ 注意:此字段可能返回 null,表示取不到有效值。
5220
+ */
5221
+ RuleId: string;
5222
+ /**
5223
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5224
+ */
5225
+ RequestId?: string;
5226
+ }
4654
5227
  /**
4655
5228
  * 指标名称和值的封装
4656
5229
  */
@@ -4716,19 +5289,33 @@ export interface DescribeBindingPolicyObjectListInstanceGroup {
4716
5289
  Regions: Array<string>;
4717
5290
  }
4718
5291
  /**
4719
- * DescribeProductEventList返回的Events里的GroupInfo
5292
+ * UpdateServiceDiscovery请求参数结构体
4720
5293
  */
4721
- export interface DescribeProductEventListEventsGroupInfo {
5294
+ export interface UpdateServiceDiscoveryRequest {
4722
5295
  /**
4723
- * 策略ID
4724
- 注意:此字段可能返回 null,表示取不到有效值。
5296
+ * Prometheus 实例 ID
4725
5297
  */
4726
- GroupId: number;
5298
+ InstanceId: string;
4727
5299
  /**
4728
- * 策略名
4729
- 注意:此字段可能返回 null,表示取不到有效值。
5300
+ * <li>类型是 TKE,为对应的腾讯云容器服务集群 ID</li>
4730
5301
  */
4731
- GroupName: string;
5302
+ KubeClusterId: string;
5303
+ /**
5304
+ * 用户 Kubernetes 集群类型:
5305
+ <li> 1 = 容器服务集群(TKE) </li>
5306
+ */
5307
+ KubeType: number;
5308
+ /**
5309
+ * 服务发现类型,取值如下:
5310
+ <li> 1 = ServiceMonitor</li>
5311
+ <li> 2 = PodMonitor</li>
5312
+ <li> 3 = JobMonitor</li>
5313
+ */
5314
+ Type: number;
5315
+ /**
5316
+ * 服务发现配置信息
5317
+ */
5318
+ Yaml: string;
4732
5319
  }
4733
5320
  /**
4734
5321
  * DeleteAlertRules请求参数结构体
@@ -4756,6 +5343,49 @@ export interface DescribeAlarmNoticeRequest {
4756
5343
  */
4757
5344
  NoticeId: string;
4758
5345
  }
5346
+ /**
5347
+ * UninstallGrafanaDashboard请求参数结构体
5348
+ */
5349
+ export interface UninstallGrafanaDashboardRequest {
5350
+ /**
5351
+ * 实例 ID
5352
+ */
5353
+ InstanceId: string;
5354
+ /**
5355
+ * Prometheus 集成项 Code,删除对应的 Dashboard,Code 如下:
5356
+ <li>spring_mvc</li>
5357
+ <li>mysql</li>
5358
+ <li>go</li>
5359
+ <li>redis</li>
5360
+ <li>jvm</li>
5361
+ <li>pgsql</li>
5362
+ <li>mongo</li>
5363
+ <li>kafka</li>
5364
+ <li>es</li>
5365
+ <li>flink</li>
5366
+ <li>blackbox</li>
5367
+ <li>consule</li>
5368
+ <li>memcached</li>
5369
+ <li>zk</li>
5370
+ <li>tps</li>
5371
+ <li>istio</li>
5372
+ <li>etcd</li>
5373
+ */
5374
+ IntegrationCodes?: Array<string>;
5375
+ }
5376
+ /**
5377
+ * CreatePrometheusAgent请求参数结构体
5378
+ */
5379
+ export interface CreatePrometheusAgentRequest {
5380
+ /**
5381
+ * 实例 ID
5382
+ */
5383
+ InstanceId: string;
5384
+ /**
5385
+ * Agent 名称
5386
+ */
5387
+ Name: string;
5388
+ }
4759
5389
  /**
4760
5390
  * DescribeBindingPolicyObjectList接口的Dimension
4761
5391
  */
@@ -4957,6 +5587,38 @@ export interface ReceiverInfo {
4957
5587
  */
4958
5588
  ReceiveLanguage?: string;
4959
5589
  }
5590
+ /**
5591
+ * DescribeRecordingRules请求参数结构体
5592
+ */
5593
+ export interface DescribeRecordingRulesRequest {
5594
+ /**
5595
+ * Prometheus 实例 ID
5596
+ */
5597
+ InstanceId: string;
5598
+ /**
5599
+ * 返回数量,默认为 20,最大值为 100
5600
+ */
5601
+ Limit?: number;
5602
+ /**
5603
+ * 偏移量,默认为 0
5604
+ */
5605
+ Offset?: number;
5606
+ /**
5607
+ * 规则 ID
5608
+ */
5609
+ RuleId?: string;
5610
+ /**
5611
+ * 规则状态码,取值如下:
5612
+ <li>1=RuleDeleted</li>
5613
+ <li>2=RuleEnabled</li>
5614
+ <li>3=RuleDisabled</li>
5615
+ */
5616
+ RuleState?: number;
5617
+ /**
5618
+ * 规则名称
5619
+ */
5620
+ Name?: string;
5621
+ }
4960
5622
  /**
4961
5623
  * UnBindingAllPolicyObject请求参数结构体
4962
5624
  */
@@ -5021,14 +5683,69 @@ export interface DescribePolicyGroupInfoEventCondition {
5021
5683
  AlarmNotifyType: number;
5022
5684
  }
5023
5685
  /**
5024
- * SendCustomAlarmMsg返回参数结构体
5686
+ * prometheus 报警规则 KV 参数
5025
5687
  */
5026
- export interface SendCustomAlarmMsgResponse {
5688
+ export interface PrometheusRuleKV {
5689
+ /**
5690
+ * 键
5691
+ */
5692
+ Key: string;
5693
+ /**
5694
+ * 值
5695
+ */
5696
+ Value: string;
5697
+ }
5698
+ /**
5699
+ * ModifyAlarmPolicyStatus返回参数结构体
5700
+ */
5701
+ export interface ModifyAlarmPolicyStatusResponse {
5027
5702
  /**
5028
5703
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5029
5704
  */
5030
5705
  RequestId?: string;
5031
5706
  }
5707
+ /**
5708
+ * GetPrometheusAgentManagementCommand返回参数结构体
5709
+ */
5710
+ export interface GetPrometheusAgentManagementCommandResponse {
5711
+ /**
5712
+ * Agent 管理命令
5713
+ */
5714
+ Command?: ManagementCommand;
5715
+ /**
5716
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5717
+ */
5718
+ RequestId?: string;
5719
+ }
5720
+ /**
5721
+ * UpdateRecordingRule请求参数结构体
5722
+ */
5723
+ export interface UpdateRecordingRuleRequest {
5724
+ /**
5725
+ * 聚合规则名称
5726
+ */
5727
+ Name: string;
5728
+ /**
5729
+ * 聚合规则组内容,格式为 yaml,通过 base64 进行编码。
5730
+ */
5731
+ Group: string;
5732
+ /**
5733
+ * Prometheus 实例 ID
5734
+ */
5735
+ InstanceId: string;
5736
+ /**
5737
+ * Prometheus 聚合规则 ID
5738
+ */
5739
+ RuleId: string;
5740
+ /**
5741
+ * 规则状态码,取值如下:
5742
+ <li>1=RuleDeleted</li>
5743
+ <li>2=RuleEnabled</li>
5744
+ <li>3=RuleDisabled</li>
5745
+ 默认状态码为 2 启用。
5746
+ */
5747
+ RuleState?: number;
5748
+ }
5032
5749
  /**
5033
5750
  * 告警策略指标触发条件
5034
5751
  */
@@ -5121,6 +5838,178 @@ export interface DescribePolicyConditionListCondition {
5121
5838
  */
5122
5839
  SupportRegions: Array<string>;
5123
5840
  }
5841
+ /**
5842
+ * Prometheus 服务响应体
5843
+ */
5844
+ export interface PrometheusInstancesItem {
5845
+ /**
5846
+ * 实例ID。
5847
+ */
5848
+ InstanceId: string;
5849
+ /**
5850
+ * 实例名称。
5851
+ */
5852
+ InstanceName: string;
5853
+ /**
5854
+ * 实例计费模式。取值范围:
5855
+ <ul>
5856
+ <li>2:包年包月</li>
5857
+ <li>3:按量</li>
5858
+ </ul>
5859
+ */
5860
+ InstanceChargeType: number;
5861
+ /**
5862
+ * 地域 ID
5863
+ */
5864
+ RegionId: number;
5865
+ /**
5866
+ * 可用区
5867
+ */
5868
+ Zone: string;
5869
+ /**
5870
+ * VPC ID
5871
+ */
5872
+ VpcId: string;
5873
+ /**
5874
+ * 子网 ID
5875
+ */
5876
+ SubnetId: string;
5877
+ /**
5878
+ * 存储周期
5879
+ 注意:此字段可能返回 null,表示取不到有效值。
5880
+ */
5881
+ DataRetentionTime: number;
5882
+ /**
5883
+ * 实例业务状态。取值范围:
5884
+ <ul>
5885
+ <li>1:正在创建</li>
5886
+ <li>2:运行中</li>
5887
+ <li>3:异常</li>
5888
+ <li>4:重建中</li>
5889
+ <li>5:销毁中</li>
5890
+ <li>6:已停服</li>
5891
+ <li>8:欠费停服中</li>
5892
+ <li>9:欠费已停服</li>
5893
+ </ul>
5894
+ */
5895
+ InstanceStatus: number;
5896
+ /**
5897
+ * Grafana 面板 URL
5898
+ 注意:此字段可能返回 null,表示取不到有效值。
5899
+ */
5900
+ GrafanaURL: string;
5901
+ /**
5902
+ * 创建时间
5903
+ */
5904
+ CreatedAt: string;
5905
+ /**
5906
+ * 是否开启 Grafana
5907
+ <li>0:不开启</li>
5908
+ <li>1:开启</li>
5909
+ */
5910
+ EnableGrafana: number;
5911
+ /**
5912
+ * 实例IPV4地址
5913
+ 注意:此字段可能返回 null,表示取不到有效值。
5914
+ */
5915
+ IPv4Address: string;
5916
+ /**
5917
+ * 实例关联的标签列表。
5918
+ 注意:此字段可能返回 null,表示取不到有效值。
5919
+ */
5920
+ TagSpecification: Array<PrometheusTag>;
5921
+ /**
5922
+ * 购买的实例过期时间
5923
+ 注意:此字段可能返回 null,表示取不到有效值。
5924
+ */
5925
+ ExpireTime: string;
5926
+ /**
5927
+ * 计费状态
5928
+ <ul>
5929
+ <li>1:正常</li>
5930
+ <li>2:过期</li>
5931
+ <li>3:销毁</li>
5932
+ <li>4:分配中</li>
5933
+ <li>5:分配失败</li>
5934
+ </ul>
5935
+ 注意:此字段可能返回 null,表示取不到有效值。
5936
+ */
5937
+ ChargeStatus: number;
5938
+ /**
5939
+ * 规格名称
5940
+ 注意:此字段可能返回 null,表示取不到有效值。
5941
+ */
5942
+ SpecName: string;
5943
+ /**
5944
+ * 自动续费标记
5945
+ <ul>
5946
+ <li>0:不自动续费</li>
5947
+ <li>1:开启自动续费</li>
5948
+ <li>2:禁止自动续费</li>
5949
+ <li>-1:无效</ii>
5950
+ </ul>
5951
+ 注意:此字段可能返回 null,表示取不到有效值。
5952
+ */
5953
+ AutoRenewFlag: number;
5954
+ /**
5955
+ * 是否快过期
5956
+ <ul>
5957
+ <li>0:否</li>
5958
+ <li>1:快过期</li>
5959
+ </ul>
5960
+ 注意:此字段可能返回 null,表示取不到有效值。
5961
+ */
5962
+ IsNearExpire: number;
5963
+ /**
5964
+ * 数据写入需要的 Token
5965
+ 注意:此字段可能返回 null,表示取不到有效值。
5966
+ */
5967
+ AuthToken: string;
5968
+ /**
5969
+ * Prometheus Remote Write 的地址
5970
+ 注意:此字段可能返回 null,表示取不到有效值。
5971
+ */
5972
+ RemoteWrite: string;
5973
+ /**
5974
+ * Prometheus HTTP Api 根地址
5975
+ 注意:此字段可能返回 null,表示取不到有效值。
5976
+ */
5977
+ ApiRootPath: string;
5978
+ /**
5979
+ * Proxy 的地址
5980
+ 注意:此字段可能返回 null,表示取不到有效值。
5981
+ */
5982
+ ProxyAddress: string;
5983
+ /**
5984
+ * Grafana 运行状态
5985
+ <ul>
5986
+ <li>1:正在创建</li>
5987
+ <li>2:运行中</li>
5988
+ <li>3:异常</li>
5989
+ <li>4:重启中</li>
5990
+ <li>5:销毁中</li>
5991
+ <li>6:已停机</li>
5992
+ <li>7:已删除</li>
5993
+ </ul>
5994
+ 注意:此字段可能返回 null,表示取不到有效值。
5995
+ */
5996
+ GrafanaStatus: number;
5997
+ /**
5998
+ * Grafana IP 白名单列表,使用英文分号分隔
5999
+ 注意:此字段可能返回 null,表示取不到有效值。
6000
+ */
6001
+ GrafanaIpWhiteList: string;
6002
+ /**
6003
+ * 实例的授权信息
6004
+ 注意:此字段可能返回 null,表示取不到有效值。
6005
+ */
6006
+ Grant: PrometheusInstanceGrantInfo;
6007
+ /**
6008
+ * 绑定的 Grafana 实例 ID
6009
+ 注意:此字段可能返回 null,表示取不到有效值。
6010
+ */
6011
+ GrafanaInstanceId: string;
6012
+ }
5124
6013
  /**
5125
6014
  * DeleteServiceDiscovery请求参数结构体
5126
6015
  */
@@ -5151,14 +6040,19 @@ export interface DeleteServiceDiscoveryRequest {
5151
6040
  Yaml: string;
5152
6041
  }
5153
6042
  /**
5154
- * 告警策略事件触发条件
6043
+ * DescribeProductEventList返回的Events里的GroupInfo
5155
6044
  */
5156
- export interface AlarmPolicyEventCondition {
6045
+ export interface DescribeProductEventListEventsGroupInfo {
5157
6046
  /**
5158
- * 告警触发条件列表
6047
+ * 策略ID
5159
6048
  注意:此字段可能返回 null,表示取不到有效值。
5160
6049
  */
5161
- Rules: Array<AlarmPolicyRule>;
6050
+ GroupId: number;
6051
+ /**
6052
+ * 策略名
6053
+ 注意:此字段可能返回 null,表示取不到有效值。
6054
+ */
6055
+ GroupName: string;
5162
6056
  }
5163
6057
  /**
5164
6058
  * DescribePrometheusInstances请求参数结构体
@@ -5276,6 +6170,15 @@ export interface SetDefaultAlarmPolicyResponse {
5276
6170
  */
5277
6171
  RequestId?: string;
5278
6172
  }
6173
+ /**
6174
+ * UninstallGrafanaDashboard返回参数结构体
6175
+ */
6176
+ export interface UninstallGrafanaDashboardResponse {
6177
+ /**
6178
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
6179
+ */
6180
+ RequestId?: string;
6181
+ }
5279
6182
  /**
5280
6183
  * BindingPolicyObject返回参数结构体
5281
6184
  */