tencentcloud-sdk-monitor 3.0.728 → 3.0.730
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 +2 -2
- data/lib/v20180724/models.rb +75 -21
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db2f53d321f996332b3b1789b15d15cd126e090c
|
4
|
+
data.tar.gz: 1e9bf9d8402f4481667b6670083c5e79ebdc7325
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 648fe47ef035d99e683c747ff723eb2b1f75ed2b986065756336330c796acac5e074e21d410a8d5632cd65283d1e5690e954ab5c38e9bf689ffd7619bba1e8cf
|
7
|
+
data.tar.gz: 0a92d2c26fc7672866c0095ad09a732fa82e60e9f6029c5a22baba1b267917c746efb7405e7f180e1146ccf351ff49c1e91af1d30ebd2531ad449fe5d21190c7
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.730
|
data/lib/v20180724/client.rb
CHANGED
@@ -367,7 +367,7 @@ module TencentCloud
|
|
367
367
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
368
368
|
end
|
369
369
|
|
370
|
-
# 创建告警策略
|
370
|
+
# 创建 Prometheus 告警策略(将逐步废弃,建议使用 CreatePrometheusAlertGroup 创建告警策略)
|
371
371
|
|
372
372
|
# @param request: Request instance for CreatePrometheusAlertPolicy.
|
373
373
|
# @type request: :class:`Tencentcloud::monitor::V20180724::CreatePrometheusAlertPolicyRequest`
|
@@ -439,7 +439,7 @@ module TencentCloud
|
|
439
439
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
440
440
|
end
|
441
441
|
|
442
|
-
#
|
442
|
+
# 创建全局告警通知渠道。集群内创建的告警规则如果未配置告警通知渠道,默认走全局告警通知渠道(建议在控制台创建告警,集群内创建告警不易维护)
|
443
443
|
|
444
444
|
# @param request: Request instance for CreatePrometheusGlobalNotification.
|
445
445
|
# @type request: :class:`Tencentcloud::monitor::V20180724::CreatePrometheusGlobalNotificationRequest`
|
data/lib/v20180724/models.rb
CHANGED
@@ -98,17 +98,22 @@ module TencentCloud
|
|
98
98
|
# @param Classification: 通知等级列表,["Remind","Serious"]表示该通知模板仅接收提醒和严重类别的告警
|
99
99
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
100
100
|
# @type Classification: Array
|
101
|
+
# @param PolicyId: 模板对应的策略id
|
102
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
103
|
+
# @type PolicyId: String
|
101
104
|
|
102
|
-
attr_accessor :NoticeId, :Classification
|
105
|
+
attr_accessor :NoticeId, :Classification, :PolicyId
|
103
106
|
|
104
|
-
def initialize(noticeid=nil, classification=nil)
|
107
|
+
def initialize(noticeid=nil, classification=nil, policyid=nil)
|
105
108
|
@NoticeId = noticeid
|
106
109
|
@Classification = classification
|
110
|
+
@PolicyId = policyid
|
107
111
|
end
|
108
112
|
|
109
113
|
def deserialize(params)
|
110
114
|
@NoticeId = params['NoticeId']
|
111
115
|
@Classification = params['Classification']
|
116
|
+
@PolicyId = params['PolicyId']
|
112
117
|
end
|
113
118
|
end
|
114
119
|
|
@@ -2301,7 +2306,7 @@ module TencentCloud
|
|
2301
2306
|
|
2302
2307
|
# CreatePrometheusGlobalNotification请求参数结构体
|
2303
2308
|
class CreatePrometheusGlobalNotificationRequest < TencentCloud::Common::AbstractModel
|
2304
|
-
# @param InstanceId: 实例ID
|
2309
|
+
# @param InstanceId: 实例ID(可通过 DescribePrometheusInstances 接口获取)
|
2305
2310
|
# @type InstanceId: String
|
2306
2311
|
# @param Notification: 告警通知渠道
|
2307
2312
|
# @type Notification: :class:`Tencentcloud::Monitor.v20180724.models.PrometheusNotificationItem`
|
@@ -3043,11 +3048,11 @@ module TencentCloud
|
|
3043
3048
|
|
3044
3049
|
# DeletePrometheusAlertPolicy请求参数结构体
|
3045
3050
|
class DeletePrometheusAlertPolicyRequest < TencentCloud::Common::AbstractModel
|
3046
|
-
# @param InstanceId: 实例
|
3051
|
+
# @param InstanceId: 实例ID(可通过 DescribePrometheusInstances 接口获取)
|
3047
3052
|
# @type InstanceId: String
|
3048
|
-
# @param AlertIds: 告警策略
|
3053
|
+
# @param AlertIds: 告警策略ID列表(可通过 DescribePrometheusAlertPolicy 接口获取)
|
3049
3054
|
# @type AlertIds: Array
|
3050
|
-
# @param Names: 告警策略名称
|
3055
|
+
# @param Names: 告警策略名称(可通过 DescribePrometheusAlertPolicy 接口获取),名称完全相同的告警策略才会删除
|
3051
3056
|
# @type Names: Array
|
3052
3057
|
|
3053
3058
|
attr_accessor :InstanceId, :AlertIds, :Names
|
@@ -7267,17 +7272,20 @@ module TencentCloud
|
|
7267
7272
|
# @type Agents: Array
|
7268
7273
|
# @param Total: 被关联集群总量
|
7269
7274
|
# @type Total: Integer
|
7270
|
-
# @param IsFirstBind:
|
7275
|
+
# @param IsFirstBind: 是否为首次绑定,如果是首次绑定则需要安装预聚合规则
|
7271
7276
|
# @type IsFirstBind: Boolean
|
7277
|
+
# @param ImageNeedUpdate: 实例组件是否需要更新镜像版本
|
7278
|
+
# @type ImageNeedUpdate: Boolean
|
7272
7279
|
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
7273
7280
|
# @type RequestId: String
|
7274
7281
|
|
7275
|
-
attr_accessor :Agents, :Total, :IsFirstBind, :RequestId
|
7282
|
+
attr_accessor :Agents, :Total, :IsFirstBind, :ImageNeedUpdate, :RequestId
|
7276
7283
|
|
7277
|
-
def initialize(agents=nil, total=nil, isfirstbind=nil, requestid=nil)
|
7284
|
+
def initialize(agents=nil, total=nil, isfirstbind=nil, imageneedupdate=nil, requestid=nil)
|
7278
7285
|
@Agents = agents
|
7279
7286
|
@Total = total
|
7280
7287
|
@IsFirstBind = isfirstbind
|
7288
|
+
@ImageNeedUpdate = imageneedupdate
|
7281
7289
|
@RequestId = requestid
|
7282
7290
|
end
|
7283
7291
|
|
@@ -7292,6 +7300,7 @@ module TencentCloud
|
|
7292
7300
|
end
|
7293
7301
|
@Total = params['Total']
|
7294
7302
|
@IsFirstBind = params['IsFirstBind']
|
7303
|
+
@ImageNeedUpdate = params['ImageNeedUpdate']
|
7295
7304
|
@RequestId = params['RequestId']
|
7296
7305
|
end
|
7297
7306
|
end
|
@@ -7332,17 +7341,20 @@ module TencentCloud
|
|
7332
7341
|
# @type RawJobs: Array
|
7333
7342
|
# @param Probes: Probes
|
7334
7343
|
# @type Probes: Array
|
7344
|
+
# @param ImageNeedUpdate: 实例组件是否需要升级
|
7345
|
+
# @type ImageNeedUpdate: Boolean
|
7335
7346
|
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
7336
7347
|
# @type RequestId: String
|
7337
7348
|
|
7338
|
-
attr_accessor :Config, :ServiceMonitors, :PodMonitors, :RawJobs, :Probes, :RequestId
|
7349
|
+
attr_accessor :Config, :ServiceMonitors, :PodMonitors, :RawJobs, :Probes, :ImageNeedUpdate, :RequestId
|
7339
7350
|
|
7340
|
-
def initialize(config=nil, servicemonitors=nil, podmonitors=nil, rawjobs=nil, probes=nil, requestid=nil)
|
7351
|
+
def initialize(config=nil, servicemonitors=nil, podmonitors=nil, rawjobs=nil, probes=nil, imageneedupdate=nil, requestid=nil)
|
7341
7352
|
@Config = config
|
7342
7353
|
@ServiceMonitors = servicemonitors
|
7343
7354
|
@PodMonitors = podmonitors
|
7344
7355
|
@RawJobs = rawjobs
|
7345
7356
|
@Probes = probes
|
7357
|
+
@ImageNeedUpdate = imageneedupdate
|
7346
7358
|
@RequestId = requestid
|
7347
7359
|
end
|
7348
7360
|
|
@@ -7380,6 +7392,7 @@ module TencentCloud
|
|
7380
7392
|
@Probes << prometheusconfigitem_tmp
|
7381
7393
|
end
|
7382
7394
|
end
|
7395
|
+
@ImageNeedUpdate = params['ImageNeedUpdate']
|
7383
7396
|
@RequestId = params['RequestId']
|
7384
7397
|
end
|
7385
7398
|
end
|
@@ -8134,28 +8147,29 @@ module TencentCloud
|
|
8134
8147
|
class DescribePrometheusTargetsTMPRequest < TencentCloud::Common::AbstractModel
|
8135
8148
|
# @param InstanceId: 实例id
|
8136
8149
|
# @type InstanceId: String
|
8137
|
-
# @param
|
8138
|
-
#
|
8139
|
-
# @param ClusterId: 集群id
|
8150
|
+
# @param ClusterId: 集成容器服务填绑定的集群id;
|
8151
|
+
# 集成中心填 non-cluster
|
8140
8152
|
# @type ClusterId: String
|
8153
|
+
# @param ClusterType: 集群类型(可不填)
|
8154
|
+
# @type ClusterType: String
|
8141
8155
|
# @param Filters: 过滤条件,当前支持
|
8142
8156
|
# Name=state
|
8143
8157
|
# Value=up, down, unknown
|
8144
8158
|
# @type Filters: Array
|
8145
8159
|
|
8146
|
-
attr_accessor :InstanceId, :
|
8160
|
+
attr_accessor :InstanceId, :ClusterId, :ClusterType, :Filters
|
8147
8161
|
|
8148
|
-
def initialize(instanceid=nil,
|
8162
|
+
def initialize(instanceid=nil, clusterid=nil, clustertype=nil, filters=nil)
|
8149
8163
|
@InstanceId = instanceid
|
8150
|
-
@ClusterType = clustertype
|
8151
8164
|
@ClusterId = clusterid
|
8165
|
+
@ClusterType = clustertype
|
8152
8166
|
@Filters = filters
|
8153
8167
|
end
|
8154
8168
|
|
8155
8169
|
def deserialize(params)
|
8156
8170
|
@InstanceId = params['InstanceId']
|
8157
|
-
@ClusterType = params['ClusterType']
|
8158
8171
|
@ClusterId = params['ClusterId']
|
8172
|
+
@ClusterType = params['ClusterType']
|
8159
8173
|
unless params['Filters'].nil?
|
8160
8174
|
@Filters = []
|
8161
8175
|
params['Filters'].each do |i|
|
@@ -10608,16 +10622,20 @@ module TencentCloud
|
|
10608
10622
|
# @type PodMonitors: Array
|
10609
10623
|
# @param RawJobs: prometheus原生Job配置
|
10610
10624
|
# @type RawJobs: Array
|
10625
|
+
# @param UpdateImage: 0: 更新实例组件镜像版本;
|
10626
|
+
# 1: 不更新实例组件镜像版本
|
10627
|
+
# @type UpdateImage: Integer
|
10611
10628
|
|
10612
|
-
attr_accessor :InstanceId, :ClusterType, :ClusterId, :ServiceMonitors, :PodMonitors, :RawJobs
|
10629
|
+
attr_accessor :InstanceId, :ClusterType, :ClusterId, :ServiceMonitors, :PodMonitors, :RawJobs, :UpdateImage
|
10613
10630
|
|
10614
|
-
def initialize(instanceid=nil, clustertype=nil, clusterid=nil, servicemonitors=nil, podmonitors=nil, rawjobs=nil)
|
10631
|
+
def initialize(instanceid=nil, clustertype=nil, clusterid=nil, servicemonitors=nil, podmonitors=nil, rawjobs=nil, updateimage=nil)
|
10615
10632
|
@InstanceId = instanceid
|
10616
10633
|
@ClusterType = clustertype
|
10617
10634
|
@ClusterId = clusterid
|
10618
10635
|
@ServiceMonitors = servicemonitors
|
10619
10636
|
@PodMonitors = podmonitors
|
10620
10637
|
@RawJobs = rawjobs
|
10638
|
+
@UpdateImage = updateimage
|
10621
10639
|
end
|
10622
10640
|
|
10623
10641
|
def deserialize(params)
|
@@ -10648,6 +10666,7 @@ module TencentCloud
|
|
10648
10666
|
@RawJobs << prometheusconfigitem_tmp
|
10649
10667
|
end
|
10650
10668
|
end
|
10669
|
+
@UpdateImage = params['UpdateImage']
|
10651
10670
|
end
|
10652
10671
|
end
|
10653
10672
|
|
@@ -11923,12 +11942,36 @@ module TencentCloud
|
|
11923
11942
|
|
11924
11943
|
# prometheus一个job的targets
|
11925
11944
|
class PrometheusJobTargets < TencentCloud::Common::AbstractModel
|
11945
|
+
# @param Targets: 该Job的targets列表
|
11946
|
+
# @type Targets: Array
|
11947
|
+
# @param JobName: job的名称
|
11948
|
+
# @type JobName: String
|
11949
|
+
# @param Total: targets总数
|
11950
|
+
# @type Total: Integer
|
11951
|
+
# @param Up: 健康的target总数
|
11952
|
+
# @type Up: Integer
|
11926
11953
|
|
11954
|
+
attr_accessor :Targets, :JobName, :Total, :Up
|
11927
11955
|
|
11928
|
-
def initialize()
|
11956
|
+
def initialize(targets=nil, jobname=nil, total=nil, up=nil)
|
11957
|
+
@Targets = targets
|
11958
|
+
@JobName = jobname
|
11959
|
+
@Total = total
|
11960
|
+
@Up = up
|
11929
11961
|
end
|
11930
11962
|
|
11931
11963
|
def deserialize(params)
|
11964
|
+
unless params['Targets'].nil?
|
11965
|
+
@Targets = []
|
11966
|
+
params['Targets'].each do |i|
|
11967
|
+
prometheustarget_tmp = PrometheusTarget.new
|
11968
|
+
prometheustarget_tmp.deserialize(i)
|
11969
|
+
@Targets << prometheustarget_tmp
|
11970
|
+
end
|
11971
|
+
end
|
11972
|
+
@JobName = params['JobName']
|
11973
|
+
@Total = params['Total']
|
11974
|
+
@Up = params['Up']
|
11932
11975
|
end
|
11933
11976
|
end
|
11934
11977
|
|
@@ -12266,6 +12309,17 @@ module TencentCloud
|
|
12266
12309
|
end
|
12267
12310
|
end
|
12268
12311
|
|
12312
|
+
# prometheus一个抓取目标的信息
|
12313
|
+
class PrometheusTarget < TencentCloud::Common::AbstractModel
|
12314
|
+
|
12315
|
+
|
12316
|
+
def initialize()
|
12317
|
+
end
|
12318
|
+
|
12319
|
+
def deserialize(params)
|
12320
|
+
end
|
12321
|
+
end
|
12322
|
+
|
12269
12323
|
# 模板实例
|
12270
12324
|
class PrometheusTemp < TencentCloud::Common::AbstractModel
|
12271
12325
|
# @param 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.
|
4
|
+
version: 3.0.730
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-12-
|
11
|
+
date: 2023-12-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|