tencentcloud-sdk-monitor 3.0.1022 → 3.0.1023

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dd40ea92f623cad6c4a7c3a7ad23744d42c56bd8
4
- data.tar.gz: 0b2571f9c8bfc6d364568682607f8ff612863e4b
3
+ metadata.gz: 201a7a7298b9339af209a6f5900a28b65f52ce9d
4
+ data.tar.gz: 1657cb75e6a030847551442fba476facc19eacb9
5
5
  SHA512:
6
- metadata.gz: 459ec7c6face2c3bb175239d79f1ed4f3cb9ba733a08e20934c519e3f5a3e50b9249cf2bbdffd15684644656460c0e413bf5be2af32eb7ca749b246723eb9f2c
7
- data.tar.gz: 93ad35b0821b1cf9f68940764aa966a3495b2badf256e3459e250a5b1d65a68fbef863dfa74697689cfcd0ac78febe46e249db0d9ad5a48f8fd59aabff95642e
6
+ metadata.gz: 70fd42876598973f4e16a8dae328f8d2f7765fff08dd3a68c6bfa82641c6fb2bc6148ed24b5cf94d936539db7be5b6e3c48c2bf0d7b9d3e7ccecf75d9781e7f0
7
+ data.tar.gz: 884cc2a1c156d2f8bf5507c57b9ad467fef4b60c2ef63dd6f3e5ff3ebc9aee3578720f879239863f129df3a21ac5b76337a708d2d64141998a10a4ac04135a71
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1022
1
+ 3.0.1023
@@ -2300,6 +2300,30 @@ module TencentCloud
2300
2300
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2301
2301
  end
2302
2302
 
2303
+ # 获取prometheus集成指标
2304
+
2305
+ # @param request: Request instance for DescribePrometheusIntegrationMetrics.
2306
+ # @type request: :class:`Tencentcloud::monitor::V20180724::DescribePrometheusIntegrationMetricsRequest`
2307
+ # @rtype: :class:`Tencentcloud::monitor::V20180724::DescribePrometheusIntegrationMetricsResponse`
2308
+ def DescribePrometheusIntegrationMetrics(request)
2309
+ body = send_request('DescribePrometheusIntegrationMetrics', request.serialize)
2310
+ response = JSON.parse(body)
2311
+ if response['Response'].key?('Error') == false
2312
+ model = DescribePrometheusIntegrationMetricsResponse.new
2313
+ model.deserialize(response['Response'])
2314
+ model
2315
+ else
2316
+ code = response['Response']['Error']['Code']
2317
+ message = response['Response']['Error']['Message']
2318
+ reqid = response['Response']['RequestId']
2319
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2320
+ end
2321
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2322
+ raise e
2323
+ rescue StandardError => e
2324
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2325
+ end
2326
+
2303
2327
  # 获取聚合规则列表,包含关联集群内crd资源创建的record rule
2304
2328
 
2305
2329
  # @param request: Request instance for DescribePrometheusRecordRules.
@@ -8473,6 +8473,49 @@ module TencentCloud
8473
8473
  end
8474
8474
  end
8475
8475
 
8476
+ # DescribePrometheusIntegrationMetrics请求参数结构体
8477
+ class DescribePrometheusIntegrationMetricsRequest < TencentCloud::Common::AbstractModel
8478
+ # @param IntegrationCode: 集成类型标识。取值参考DescribePrometheusIntegrations接口返回中IntegrationSet[i].Code参数
8479
+ # @type IntegrationCode: String
8480
+
8481
+ attr_accessor :IntegrationCode
8482
+
8483
+ def initialize(integrationcode=nil)
8484
+ @IntegrationCode = integrationcode
8485
+ end
8486
+
8487
+ def deserialize(params)
8488
+ @IntegrationCode = params['IntegrationCode']
8489
+ end
8490
+ end
8491
+
8492
+ # DescribePrometheusIntegrationMetrics返回参数结构体
8493
+ class DescribePrometheusIntegrationMetricsResponse < TencentCloud::Common::AbstractModel
8494
+ # @param IntegrationMetricSet: 集成指标详情分组
8495
+ # @type IntegrationMetricSet: Array
8496
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
8497
+ # @type RequestId: String
8498
+
8499
+ attr_accessor :IntegrationMetricSet, :RequestId
8500
+
8501
+ def initialize(integrationmetricset=nil, requestid=nil)
8502
+ @IntegrationMetricSet = integrationmetricset
8503
+ @RequestId = requestid
8504
+ end
8505
+
8506
+ def deserialize(params)
8507
+ unless params['IntegrationMetricSet'].nil?
8508
+ @IntegrationMetricSet = []
8509
+ params['IntegrationMetricSet'].each do |i|
8510
+ integrationmetricgroup_tmp = IntegrationMetricGroup.new
8511
+ integrationmetricgroup_tmp.deserialize(i)
8512
+ @IntegrationMetricSet << integrationmetricgroup_tmp
8513
+ end
8514
+ end
8515
+ @RequestId = params['RequestId']
8516
+ end
8517
+ end
8518
+
8476
8519
  # DescribePrometheusRecordRules请求参数结构体
8477
8520
  class DescribePrometheusRecordRulesRequest < TencentCloud::Common::AbstractModel
8478
8521
  # @param InstanceId: Prometheus 实例 ID
@@ -10196,6 +10239,69 @@ module TencentCloud
10196
10239
  end
10197
10240
  end
10198
10241
 
10242
+ # prometheus集成指标详情
10243
+ class IntegrationMetric < TencentCloud::Common::AbstractModel
10244
+ # @param MetricName: 指标名
10245
+ # @type MetricName: String
10246
+ # @param Name: 指标名称
10247
+ # @type Name: String
10248
+ # @param MetricType: 统计类型
10249
+ # @type MetricType: String
10250
+ # @param Unit: 单位
10251
+ # @type Unit: String
10252
+ # @param Description: 指标详细描述
10253
+ # @type Description: String
10254
+
10255
+ attr_accessor :MetricName, :Name, :MetricType, :Unit, :Description
10256
+
10257
+ def initialize(metricname=nil, name=nil, metrictype=nil, unit=nil, description=nil)
10258
+ @MetricName = metricname
10259
+ @Name = name
10260
+ @MetricType = metrictype
10261
+ @Unit = unit
10262
+ @Description = description
10263
+ end
10264
+
10265
+ def deserialize(params)
10266
+ @MetricName = params['MetricName']
10267
+ @Name = params['Name']
10268
+ @MetricType = params['MetricType']
10269
+ @Unit = params['Unit']
10270
+ @Description = params['Description']
10271
+ end
10272
+ end
10273
+
10274
+ # prometheus集成分组指标
10275
+ class IntegrationMetricGroup < TencentCloud::Common::AbstractModel
10276
+ # @param Group: 分组标识
10277
+ # @type Group: String
10278
+ # @param Metrics: 指标详情
10279
+ # @type Metrics: Array
10280
+ # @param GroupName: 分组名称
10281
+ # @type GroupName: String
10282
+
10283
+ attr_accessor :Group, :Metrics, :GroupName
10284
+
10285
+ def initialize(group=nil, metrics=nil, groupname=nil)
10286
+ @Group = group
10287
+ @Metrics = metrics
10288
+ @GroupName = groupname
10289
+ end
10290
+
10291
+ def deserialize(params)
10292
+ @Group = params['Group']
10293
+ unless params['Metrics'].nil?
10294
+ @Metrics = []
10295
+ params['Metrics'].each do |i|
10296
+ integrationmetric_tmp = IntegrationMetric.new
10297
+ integrationmetric_tmp.deserialize(i)
10298
+ @Metrics << integrationmetric_tmp
10299
+ end
10300
+ end
10301
+ @GroupName = params['GroupName']
10302
+ end
10303
+ end
10304
+
10199
10305
  # k8s中标签,一般以数组的方式存在
10200
10306
  class Label < TencentCloud::Common::AbstractModel
10201
10307
  # @param Name: map表中的Name
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-monitor
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1022
4
+ version: 3.0.1023
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-03-18 00:00:00.000000000 Z
11
+ date: 2025-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common