tencentcloud-sdk-monitor 3.0.1134 → 3.0.1153
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 +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20180724/client.rb +24 -0
- data/lib/v20180724/models.rb +214 -12
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c5461ea8054971c34d63c15db31c5c5e7754b289
|
4
|
+
data.tar.gz: 7356443d9490902a5424ad8e9cf6e260d901110e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 21888bdeabced102c8917dad1b464928772355cfc04dbe01ff104683cfd0a684bb7a974bc7b7e8dcee15674261a40c845ae664abb519da3cd44e18d0b6229381
|
7
|
+
data.tar.gz: 662ff82cc0cb92929e8c66446c9ee6f24c0d709c8a495c917e727057370b293c7f8d3058efa87fe34a7417978bdf5cc0b2568c0a3a4e8d790bceb7cd0b957cff
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1153
|
data/lib/v20180724/client.rb
CHANGED
@@ -2540,6 +2540,30 @@ module TencentCloud
|
|
2540
2540
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2541
2541
|
end
|
2542
2542
|
|
2543
|
+
# 获取实例采集速率信息
|
2544
|
+
|
2545
|
+
# @param request: Request instance for DescribePrometheusScrapeStatistics.
|
2546
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::DescribePrometheusScrapeStatisticsRequest`
|
2547
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::DescribePrometheusScrapeStatisticsResponse`
|
2548
|
+
def DescribePrometheusScrapeStatistics(request)
|
2549
|
+
body = send_request('DescribePrometheusScrapeStatistics', request.serialize)
|
2550
|
+
response = JSON.parse(body)
|
2551
|
+
if response['Response'].key?('Error') == false
|
2552
|
+
model = DescribePrometheusScrapeStatisticsResponse.new
|
2553
|
+
model.deserialize(response['Response'])
|
2554
|
+
model
|
2555
|
+
else
|
2556
|
+
code = response['Response']['Error']['Code']
|
2557
|
+
message = response['Response']['Error']['Message']
|
2558
|
+
reqid = response['Response']['RequestId']
|
2559
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2560
|
+
end
|
2561
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2562
|
+
raise e
|
2563
|
+
rescue StandardError => e
|
2564
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2565
|
+
end
|
2566
|
+
|
2543
2567
|
# 获取targets信息,在过滤条件中指定job名称时返回targets详情,否则仅返回数量
|
2544
2568
|
|
2545
2569
|
# @param request: Request instance for DescribePrometheusTargetsTMP.
|
data/lib/v20180724/models.rb
CHANGED
@@ -9042,6 +9042,55 @@ module TencentCloud
|
|
9042
9042
|
end
|
9043
9043
|
end
|
9044
9044
|
|
9045
|
+
# DescribePrometheusScrapeStatistics请求参数结构体
|
9046
|
+
class DescribePrometheusScrapeStatisticsRequest < TencentCloud::Common::AbstractModel
|
9047
|
+
# @param JobType: job 类型
|
9048
|
+
# @type JobType: String
|
9049
|
+
|
9050
|
+
attr_accessor :JobType
|
9051
|
+
|
9052
|
+
def initialize(jobtype=nil)
|
9053
|
+
@JobType = jobtype
|
9054
|
+
end
|
9055
|
+
|
9056
|
+
def deserialize(params)
|
9057
|
+
@JobType = params['JobType']
|
9058
|
+
end
|
9059
|
+
end
|
9060
|
+
|
9061
|
+
# DescribePrometheusScrapeStatistics返回参数结构体
|
9062
|
+
class DescribePrometheusScrapeStatisticsResponse < TencentCloud::Common::AbstractModel
|
9063
|
+
# @param Total: 总个数
|
9064
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
9065
|
+
# @type Total: Integer
|
9066
|
+
# @param InstanceResults: 实例指标抓取速率详情
|
9067
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
9068
|
+
# @type InstanceResults: Array
|
9069
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
9070
|
+
# @type RequestId: String
|
9071
|
+
|
9072
|
+
attr_accessor :Total, :InstanceResults, :RequestId
|
9073
|
+
|
9074
|
+
def initialize(total=nil, instanceresults=nil, requestid=nil)
|
9075
|
+
@Total = total
|
9076
|
+
@InstanceResults = instanceresults
|
9077
|
+
@RequestId = requestid
|
9078
|
+
end
|
9079
|
+
|
9080
|
+
def deserialize(params)
|
9081
|
+
@Total = params['Total']
|
9082
|
+
unless params['InstanceResults'].nil?
|
9083
|
+
@InstanceResults = []
|
9084
|
+
params['InstanceResults'].each do |i|
|
9085
|
+
prometheusinstancescrapestatistics_tmp = PrometheusInstanceScrapeStatistics.new
|
9086
|
+
prometheusinstancescrapestatistics_tmp.deserialize(i)
|
9087
|
+
@InstanceResults << prometheusinstancescrapestatistics_tmp
|
9088
|
+
end
|
9089
|
+
end
|
9090
|
+
@RequestId = params['RequestId']
|
9091
|
+
end
|
9092
|
+
end
|
9093
|
+
|
9045
9094
|
# DescribePrometheusTargetsTMP请求参数结构体
|
9046
9095
|
class DescribePrometheusTargetsTMPRequest < TencentCloud::Common::AbstractModel
|
9047
9096
|
# @param InstanceId: 实例id
|
@@ -11557,14 +11606,14 @@ module TencentCloud
|
|
11557
11606
|
|
11558
11607
|
attr_accessor :AlarmNotifyPeriod, :AlarmNotifyType, :EventID, :RuleID, :MetricName, :Description
|
11559
11608
|
extend Gem::Deprecate
|
11560
|
-
deprecate :AlarmNotifyPeriod, :none, 2025,
|
11561
|
-
deprecate :AlarmNotifyPeriod=, :none, 2025,
|
11562
|
-
deprecate :AlarmNotifyType, :none, 2025,
|
11563
|
-
deprecate :AlarmNotifyType=, :none, 2025,
|
11564
|
-
deprecate :EventID, :none, 2025,
|
11565
|
-
deprecate :EventID=, :none, 2025,
|
11566
|
-
deprecate :RuleID, :none, 2025,
|
11567
|
-
deprecate :RuleID=, :none, 2025,
|
11609
|
+
deprecate :AlarmNotifyPeriod, :none, 2025, 10
|
11610
|
+
deprecate :AlarmNotifyPeriod=, :none, 2025, 10
|
11611
|
+
deprecate :AlarmNotifyType, :none, 2025, 10
|
11612
|
+
deprecate :AlarmNotifyType=, :none, 2025, 10
|
11613
|
+
deprecate :EventID, :none, 2025, 10
|
11614
|
+
deprecate :EventID=, :none, 2025, 10
|
11615
|
+
deprecate :RuleID, :none, 2025, 10
|
11616
|
+
deprecate :RuleID=, :none, 2025, 10
|
11568
11617
|
|
11569
11618
|
def initialize(alarmnotifyperiod=nil, alarmnotifytype=nil, eventid=nil, ruleid=nil, metricname=nil, description=nil)
|
11570
11619
|
@AlarmNotifyPeriod = alarmnotifyperiod
|
@@ -13069,6 +13118,44 @@ module TencentCloud
|
|
13069
13118
|
end
|
13070
13119
|
end
|
13071
13120
|
|
13121
|
+
# 集群指标抓取统计
|
13122
|
+
class PrometheusClusterScrapeStatistics < TencentCloud::Common::AbstractModel
|
13123
|
+
# @param ClusterID: 集群ID
|
13124
|
+
# @type ClusterID: String
|
13125
|
+
# @param ScrapedRate: 被采集的点数
|
13126
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
13127
|
+
# @type ScrapedRate: Float
|
13128
|
+
# @param Jobs: Job列表
|
13129
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
13130
|
+
# @type Jobs: Array
|
13131
|
+
# @param SamplesRate: 过滤前的指标采集速率
|
13132
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
13133
|
+
# @type SamplesRate: Float
|
13134
|
+
|
13135
|
+
attr_accessor :ClusterID, :ScrapedRate, :Jobs, :SamplesRate
|
13136
|
+
|
13137
|
+
def initialize(clusterid=nil, scrapedrate=nil, jobs=nil, samplesrate=nil)
|
13138
|
+
@ClusterID = clusterid
|
13139
|
+
@ScrapedRate = scrapedrate
|
13140
|
+
@Jobs = jobs
|
13141
|
+
@SamplesRate = samplesrate
|
13142
|
+
end
|
13143
|
+
|
13144
|
+
def deserialize(params)
|
13145
|
+
@ClusterID = params['ClusterID']
|
13146
|
+
@ScrapedRate = params['ScrapedRate']
|
13147
|
+
unless params['Jobs'].nil?
|
13148
|
+
@Jobs = []
|
13149
|
+
params['Jobs'].each do |i|
|
13150
|
+
prometheusjobscrapestatistics_tmp = PrometheusJobScrapeStatistics.new
|
13151
|
+
prometheusjobscrapestatistics_tmp.deserialize(i)
|
13152
|
+
@Jobs << prometheusjobscrapestatistics_tmp
|
13153
|
+
end
|
13154
|
+
end
|
13155
|
+
@SamplesRate = params['SamplesRate']
|
13156
|
+
end
|
13157
|
+
end
|
13158
|
+
|
13072
13159
|
# prometheus配置
|
13073
13160
|
class PrometheusConfigItem < TencentCloud::Common::AbstractModel
|
13074
13161
|
# @param Name: 名称
|
@@ -13138,6 +13225,53 @@ module TencentCloud
|
|
13138
13225
|
end
|
13139
13226
|
end
|
13140
13227
|
|
13228
|
+
# 实例抓取指标统计
|
13229
|
+
class PrometheusInstanceScrapeStatistics < TencentCloud::Common::AbstractModel
|
13230
|
+
# @param InstanceId: 实例ID
|
13231
|
+
# @type InstanceId: String
|
13232
|
+
# @param ScrapedRate: 被采集的点数
|
13233
|
+
# @type ScrapedRate: Float
|
13234
|
+
# @param Clusters: 集群指标列表
|
13235
|
+
# @type Clusters: Array
|
13236
|
+
# @param Global: 非容器指标列表
|
13237
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
13238
|
+
# @type Global: Array
|
13239
|
+
# @param SamplesRate: 过滤前的指标采集速率
|
13240
|
+
# @type SamplesRate: Float
|
13241
|
+
|
13242
|
+
attr_accessor :InstanceId, :ScrapedRate, :Clusters, :Global, :SamplesRate
|
13243
|
+
|
13244
|
+
def initialize(instanceid=nil, scrapedrate=nil, clusters=nil, global=nil, samplesrate=nil)
|
13245
|
+
@InstanceId = instanceid
|
13246
|
+
@ScrapedRate = scrapedrate
|
13247
|
+
@Clusters = clusters
|
13248
|
+
@Global = global
|
13249
|
+
@SamplesRate = samplesrate
|
13250
|
+
end
|
13251
|
+
|
13252
|
+
def deserialize(params)
|
13253
|
+
@InstanceId = params['InstanceId']
|
13254
|
+
@ScrapedRate = params['ScrapedRate']
|
13255
|
+
unless params['Clusters'].nil?
|
13256
|
+
@Clusters = []
|
13257
|
+
params['Clusters'].each do |i|
|
13258
|
+
prometheusclusterscrapestatistics_tmp = PrometheusClusterScrapeStatistics.new
|
13259
|
+
prometheusclusterscrapestatistics_tmp.deserialize(i)
|
13260
|
+
@Clusters << prometheusclusterscrapestatistics_tmp
|
13261
|
+
end
|
13262
|
+
end
|
13263
|
+
unless params['Global'].nil?
|
13264
|
+
@Global = []
|
13265
|
+
params['Global'].each do |i|
|
13266
|
+
prometheusclusterscrapestatistics_tmp = PrometheusClusterScrapeStatistics.new
|
13267
|
+
prometheusclusterscrapestatistics_tmp.deserialize(i)
|
13268
|
+
@Global << prometheusclusterscrapestatistics_tmp
|
13269
|
+
end
|
13270
|
+
end
|
13271
|
+
@SamplesRate = params['SamplesRate']
|
13272
|
+
end
|
13273
|
+
end
|
13274
|
+
|
13141
13275
|
# Prometheus用量信息
|
13142
13276
|
class PrometheusInstanceTenantUsage < TencentCloud::Common::AbstractModel
|
13143
13277
|
# @param InstanceId: 实例ID
|
@@ -13467,6 +13601,42 @@ module TencentCloud
|
|
13467
13601
|
end
|
13468
13602
|
end
|
13469
13603
|
|
13604
|
+
# Job抓取统计
|
13605
|
+
class PrometheusJobScrapeStatistics < TencentCloud::Common::AbstractModel
|
13606
|
+
# @param JobName: Job 名
|
13607
|
+
# @type JobName: String
|
13608
|
+
# @param ScrapedRate: 被采集的点数
|
13609
|
+
# @type ScrapedRate: Float
|
13610
|
+
# @param Metrics: 指标列表
|
13611
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
13612
|
+
# @type Metrics: Array
|
13613
|
+
# @param JobType: Job 类型
|
13614
|
+
# @type JobType: String
|
13615
|
+
|
13616
|
+
attr_accessor :JobName, :ScrapedRate, :Metrics, :JobType
|
13617
|
+
|
13618
|
+
def initialize(jobname=nil, scrapedrate=nil, metrics=nil, jobtype=nil)
|
13619
|
+
@JobName = jobname
|
13620
|
+
@ScrapedRate = scrapedrate
|
13621
|
+
@Metrics = metrics
|
13622
|
+
@JobType = jobtype
|
13623
|
+
end
|
13624
|
+
|
13625
|
+
def deserialize(params)
|
13626
|
+
@JobName = params['JobName']
|
13627
|
+
@ScrapedRate = params['ScrapedRate']
|
13628
|
+
unless params['Metrics'].nil?
|
13629
|
+
@Metrics = []
|
13630
|
+
params['Metrics'].each do |i|
|
13631
|
+
prometheusmetricscrapestatistics_tmp = PrometheusMetricScrapeStatistics.new
|
13632
|
+
prometheusmetricscrapestatistics_tmp.deserialize(i)
|
13633
|
+
@Metrics << prometheusmetricscrapestatistics_tmp
|
13634
|
+
end
|
13635
|
+
end
|
13636
|
+
@JobType = params['JobType']
|
13637
|
+
end
|
13638
|
+
end
|
13639
|
+
|
13470
13640
|
# prometheus一个job的targets
|
13471
13641
|
class PrometheusJobTargets < TencentCloud::Common::AbstractModel
|
13472
13642
|
# @param Targets: 该Job的targets列表
|
@@ -13502,6 +13672,38 @@ module TencentCloud
|
|
13502
13672
|
end
|
13503
13673
|
end
|
13504
13674
|
|
13675
|
+
# 指标抓取统计
|
13676
|
+
class PrometheusMetricScrapeStatistics < TencentCloud::Common::AbstractModel
|
13677
|
+
# @param MetricName: 指标名
|
13678
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
13679
|
+
# @type MetricName: String
|
13680
|
+
# @param SamplesRate: 原始数据中的点数
|
13681
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
13682
|
+
# @type SamplesRate: Float
|
13683
|
+
# @param ScrapedRate: 被采集的点数
|
13684
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
13685
|
+
# @type ScrapedRate: Float
|
13686
|
+
# @param IsRecommended: 是否推荐采集
|
13687
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
13688
|
+
# @type IsRecommended: Boolean
|
13689
|
+
|
13690
|
+
attr_accessor :MetricName, :SamplesRate, :ScrapedRate, :IsRecommended
|
13691
|
+
|
13692
|
+
def initialize(metricname=nil, samplesrate=nil, scrapedrate=nil, isrecommended=nil)
|
13693
|
+
@MetricName = metricname
|
13694
|
+
@SamplesRate = samplesrate
|
13695
|
+
@ScrapedRate = scrapedrate
|
13696
|
+
@IsRecommended = isrecommended
|
13697
|
+
end
|
13698
|
+
|
13699
|
+
def deserialize(params)
|
13700
|
+
@MetricName = params['MetricName']
|
13701
|
+
@SamplesRate = params['SamplesRate']
|
13702
|
+
@ScrapedRate = params['ScrapedRate']
|
13703
|
+
@IsRecommended = params['IsRecommended']
|
13704
|
+
end
|
13705
|
+
end
|
13706
|
+
|
13505
13707
|
# 告警通知渠道配置
|
13506
13708
|
class PrometheusNotificationItem < TencentCloud::Common::AbstractModel
|
13507
13709
|
# @param Enabled: 是否启用
|
@@ -14307,10 +14509,10 @@ module TencentCloud
|
|
14307
14509
|
|
14308
14510
|
attr_accessor :URL, :URLRelabelConfig, :BasicAuth, :MaxBlockSize, :Label, :Headers
|
14309
14511
|
extend Gem::Deprecate
|
14310
|
-
deprecate :MaxBlockSize, :none, 2025,
|
14311
|
-
deprecate :MaxBlockSize=, :none, 2025,
|
14312
|
-
deprecate :Label, :none, 2025,
|
14313
|
-
deprecate :Label=, :none, 2025,
|
14512
|
+
deprecate :MaxBlockSize, :none, 2025, 10
|
14513
|
+
deprecate :MaxBlockSize=, :none, 2025, 10
|
14514
|
+
deprecate :Label, :none, 2025, 10
|
14515
|
+
deprecate :Label=, :none, 2025, 10
|
14314
14516
|
|
14315
14517
|
def initialize(url=nil, urlrelabelconfig=nil, basicauth=nil, maxblocksize=nil, label=nil, headers=nil)
|
14316
14518
|
@URL = url
|
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.
|
4
|
+
version: 3.0.1153
|
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-
|
11
|
+
date: 2025-10-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|
@@ -33,11 +33,11 @@ executables: []
|
|
33
33
|
extensions: []
|
34
34
|
extra_rdoc_files: []
|
35
35
|
files:
|
36
|
+
- lib/v20230616/models.rb
|
37
|
+
- lib/v20230616/client.rb
|
36
38
|
- lib/tencentcloud-sdk-monitor.rb
|
37
39
|
- lib/v20180724/models.rb
|
38
40
|
- lib/v20180724/client.rb
|
39
|
-
- lib/v20230616/models.rb
|
40
|
-
- lib/v20230616/client.rb
|
41
41
|
- lib/VERSION
|
42
42
|
homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
|
43
43
|
licenses:
|