tencentcloud-sdk-monitor 3.0.728 → 3.0.729

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 12a9b0deb8c15098592afdfb9bd3473327854ad8
4
- data.tar.gz: 330fa0a818aec73c8ede4374fb56143c63b1d252
3
+ metadata.gz: 5c9a0fc1fe14bc3435454770c263a684c095dc42
4
+ data.tar.gz: b6b6a8fde669a05e6f6f47b0c7e9ee89ccd8dff9
5
5
  SHA512:
6
- metadata.gz: c1801ae046376783b0c9ea7f8b75648a7fad6229d165ebb0e0a38700b68ea62f2a1d63716add5194b891cd3cbbcb5402c488c6bce35152580104a7d533089b1a
7
- data.tar.gz: e7d60c682c4f13565f44b733573a3b3d42b6200f691b031e981444dfc0c039cfe06ef2fe5812a4118bfcdc5a71206cd7297a6f0eddaecceb93ed4ec1b1827857
6
+ metadata.gz: 96e923ea04fd59ac5f8e5ad1f8f694ba9b469c34f295561f80ed8396ed47eea93b02ce80c37f0a07cee396f5a3b04641bf744daef5860eac1182d7028c7442fa
7
+ data.tar.gz: 54f6f8a85771118b48ff837c0a80ca961ed9919055e88db99176f6cac6fd5e47fceefea5836b8e8b88f316e1e9f58e99dd20c634192a505b6d2d35c9a648800e
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.728
1
+ 3.0.729
@@ -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`
@@ -2301,7 +2301,7 @@ module TencentCloud
2301
2301
 
2302
2302
  # CreatePrometheusGlobalNotification请求参数结构体
2303
2303
  class CreatePrometheusGlobalNotificationRequest < TencentCloud::Common::AbstractModel
2304
- # @param InstanceId: 实例ID
2304
+ # @param InstanceId: 实例ID(可通过 DescribePrometheusInstances 接口获取)
2305
2305
  # @type InstanceId: String
2306
2306
  # @param Notification: 告警通知渠道
2307
2307
  # @type Notification: :class:`Tencentcloud::Monitor.v20180724.models.PrometheusNotificationItem`
@@ -3043,11 +3043,11 @@ module TencentCloud
3043
3043
 
3044
3044
  # DeletePrometheusAlertPolicy请求参数结构体
3045
3045
  class DeletePrometheusAlertPolicyRequest < TencentCloud::Common::AbstractModel
3046
- # @param InstanceId: 实例id
3046
+ # @param InstanceId: 实例ID(可通过 DescribePrometheusInstances 接口获取)
3047
3047
  # @type InstanceId: String
3048
- # @param AlertIds: 告警策略id列表
3048
+ # @param AlertIds: 告警策略ID列表(可通过 DescribePrometheusAlertPolicy 接口获取)
3049
3049
  # @type AlertIds: Array
3050
- # @param Names: 告警策略名称
3050
+ # @param Names: 告警策略名称(可通过 DescribePrometheusAlertPolicy 接口获取),名称完全相同的告警策略才会删除
3051
3051
  # @type Names: Array
3052
3052
 
3053
3053
  attr_accessor :InstanceId, :AlertIds, :Names
@@ -7267,17 +7267,20 @@ module TencentCloud
7267
7267
  # @type Agents: Array
7268
7268
  # @param Total: 被关联集群总量
7269
7269
  # @type Total: Integer
7270
- # @param IsFirstBind: 是否为首次绑定,需要安装预聚合规则
7270
+ # @param IsFirstBind: 是否为首次绑定,如果是首次绑定则需要安装预聚合规则
7271
7271
  # @type IsFirstBind: Boolean
7272
+ # @param ImageNeedUpdate: 实例组件是否需要更新镜像版本
7273
+ # @type ImageNeedUpdate: Boolean
7272
7274
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
7273
7275
  # @type RequestId: String
7274
7276
 
7275
- attr_accessor :Agents, :Total, :IsFirstBind, :RequestId
7277
+ attr_accessor :Agents, :Total, :IsFirstBind, :ImageNeedUpdate, :RequestId
7276
7278
 
7277
- def initialize(agents=nil, total=nil, isfirstbind=nil, requestid=nil)
7279
+ def initialize(agents=nil, total=nil, isfirstbind=nil, imageneedupdate=nil, requestid=nil)
7278
7280
  @Agents = agents
7279
7281
  @Total = total
7280
7282
  @IsFirstBind = isfirstbind
7283
+ @ImageNeedUpdate = imageneedupdate
7281
7284
  @RequestId = requestid
7282
7285
  end
7283
7286
 
@@ -7292,6 +7295,7 @@ module TencentCloud
7292
7295
  end
7293
7296
  @Total = params['Total']
7294
7297
  @IsFirstBind = params['IsFirstBind']
7298
+ @ImageNeedUpdate = params['ImageNeedUpdate']
7295
7299
  @RequestId = params['RequestId']
7296
7300
  end
7297
7301
  end
@@ -7332,17 +7336,20 @@ module TencentCloud
7332
7336
  # @type RawJobs: Array
7333
7337
  # @param Probes: Probes
7334
7338
  # @type Probes: Array
7339
+ # @param ImageNeedUpdate: 实例组件是否需要升级
7340
+ # @type ImageNeedUpdate: Boolean
7335
7341
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
7336
7342
  # @type RequestId: String
7337
7343
 
7338
- attr_accessor :Config, :ServiceMonitors, :PodMonitors, :RawJobs, :Probes, :RequestId
7344
+ attr_accessor :Config, :ServiceMonitors, :PodMonitors, :RawJobs, :Probes, :ImageNeedUpdate, :RequestId
7339
7345
 
7340
- def initialize(config=nil, servicemonitors=nil, podmonitors=nil, rawjobs=nil, probes=nil, requestid=nil)
7346
+ def initialize(config=nil, servicemonitors=nil, podmonitors=nil, rawjobs=nil, probes=nil, imageneedupdate=nil, requestid=nil)
7341
7347
  @Config = config
7342
7348
  @ServiceMonitors = servicemonitors
7343
7349
  @PodMonitors = podmonitors
7344
7350
  @RawJobs = rawjobs
7345
7351
  @Probes = probes
7352
+ @ImageNeedUpdate = imageneedupdate
7346
7353
  @RequestId = requestid
7347
7354
  end
7348
7355
 
@@ -7380,6 +7387,7 @@ module TencentCloud
7380
7387
  @Probes << prometheusconfigitem_tmp
7381
7388
  end
7382
7389
  end
7390
+ @ImageNeedUpdate = params['ImageNeedUpdate']
7383
7391
  @RequestId = params['RequestId']
7384
7392
  end
7385
7393
  end
@@ -8134,28 +8142,29 @@ module TencentCloud
8134
8142
  class DescribePrometheusTargetsTMPRequest < TencentCloud::Common::AbstractModel
8135
8143
  # @param InstanceId: 实例id
8136
8144
  # @type InstanceId: String
8137
- # @param ClusterType: 集群类型
8138
- # @type ClusterType: String
8139
- # @param ClusterId: 集群id
8145
+ # @param ClusterId: 集成容器服务填绑定的集群id;
8146
+ # 集成中心填 non-cluster
8140
8147
  # @type ClusterId: String
8148
+ # @param ClusterType: 集群类型(可不填)
8149
+ # @type ClusterType: String
8141
8150
  # @param Filters: 过滤条件,当前支持
8142
8151
  # Name=state
8143
8152
  # Value=up, down, unknown
8144
8153
  # @type Filters: Array
8145
8154
 
8146
- attr_accessor :InstanceId, :ClusterType, :ClusterId, :Filters
8155
+ attr_accessor :InstanceId, :ClusterId, :ClusterType, :Filters
8147
8156
 
8148
- def initialize(instanceid=nil, clustertype=nil, clusterid=nil, filters=nil)
8157
+ def initialize(instanceid=nil, clusterid=nil, clustertype=nil, filters=nil)
8149
8158
  @InstanceId = instanceid
8150
- @ClusterType = clustertype
8151
8159
  @ClusterId = clusterid
8160
+ @ClusterType = clustertype
8152
8161
  @Filters = filters
8153
8162
  end
8154
8163
 
8155
8164
  def deserialize(params)
8156
8165
  @InstanceId = params['InstanceId']
8157
- @ClusterType = params['ClusterType']
8158
8166
  @ClusterId = params['ClusterId']
8167
+ @ClusterType = params['ClusterType']
8159
8168
  unless params['Filters'].nil?
8160
8169
  @Filters = []
8161
8170
  params['Filters'].each do |i|
@@ -10608,16 +10617,20 @@ module TencentCloud
10608
10617
  # @type PodMonitors: Array
10609
10618
  # @param RawJobs: prometheus原生Job配置
10610
10619
  # @type RawJobs: Array
10620
+ # @param UpdateImage: 0: 更新实例组件镜像版本;
10621
+ # 1: 不更新实例组件镜像版本
10622
+ # @type UpdateImage: Integer
10611
10623
 
10612
- attr_accessor :InstanceId, :ClusterType, :ClusterId, :ServiceMonitors, :PodMonitors, :RawJobs
10624
+ attr_accessor :InstanceId, :ClusterType, :ClusterId, :ServiceMonitors, :PodMonitors, :RawJobs, :UpdateImage
10613
10625
 
10614
- def initialize(instanceid=nil, clustertype=nil, clusterid=nil, servicemonitors=nil, podmonitors=nil, rawjobs=nil)
10626
+ def initialize(instanceid=nil, clustertype=nil, clusterid=nil, servicemonitors=nil, podmonitors=nil, rawjobs=nil, updateimage=nil)
10615
10627
  @InstanceId = instanceid
10616
10628
  @ClusterType = clustertype
10617
10629
  @ClusterId = clusterid
10618
10630
  @ServiceMonitors = servicemonitors
10619
10631
  @PodMonitors = podmonitors
10620
10632
  @RawJobs = rawjobs
10633
+ @UpdateImage = updateimage
10621
10634
  end
10622
10635
 
10623
10636
  def deserialize(params)
@@ -10648,6 +10661,7 @@ module TencentCloud
10648
10661
  @RawJobs << prometheusconfigitem_tmp
10649
10662
  end
10650
10663
  end
10664
+ @UpdateImage = params['UpdateImage']
10651
10665
  end
10652
10666
  end
10653
10667
 
@@ -11923,12 +11937,36 @@ module TencentCloud
11923
11937
 
11924
11938
  # prometheus一个job的targets
11925
11939
  class PrometheusJobTargets < TencentCloud::Common::AbstractModel
11940
+ # @param Targets: 该Job的targets列表
11941
+ # @type Targets: Array
11942
+ # @param JobName: job的名称
11943
+ # @type JobName: String
11944
+ # @param Total: targets总数
11945
+ # @type Total: Integer
11946
+ # @param Up: 健康的target总数
11947
+ # @type Up: Integer
11926
11948
 
11949
+ attr_accessor :Targets, :JobName, :Total, :Up
11927
11950
 
11928
- def initialize()
11951
+ def initialize(targets=nil, jobname=nil, total=nil, up=nil)
11952
+ @Targets = targets
11953
+ @JobName = jobname
11954
+ @Total = total
11955
+ @Up = up
11929
11956
  end
11930
11957
 
11931
11958
  def deserialize(params)
11959
+ unless params['Targets'].nil?
11960
+ @Targets = []
11961
+ params['Targets'].each do |i|
11962
+ prometheustarget_tmp = PrometheusTarget.new
11963
+ prometheustarget_tmp.deserialize(i)
11964
+ @Targets << prometheustarget_tmp
11965
+ end
11966
+ end
11967
+ @JobName = params['JobName']
11968
+ @Total = params['Total']
11969
+ @Up = params['Up']
11932
11970
  end
11933
11971
  end
11934
11972
 
@@ -12266,6 +12304,17 @@ module TencentCloud
12266
12304
  end
12267
12305
  end
12268
12306
 
12307
+ # prometheus一个抓取目标的信息
12308
+ class PrometheusTarget < TencentCloud::Common::AbstractModel
12309
+
12310
+
12311
+ def initialize()
12312
+ end
12313
+
12314
+ def deserialize(params)
12315
+ end
12316
+ end
12317
+
12269
12318
  # 模板实例
12270
12319
  class PrometheusTemp < TencentCloud::Common::AbstractModel
12271
12320
  # @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.728
4
+ version: 3.0.729
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-14 00:00:00.000000000 Z
11
+ date: 2023-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common