tencentcloud-sdk-nodejs 4.0.369 → 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 (31) hide show
  1. package/CHANGELOG.md +91 -0
  2. package/SERVICE_CHANGELOG.md +124 -135
  3. package/package.json +1 -1
  4. package/products.md +8 -8
  5. package/src/common/sdk_version.ts +1 -1
  6. package/src/services/cii/v20210408/cii_models.ts +5 -0
  7. package/src/services/monitor/v20180724/monitor_client.ts +71 -22
  8. package/src/services/monitor/v20180724/monitor_models.ts +535 -316
  9. package/src/services/ocr/v20181119/ocr_models.ts +11 -10
  10. package/src/services/postgres/v20170312/postgres_models.ts +2 -2
  11. package/src/services/teo/v20220106/teo_client.ts +4 -3
  12. package/src/services/teo/v20220106/teo_models.ts +132 -105
  13. package/src/services/tke/v20180525/tke_client.ts +13 -1
  14. package/src/services/tke/v20180525/tke_models.ts +61 -6
  15. package/src/services/vpc/v20170312/vpc_models.ts +2 -2
  16. package/tencentcloud/common/sdk_version.d.ts +1 -1
  17. package/tencentcloud/common/sdk_version.js +1 -1
  18. package/tencentcloud/services/cii/v20210408/cii_models.d.ts +4 -0
  19. package/tencentcloud/services/monitor/v20180724/monitor_client.d.ts +22 -6
  20. package/tencentcloud/services/monitor/v20180724/monitor_client.js +31 -7
  21. package/tencentcloud/services/monitor/v20180724/monitor_models.d.ts +467 -280
  22. package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +11 -10
  23. package/tencentcloud/services/postgres/v20170312/postgres_models.d.ts +2 -2
  24. package/tencentcloud/services/teo/v20220106/teo_client.d.ts +1 -1
  25. package/tencentcloud/services/teo/v20220106/teo_models.d.ts +111 -88
  26. package/tencentcloud/services/tke/v20180525/tke_client.d.ts +5 -1
  27. package/tencentcloud/services/tke/v20180525/tke_client.js +6 -0
  28. package/tencentcloud/services/tke/v20180525/tke_models.d.ts +52 -6
  29. package/tencentcloud/services/vpc/v20170312/vpc_models.d.ts +2 -2
  30. package/test/monitor.v20180724.test.js +44 -4
  31. package/test/tke.v20180525.test.js +10 -0
@@ -276,6 +276,27 @@ export interface DescribeServiceDiscoveryResponse {
276
276
  RequestId?: string
277
277
  }
278
278
 
279
+ /**
280
+ * DescribeRecordingRules返回参数结构体
281
+ */
282
+ export interface DescribeRecordingRulesResponse {
283
+ /**
284
+ * 规则组数量
285
+ */
286
+ TotalCount: number
287
+
288
+ /**
289
+ * 规则组详情
290
+ 注意:此字段可能返回 null,表示取不到有效值。
291
+ */
292
+ RecordingRuleSet: Array<RecordingRuleSet>
293
+
294
+ /**
295
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
296
+ */
297
+ RequestId?: string
298
+ }
299
+
279
300
  /**
280
301
  * Prometheus 托管服务标签
281
302
  */
@@ -1009,202 +1030,60 @@ export interface EventCondition {
1009
1030
  }
1010
1031
 
1011
1032
  /**
1012
- * Prometheus 服务响应体
1033
+ * 对业务指标的单位及支持统计周期的描述
1013
1034
  */
1014
- export interface PrometheusInstancesItem {
1035
+ export interface MetricSet {
1015
1036
  /**
1016
- * 实例ID。
1037
+ * 命名空间,每个云产品会有一个命名空间
1017
1038
  */
1018
- InstanceId: string
1039
+ Namespace: string
1019
1040
 
1020
1041
  /**
1021
- * 实例名称。
1042
+ * 指标名称
1022
1043
  */
1023
- InstanceName: string
1024
-
1025
- /**
1026
- * 实例计费模式。取值范围:
1027
- <ul>
1028
- <li>2:包年包月</li>
1029
- <li>3:按量</li>
1030
- </ul>
1031
- */
1032
- InstanceChargeType: number
1044
+ MetricName: string
1033
1045
 
1034
1046
  /**
1035
- * 地域 ID
1047
+ * 指标使用的单位
1036
1048
  */
1037
- RegionId: number
1049
+ Unit: string
1038
1050
 
1039
1051
  /**
1040
- * 可用区
1052
+ * 指标使用的单位
1041
1053
  */
1042
- Zone: string
1054
+ UnitCname: string
1043
1055
 
1044
1056
  /**
1045
- * VPC ID
1057
+ * 指标支持的统计周期,单位是秒,如60、300
1046
1058
  */
1047
- VpcId: string
1059
+ Period: Array<number>
1048
1060
 
1049
1061
  /**
1050
- * 子网 ID
1062
+ * 统计周期内指标方式
1051
1063
  */
1052
- SubnetId: string
1053
-
1054
- /**
1055
- * 存储周期
1056
- 注意:此字段可能返回 null,表示取不到有效值。
1057
- */
1058
- DataRetentionTime: number
1059
-
1060
- /**
1061
- * 实例业务状态。取值范围:
1062
- <ul>
1063
- <li>1:正在创建</li>
1064
- <li>2:运行中</li>
1065
- <li>3:异常</li>
1066
- <li>4:重建中</li>
1067
- <li>5:销毁中</li>
1068
- <li>6:已停服</li>
1069
- <li>8:欠费停服中</li>
1070
- <li>9:欠费已停服</li>
1071
- </ul>
1072
- */
1073
- InstanceStatus: number
1074
-
1075
- /**
1076
- * Grafana 面板 URL
1077
- 注意:此字段可能返回 null,表示取不到有效值。
1078
- */
1079
- GrafanaURL: string
1064
+ Periods: Array<PeriodsSt>
1080
1065
 
1081
1066
  /**
1082
- * 创建时间
1067
+ * 统计指标含义解释
1083
1068
  */
1084
- CreatedAt: string
1085
-
1086
- /**
1087
- * 是否开启 Grafana
1088
- <li>0:不开启</li>
1089
- <li>1:开启</li>
1090
- */
1091
- EnableGrafana: number
1092
-
1093
- /**
1094
- * 实例IPV4地址
1095
- 注意:此字段可能返回 null,表示取不到有效值。
1096
- */
1097
- IPv4Address: string
1098
-
1099
- /**
1100
- * 实例关联的标签列表。
1101
- 注意:此字段可能返回 null,表示取不到有效值。
1102
- */
1103
- TagSpecification: Array<PrometheusTag>
1104
-
1105
- /**
1106
- * 购买的实例过期时间
1107
- 注意:此字段可能返回 null,表示取不到有效值。
1108
- */
1109
- ExpireTime: string
1110
-
1111
- /**
1112
- * 计费状态
1113
- <ul>
1114
- <li>1:正常</li>
1115
- <li>2:过期</li>
1116
- <li>3:销毁</li>
1117
- <li>4:分配中</li>
1118
- <li>5:分配失败</li>
1119
- </ul>
1120
- 注意:此字段可能返回 null,表示取不到有效值。
1121
- */
1122
- ChargeStatus: number
1123
-
1124
- /**
1125
- * 规格名称
1126
- 注意:此字段可能返回 null,表示取不到有效值。
1127
- */
1128
- SpecName: string
1129
-
1130
- /**
1131
- * 自动续费标记
1132
- <ul>
1133
- <li>0:不自动续费</li>
1134
- <li>1:开启自动续费</li>
1135
- <li>2:禁止自动续费</li>
1136
- <li>-1:无效</ii>
1137
- </ul>
1138
- 注意:此字段可能返回 null,表示取不到有效值。
1139
- */
1140
- AutoRenewFlag: number
1141
-
1142
- /**
1143
- * 是否快过期
1144
- <ul>
1145
- <li>0:否</li>
1146
- <li>1:快过期</li>
1147
- </ul>
1148
- 注意:此字段可能返回 null,表示取不到有效值。
1149
- */
1150
- IsNearExpire: number
1151
-
1152
- /**
1153
- * 数据写入需要的 Token
1154
- 注意:此字段可能返回 null,表示取不到有效值。
1155
- */
1156
- AuthToken: string
1157
-
1158
- /**
1159
- * Prometheus Remote Write 的地址
1160
- 注意:此字段可能返回 null,表示取不到有效值。
1161
- */
1162
- RemoteWrite: string
1163
-
1164
- /**
1165
- * Prometheus HTTP Api 根地址
1166
- 注意:此字段可能返回 null,表示取不到有效值。
1167
- */
1168
- ApiRootPath: string
1169
-
1170
- /**
1171
- * Proxy 的地址
1172
- 注意:此字段可能返回 null,表示取不到有效值。
1173
- */
1174
- ProxyAddress: string
1175
-
1176
- /**
1177
- * Grafana 运行状态
1178
- <ul>
1179
- <li>1:正在创建</li>
1180
- <li>2:运行中</li>
1181
- <li>3:异常</li>
1182
- <li>4:重启中</li>
1183
- <li>5:销毁中</li>
1184
- <li>6:已停机</li>
1185
- <li>7:已删除</li>
1186
- </ul>
1187
- 注意:此字段可能返回 null,表示取不到有效值。
1188
- */
1189
- GrafanaStatus: number
1069
+ Meaning: MetricObjectMeaning
1190
1070
 
1191
1071
  /**
1192
- * Grafana IP 白名单列表,使用英文分号分隔
1193
- 注意:此字段可能返回 null,表示取不到有效值。
1194
- */
1195
- GrafanaIpWhiteList: string
1072
+ * 维度描述信息
1073
+ */
1074
+ Dimensions: Array<DimensionsDesc>
1196
1075
 
1197
1076
  /**
1198
- * 实例的授权信息
1077
+ * 指标中文名
1199
1078
  注意:此字段可能返回 null,表示取不到有效值。
1200
1079
  */
1201
- Grant: PrometheusInstanceGrantInfo
1080
+ MetricCName: string
1202
1081
 
1203
1082
  /**
1204
- * 绑定的 Grafana 实例 ID
1083
+ * 指标英文名
1205
1084
  注意:此字段可能返回 null,表示取不到有效值。
1206
1085
  */
1207
- GrafanaInstanceId: string
1086
+ MetricEName: string
1208
1087
  }
1209
1088
 
1210
1089
  /**
@@ -1590,6 +1469,35 @@ export interface SendCustomAlarmMsgRequest {
1590
1469
  Msg: string
1591
1470
  }
1592
1471
 
1472
+ /**
1473
+ * CreateRecordingRule请求参数结构体
1474
+ */
1475
+ export interface CreateRecordingRuleRequest {
1476
+ /**
1477
+ * 聚合规则名称
1478
+ */
1479
+ Name: string
1480
+
1481
+ /**
1482
+ * 聚合规则组内容,格式为 yaml
1483
+ */
1484
+ Group: string
1485
+
1486
+ /**
1487
+ * Prometheus 实例 ID
1488
+ */
1489
+ InstanceId: string
1490
+
1491
+ /**
1492
+ * 规则状态码,取值如下:
1493
+ <li>1=RuleDeleted</li>
1494
+ <li>2=RuleEnabled</li>
1495
+ <li>3=RuleDisabled</li>
1496
+ 默认状态码为 2 启用。
1497
+ */
1498
+ RuleState?: number
1499
+ }
1500
+
1593
1501
  /**
1594
1502
  * ModifyPrometheusInstanceAttributes请求参数结构体
1595
1503
  */
@@ -2826,18 +2734,13 @@ export interface InstanceGroups {
2826
2734
  }
2827
2735
 
2828
2736
  /**
2829
- * 实例对象的维度组合
2737
+ * DestroyPrometheusInstance请求参数结构体
2830
2738
  */
2831
- export interface Dimension {
2832
- /**
2833
- * 实例维度名称
2834
- */
2835
- Name: string
2836
-
2739
+ export interface DestroyPrometheusInstanceRequest {
2837
2740
  /**
2838
- * 实例维度值
2741
+ * 实例 ID,该实例必须先被 terminate
2839
2742
  */
2840
- Value: string
2743
+ InstanceId: string
2841
2744
  }
2842
2745
 
2843
2746
  /**
@@ -2875,6 +2778,21 @@ export interface PrometheusInstanceGrantInfo {
2875
2778
  HasApiOperation: number
2876
2779
  }
2877
2780
 
2781
+ /**
2782
+ * UnbindPrometheusManagedGrafana请求参数结构体
2783
+ */
2784
+ export interface UnbindPrometheusManagedGrafanaRequest {
2785
+ /**
2786
+ * Prometheus 实例 ID
2787
+ */
2788
+ InstanceId: string
2789
+
2790
+ /**
2791
+ * Grafana 实例 ID
2792
+ */
2793
+ GrafanaId: string
2794
+ }
2795
+
2878
2796
  /**
2879
2797
  * 模板列表
2880
2798
  */
@@ -3520,60 +3438,18 @@ export interface DescribeMonitorTypesResponse {
3520
3438
  }
3521
3439
 
3522
3440
  /**
3523
- * 对业务指标的单位及支持统计周期的描述
3441
+ * 实例对象的维度组合
3524
3442
  */
3525
- export interface MetricSet {
3526
- /**
3527
- * 命名空间,每个云产品会有一个命名空间
3528
- */
3529
- Namespace: string
3530
-
3531
- /**
3532
- * 指标名称
3533
- */
3534
- MetricName: string
3535
-
3536
- /**
3537
- * 指标使用的单位
3538
- */
3539
- Unit: string
3540
-
3541
- /**
3542
- * 指标使用的单位
3543
- */
3544
- UnitCname: string
3545
-
3546
- /**
3547
- * 指标支持的统计周期,单位是秒,如60、300
3548
- */
3549
- Period: Array<number>
3550
-
3551
- /**
3552
- * 统计周期内指标方式
3553
- */
3554
- Periods: Array<PeriodsSt>
3555
-
3443
+ export interface Dimension {
3556
3444
  /**
3557
- * 统计指标含义解释
3445
+ * 实例维度名称
3558
3446
  */
3559
- Meaning: MetricObjectMeaning
3447
+ Name: string
3560
3448
 
3561
3449
  /**
3562
- * 维度描述信息
3450
+ * 实例维度值
3563
3451
  */
3564
- Dimensions: Array<DimensionsDesc>
3565
-
3566
- /**
3567
- * 指标中文名
3568
- 注意:此字段可能返回 null,表示取不到有效值。
3569
- */
3570
- MetricCName: string
3571
-
3572
- /**
3573
- * 指标英文名
3574
- 注意:此字段可能返回 null,表示取不到有效值。
3575
- */
3576
- MetricEName: string
3452
+ Value: string
3577
3453
  }
3578
3454
 
3579
3455
  /**
@@ -3713,37 +3589,19 @@ export interface DescribeBasicAlarmListAlarms {
3713
3589
  }
3714
3590
 
3715
3591
  /**
3716
- * UpdateServiceDiscovery请求参数结构体
3592
+ * UpdateRecordingRule返回参数结构体
3717
3593
  */
3718
- export interface UpdateServiceDiscoveryRequest {
3719
- /**
3720
- * Prometheus 实例 ID
3721
- */
3722
- InstanceId: string
3723
-
3724
- /**
3725
- * <li>类型是 TKE,为对应的腾讯云容器服务集群 ID</li>
3726
- */
3727
- KubeClusterId: string
3728
-
3729
- /**
3730
- * 用户 Kubernetes 集群类型:
3731
- <li> 1 = 容器服务集群(TKE) </li>
3732
- */
3733
- KubeType: number
3734
-
3594
+ export interface UpdateRecordingRuleResponse {
3735
3595
  /**
3736
- * 服务发现类型,取值如下:
3737
- <li> 1 = ServiceMonitor</li>
3738
- <li> 2 = PodMonitor</li>
3739
- <li> 3 = JobMonitor</li>
3596
+ * 规则 ID
3597
+ 注意:此字段可能返回 null,表示取不到有效值。
3740
3598
  */
3741
- Type: number
3599
+ RuleId: string
3742
3600
 
3743
3601
  /**
3744
- * 服务发现配置信息
3602
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3745
3603
  */
3746
- Yaml: string
3604
+ RequestId?: string
3747
3605
  }
3748
3606
 
3749
3607
  /**
@@ -4706,18 +4564,18 @@ export interface PolicyGroup {
4706
4564
  }
4707
4565
 
4708
4566
  /**
4709
- * UnbindPrometheusManagedGrafana请求参数结构体
4567
+ * DeleteRecordingRules请求参数结构体
4710
4568
  */
4711
- export interface UnbindPrometheusManagedGrafanaRequest {
4569
+ export interface DeleteRecordingRulesRequest {
4712
4570
  /**
4713
- * Prometheus 实例 ID
4571
+ * 规则 ID 列表
4714
4572
  */
4715
- InstanceId: string
4573
+ RuleIds: Array<string>
4716
4574
 
4717
4575
  /**
4718
- * Grafana 实例 ID
4576
+ * Prometheus 实例 ID
4719
4577
  */
4720
- GrafanaId: string
4578
+ InstanceId: string
4721
4579
  }
4722
4580
 
4723
4581
  /**
@@ -5083,13 +4941,13 @@ export interface AlarmNotice {
5083
4941
  }
5084
4942
 
5085
4943
  /**
5086
- * DestroyPrometheusInstance请求参数结构体
4944
+ * DeleteRecordingRules返回参数结构体
5087
4945
  */
5088
- export interface DestroyPrometheusInstanceRequest {
4946
+ export interface DeleteRecordingRulesResponse {
5089
4947
  /**
5090
- * 实例 ID,该实例必须先被 terminate
4948
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5091
4949
  */
5092
- InstanceId: string
4950
+ RequestId?: string
5093
4951
  }
5094
4952
 
5095
4953
  /**
@@ -5249,6 +5107,36 @@ export interface DeletePrometheusScrapeJobsRequest {
5249
5107
  JobIds: Array<string>
5250
5108
  }
5251
5109
 
5110
+ /**
5111
+ * UnBindingPolicyObject请求参数结构体
5112
+ */
5113
+ export interface UnBindingPolicyObjectRequest {
5114
+ /**
5115
+ * 固定值,为"monitor"
5116
+ */
5117
+ Module: string
5118
+
5119
+ /**
5120
+ * 策略组id,如传入 PolicyId 则该字段被忽略可传入任意值如 0
5121
+ */
5122
+ GroupId: number
5123
+
5124
+ /**
5125
+ * 待删除对象实例的唯一id列表,UniqueId从调用[获取已绑定对象列表接口](https://cloud.tencent.com/document/api/248/40570)的出参的List中得到
5126
+ */
5127
+ UniqueId: Array<string>
5128
+
5129
+ /**
5130
+ * 实例分组id,如果按实例分组删除的话UniqueId参数是无效的
5131
+ */
5132
+ InstanceGroupId?: number
5133
+
5134
+ /**
5135
+ * 告警策略ID,使用此字段时 GroupId 会被忽略
5136
+ */
5137
+ PolicyId?: string
5138
+ }
5139
+
5252
5140
  /**
5253
5141
  * 云监控告警通知模板 - 回调通知详情
5254
5142
  */
@@ -5808,35 +5696,43 @@ export interface CreatePrometheusScrapeJobRequest {
5808
5696
  }
5809
5697
 
5810
5698
  /**
5811
- * UninstallGrafanaDashboard请求参数结构体
5699
+ * Prometheus 聚合规则响应结构体内信息
5812
5700
  */
5813
- export interface UninstallGrafanaDashboardRequest {
5701
+ export interface RecordingRuleSet {
5814
5702
  /**
5815
- * 实例 ID
5703
+ * 规则 ID
5816
5704
  */
5817
- InstanceId: string
5705
+ RuleId: string
5818
5706
 
5819
5707
  /**
5820
- * Prometheus 集成项 Code,删除对应的 Dashboard,Code 如下:
5821
- <li>spring_mvc</li>
5822
- <li>mysql</li>
5823
- <li>go</li>
5824
- <li>redis</li>
5825
- <li>jvm</li>
5826
- <li>pgsql</li>
5827
- <li>mongo</li>
5828
- <li>kafka</li>
5829
- <li>es</li>
5830
- <li>flink</li>
5831
- <li>blackbox</li>
5832
- <li>consule</li>
5833
- <li>memcached</li>
5834
- <li>zk</li>
5835
- <li>tps</li>
5836
- <li>istio</li>
5837
- <li>etcd</li>
5838
- */
5839
- IntegrationCodes?: Array<string>
5708
+ * 规则状态码
5709
+ */
5710
+ RuleState: number
5711
+
5712
+ /**
5713
+ * 规则名称
5714
+ */
5715
+ Name: string
5716
+
5717
+ /**
5718
+ * 规则内容组
5719
+ */
5720
+ Group: string
5721
+
5722
+ /**
5723
+ * 规则数量
5724
+ */
5725
+ Total: number
5726
+
5727
+ /**
5728
+ * 规则创建时间
5729
+ */
5730
+ CreatedAt: string
5731
+
5732
+ /**
5733
+ * 规则最近更新时间
5734
+ */
5735
+ UpdatedAt: string
5840
5736
  }
5841
5737
 
5842
5738
  /**
@@ -6294,33 +6190,19 @@ export interface DescribeAccidentEventListRequest {
6294
6190
  }
6295
6191
 
6296
6192
  /**
6297
- * UnBindingPolicyObject请求参数结构体
6193
+ * CreateRecordingRule返回参数结构体
6298
6194
  */
6299
- export interface UnBindingPolicyObjectRequest {
6300
- /**
6301
- * 固定值,为"monitor"
6302
- */
6303
- Module: string
6304
-
6305
- /**
6306
- * 策略组id,如传入 PolicyId 则该字段被忽略可传入任意值如 0
6307
- */
6308
- GroupId: number
6309
-
6310
- /**
6311
- * 待删除对象实例的唯一id列表,UniqueId从调用[获取已绑定对象列表接口](https://cloud.tencent.com/document/api/248/40570)的出参的List中得到
6312
- */
6313
- UniqueId: Array<string>
6314
-
6195
+ export interface CreateRecordingRuleResponse {
6315
6196
  /**
6316
- * 实例分组id,如果按实例分组删除的话UniqueId参数是无效的
6317
- */
6318
- InstanceGroupId?: number
6197
+ * 规则 ID
6198
+ 注意:此字段可能返回 null,表示取不到有效值。
6199
+ */
6200
+ RuleId: string
6319
6201
 
6320
6202
  /**
6321
- * 告警策略ID,使用此字段时 GroupId 会被忽略
6203
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
6322
6204
  */
6323
- PolicyId?: string
6205
+ RequestId?: string
6324
6206
  }
6325
6207
 
6326
6208
  /**
@@ -6399,6 +6281,40 @@ export interface DescribeBindingPolicyObjectListInstanceGroup {
6399
6281
  Regions: Array<string>
6400
6282
  }
6401
6283
 
6284
+ /**
6285
+ * UpdateServiceDiscovery请求参数结构体
6286
+ */
6287
+ export interface UpdateServiceDiscoveryRequest {
6288
+ /**
6289
+ * Prometheus 实例 ID
6290
+ */
6291
+ InstanceId: string
6292
+
6293
+ /**
6294
+ * <li>类型是 TKE,为对应的腾讯云容器服务集群 ID</li>
6295
+ */
6296
+ KubeClusterId: string
6297
+
6298
+ /**
6299
+ * 用户 Kubernetes 集群类型:
6300
+ <li> 1 = 容器服务集群(TKE) </li>
6301
+ */
6302
+ KubeType: number
6303
+
6304
+ /**
6305
+ * 服务发现类型,取值如下:
6306
+ <li> 1 = ServiceMonitor</li>
6307
+ <li> 2 = PodMonitor</li>
6308
+ <li> 3 = JobMonitor</li>
6309
+ */
6310
+ Type: number
6311
+
6312
+ /**
6313
+ * 服务发现配置信息
6314
+ */
6315
+ Yaml: string
6316
+ }
6317
+
6402
6318
  /**
6403
6319
  * DeleteAlertRules请求参数结构体
6404
6320
  */
@@ -6430,26 +6346,58 @@ export interface DescribeAlarmNoticeRequest {
6430
6346
  }
6431
6347
 
6432
6348
  /**
6433
- * CreatePrometheusAgent请求参数结构体
6349
+ * UninstallGrafanaDashboard请求参数结构体
6434
6350
  */
6435
- export interface CreatePrometheusAgentRequest {
6351
+ export interface UninstallGrafanaDashboardRequest {
6436
6352
  /**
6437
6353
  * 实例 ID
6438
6354
  */
6439
6355
  InstanceId: string
6440
6356
 
6441
6357
  /**
6442
- * Agent 名称
6443
- */
6444
- Name: string
6445
- }
6446
-
6447
- /**
6448
- * DescribeBindingPolicyObjectList接口的Dimension
6449
- */
6450
- export interface DescribeBindingPolicyObjectListDimension {
6451
- /**
6452
- * 地域id
6358
+ * Prometheus 集成项 Code,删除对应的 Dashboard,Code 如下:
6359
+ <li>spring_mvc</li>
6360
+ <li>mysql</li>
6361
+ <li>go</li>
6362
+ <li>redis</li>
6363
+ <li>jvm</li>
6364
+ <li>pgsql</li>
6365
+ <li>mongo</li>
6366
+ <li>kafka</li>
6367
+ <li>es</li>
6368
+ <li>flink</li>
6369
+ <li>blackbox</li>
6370
+ <li>consule</li>
6371
+ <li>memcached</li>
6372
+ <li>zk</li>
6373
+ <li>tps</li>
6374
+ <li>istio</li>
6375
+ <li>etcd</li>
6376
+ */
6377
+ IntegrationCodes?: Array<string>
6378
+ }
6379
+
6380
+ /**
6381
+ * CreatePrometheusAgent请求参数结构体
6382
+ */
6383
+ export interface CreatePrometheusAgentRequest {
6384
+ /**
6385
+ * 实例 ID
6386
+ */
6387
+ InstanceId: string
6388
+
6389
+ /**
6390
+ * Agent 名称
6391
+ */
6392
+ Name: string
6393
+ }
6394
+
6395
+ /**
6396
+ * DescribeBindingPolicyObjectList接口的Dimension
6397
+ */
6398
+ export interface DescribeBindingPolicyObjectListDimension {
6399
+ /**
6400
+ * 地域id
6453
6401
  */
6454
6402
  RegionId: number
6455
6403
 
@@ -6688,6 +6636,44 @@ export interface ReceiverInfo {
6688
6636
  ReceiveLanguage?: string
6689
6637
  }
6690
6638
 
6639
+ /**
6640
+ * DescribeRecordingRules请求参数结构体
6641
+ */
6642
+ export interface DescribeRecordingRulesRequest {
6643
+ /**
6644
+ * Prometheus 实例 ID
6645
+ */
6646
+ InstanceId: string
6647
+
6648
+ /**
6649
+ * 返回数量,默认为 20,最大值为 100
6650
+ */
6651
+ Limit?: number
6652
+
6653
+ /**
6654
+ * 偏移量,默认为 0
6655
+ */
6656
+ Offset?: number
6657
+
6658
+ /**
6659
+ * 规则 ID
6660
+ */
6661
+ RuleId?: string
6662
+
6663
+ /**
6664
+ * 规则状态码,取值如下:
6665
+ <li>1=RuleDeleted</li>
6666
+ <li>2=RuleEnabled</li>
6667
+ <li>3=RuleDisabled</li>
6668
+ */
6669
+ RuleState?: number
6670
+
6671
+ /**
6672
+ * 规则名称
6673
+ */
6674
+ Name?: string
6675
+ }
6676
+
6691
6677
  /**
6692
6678
  * UnBindingAllPolicyObject请求参数结构体
6693
6679
  */
@@ -6803,6 +6789,40 @@ export interface GetPrometheusAgentManagementCommandResponse {
6803
6789
  RequestId?: string
6804
6790
  }
6805
6791
 
6792
+ /**
6793
+ * UpdateRecordingRule请求参数结构体
6794
+ */
6795
+ export interface UpdateRecordingRuleRequest {
6796
+ /**
6797
+ * 聚合规则名称
6798
+ */
6799
+ Name: string
6800
+
6801
+ /**
6802
+ * 聚合规则组内容,格式为 yaml,通过 base64 进行编码。
6803
+ */
6804
+ Group: string
6805
+
6806
+ /**
6807
+ * Prometheus 实例 ID
6808
+ */
6809
+ InstanceId: string
6810
+
6811
+ /**
6812
+ * Prometheus 聚合规则 ID
6813
+ */
6814
+ RuleId: string
6815
+
6816
+ /**
6817
+ * 规则状态码,取值如下:
6818
+ <li>1=RuleDeleted</li>
6819
+ <li>2=RuleEnabled</li>
6820
+ <li>3=RuleDisabled</li>
6821
+ 默认状态码为 2 启用。
6822
+ */
6823
+ RuleState?: number
6824
+ }
6825
+
6806
6826
  /**
6807
6827
  * 告警策略指标触发条件
6808
6828
  */
@@ -6913,6 +6933,205 @@ export interface DescribePolicyConditionListCondition {
6913
6933
  SupportRegions: Array<string>
6914
6934
  }
6915
6935
 
6936
+ /**
6937
+ * Prometheus 服务响应体
6938
+ */
6939
+ export interface PrometheusInstancesItem {
6940
+ /**
6941
+ * 实例ID。
6942
+ */
6943
+ InstanceId: string
6944
+
6945
+ /**
6946
+ * 实例名称。
6947
+ */
6948
+ InstanceName: string
6949
+
6950
+ /**
6951
+ * 实例计费模式。取值范围:
6952
+ <ul>
6953
+ <li>2:包年包月</li>
6954
+ <li>3:按量</li>
6955
+ </ul>
6956
+ */
6957
+ InstanceChargeType: number
6958
+
6959
+ /**
6960
+ * 地域 ID
6961
+ */
6962
+ RegionId: number
6963
+
6964
+ /**
6965
+ * 可用区
6966
+ */
6967
+ Zone: string
6968
+
6969
+ /**
6970
+ * VPC ID
6971
+ */
6972
+ VpcId: string
6973
+
6974
+ /**
6975
+ * 子网 ID
6976
+ */
6977
+ SubnetId: string
6978
+
6979
+ /**
6980
+ * 存储周期
6981
+ 注意:此字段可能返回 null,表示取不到有效值。
6982
+ */
6983
+ DataRetentionTime: number
6984
+
6985
+ /**
6986
+ * 实例业务状态。取值范围:
6987
+ <ul>
6988
+ <li>1:正在创建</li>
6989
+ <li>2:运行中</li>
6990
+ <li>3:异常</li>
6991
+ <li>4:重建中</li>
6992
+ <li>5:销毁中</li>
6993
+ <li>6:已停服</li>
6994
+ <li>8:欠费停服中</li>
6995
+ <li>9:欠费已停服</li>
6996
+ </ul>
6997
+ */
6998
+ InstanceStatus: number
6999
+
7000
+ /**
7001
+ * Grafana 面板 URL
7002
+ 注意:此字段可能返回 null,表示取不到有效值。
7003
+ */
7004
+ GrafanaURL: string
7005
+
7006
+ /**
7007
+ * 创建时间
7008
+ */
7009
+ CreatedAt: string
7010
+
7011
+ /**
7012
+ * 是否开启 Grafana
7013
+ <li>0:不开启</li>
7014
+ <li>1:开启</li>
7015
+ */
7016
+ EnableGrafana: number
7017
+
7018
+ /**
7019
+ * 实例IPV4地址
7020
+ 注意:此字段可能返回 null,表示取不到有效值。
7021
+ */
7022
+ IPv4Address: string
7023
+
7024
+ /**
7025
+ * 实例关联的标签列表。
7026
+ 注意:此字段可能返回 null,表示取不到有效值。
7027
+ */
7028
+ TagSpecification: Array<PrometheusTag>
7029
+
7030
+ /**
7031
+ * 购买的实例过期时间
7032
+ 注意:此字段可能返回 null,表示取不到有效值。
7033
+ */
7034
+ ExpireTime: string
7035
+
7036
+ /**
7037
+ * 计费状态
7038
+ <ul>
7039
+ <li>1:正常</li>
7040
+ <li>2:过期</li>
7041
+ <li>3:销毁</li>
7042
+ <li>4:分配中</li>
7043
+ <li>5:分配失败</li>
7044
+ </ul>
7045
+ 注意:此字段可能返回 null,表示取不到有效值。
7046
+ */
7047
+ ChargeStatus: number
7048
+
7049
+ /**
7050
+ * 规格名称
7051
+ 注意:此字段可能返回 null,表示取不到有效值。
7052
+ */
7053
+ SpecName: string
7054
+
7055
+ /**
7056
+ * 自动续费标记
7057
+ <ul>
7058
+ <li>0:不自动续费</li>
7059
+ <li>1:开启自动续费</li>
7060
+ <li>2:禁止自动续费</li>
7061
+ <li>-1:无效</ii>
7062
+ </ul>
7063
+ 注意:此字段可能返回 null,表示取不到有效值。
7064
+ */
7065
+ AutoRenewFlag: number
7066
+
7067
+ /**
7068
+ * 是否快过期
7069
+ <ul>
7070
+ <li>0:否</li>
7071
+ <li>1:快过期</li>
7072
+ </ul>
7073
+ 注意:此字段可能返回 null,表示取不到有效值。
7074
+ */
7075
+ IsNearExpire: number
7076
+
7077
+ /**
7078
+ * 数据写入需要的 Token
7079
+ 注意:此字段可能返回 null,表示取不到有效值。
7080
+ */
7081
+ AuthToken: string
7082
+
7083
+ /**
7084
+ * Prometheus Remote Write 的地址
7085
+ 注意:此字段可能返回 null,表示取不到有效值。
7086
+ */
7087
+ RemoteWrite: string
7088
+
7089
+ /**
7090
+ * Prometheus HTTP Api 根地址
7091
+ 注意:此字段可能返回 null,表示取不到有效值。
7092
+ */
7093
+ ApiRootPath: string
7094
+
7095
+ /**
7096
+ * Proxy 的地址
7097
+ 注意:此字段可能返回 null,表示取不到有效值。
7098
+ */
7099
+ ProxyAddress: string
7100
+
7101
+ /**
7102
+ * Grafana 运行状态
7103
+ <ul>
7104
+ <li>1:正在创建</li>
7105
+ <li>2:运行中</li>
7106
+ <li>3:异常</li>
7107
+ <li>4:重启中</li>
7108
+ <li>5:销毁中</li>
7109
+ <li>6:已停机</li>
7110
+ <li>7:已删除</li>
7111
+ </ul>
7112
+ 注意:此字段可能返回 null,表示取不到有效值。
7113
+ */
7114
+ GrafanaStatus: number
7115
+
7116
+ /**
7117
+ * Grafana IP 白名单列表,使用英文分号分隔
7118
+ 注意:此字段可能返回 null,表示取不到有效值。
7119
+ */
7120
+ GrafanaIpWhiteList: string
7121
+
7122
+ /**
7123
+ * 实例的授权信息
7124
+ 注意:此字段可能返回 null,表示取不到有效值。
7125
+ */
7126
+ Grant: PrometheusInstanceGrantInfo
7127
+
7128
+ /**
7129
+ * 绑定的 Grafana 实例 ID
7130
+ 注意:此字段可能返回 null,表示取不到有效值。
7131
+ */
7132
+ GrafanaInstanceId: string
7133
+ }
7134
+
6916
7135
  /**
6917
7136
  * DeleteServiceDiscovery请求参数结构体
6918
7137
  */