tencentcloud-sdk-monitor 3.0.1073 → 3.0.1084

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: 8ce38f2d26a780e36f1cbbd2f86e54145ee6a106
4
- data.tar.gz: 84b98cfda0561f8ce8ab6f29adfbbbbf91b89178
3
+ metadata.gz: a281cc42d7b6bf1e98f203a1e8d1922f3448a1d8
4
+ data.tar.gz: 6a46e7d8105d3b7353491a8029dd2b71d3bb5e81
5
5
  SHA512:
6
- metadata.gz: dd113ce3bb799e13e4d36dd346f593cf2bcd6fb781e5d7234945c62815c1bba4779866382a2318a89fd18644a294aa77ac7567eb64e0c4f0f54a250fe54abbf2
7
- data.tar.gz: 7b4740f35c9ffd7f19e9795ca29a129cb7fd0c58209ab90b7d7a867bdb72f061ae7a1615a55dd664b0348bb373699e5798e2553cbb7f0f4b72b693f263673b88
6
+ metadata.gz: d59c23d2c548893fffbc80b42e616c24acd14f4f4942771c14d0b2247e1465aed775f849582f0f9873c48b736dc767c81d0d22a39e12c3fe50c58d2974c1ff1f
7
+ data.tar.gz: 3d4d05cfd81ded7cbcaa74dd9776c479ee97199ceeec989d4a029a66a29dc5792924c910cb4c696987133f36fef828a82c6b756887e8f64ba36871b018232d35
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1073
1
+ 3.0.1084
@@ -271,6 +271,30 @@ module TencentCloud
271
271
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
272
272
  end
273
273
 
274
+ # 注册外部集群到云上 TMP 实例
275
+
276
+ # @param request: Request instance for CreateExternalCluster.
277
+ # @type request: :class:`Tencentcloud::monitor::V20180724::CreateExternalClusterRequest`
278
+ # @rtype: :class:`Tencentcloud::monitor::V20180724::CreateExternalClusterResponse`
279
+ def CreateExternalCluster(request)
280
+ body = send_request('CreateExternalCluster', request.serialize)
281
+ response = JSON.parse(body)
282
+ if response['Response'].key?('Error') == false
283
+ model = CreateExternalClusterResponse.new
284
+ model.deserialize(response['Response'])
285
+ model
286
+ else
287
+ code = response['Response']['Error']['Code']
288
+ message = response['Response']['Error']['Message']
289
+ reqid = response['Response']['RequestId']
290
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
291
+ end
292
+ rescue TencentCloud::Common::TencentCloudSDKException => e
293
+ raise e
294
+ rescue StandardError => e
295
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
296
+ end
297
+
274
298
  # 本接口(CreateGrafanaInstance)用于创建 Grafana 包年包月实例,默认基础版、到期自动续费、不可使用代金券。
275
299
 
276
300
  # @param request: Request instance for CreateGrafanaInstance.
@@ -732,6 +756,30 @@ module TencentCloud
732
756
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
733
757
  end
734
758
 
759
+ # 删除告警屏蔽规则
760
+
761
+ # @param request: Request instance for DeleteAlarmShields.
762
+ # @type request: :class:`Tencentcloud::monitor::V20180724::DeleteAlarmShieldsRequest`
763
+ # @rtype: :class:`Tencentcloud::monitor::V20180724::DeleteAlarmShieldsResponse`
764
+ def DeleteAlarmShields(request)
765
+ body = send_request('DeleteAlarmShields', request.serialize)
766
+ response = JSON.parse(body)
767
+ if response['Response'].key?('Error') == false
768
+ model = DeleteAlarmShieldsResponse.new
769
+ model.deserialize(response['Response'])
770
+ model
771
+ else
772
+ code = response['Response']['Error']['Code']
773
+ message = response['Response']['Error']['Message']
774
+ reqid = response['Response']['RequestId']
775
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
776
+ end
777
+ rescue TencentCloud::Common::TencentCloudSDKException => e
778
+ raise e
779
+ rescue StandardError => e
780
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
781
+ end
782
+
735
783
  # 批量删除 Prometheus 报警规则
736
784
 
737
785
  # @param request: Request instance for DeleteAlertRules.
@@ -1624,6 +1672,30 @@ module TencentCloud
1624
1672
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1625
1673
  end
1626
1674
 
1675
+ # 查看外部集群 Agent 卸载命令
1676
+
1677
+ # @param request: Request instance for DescribeExternalClusterUninstallCommand.
1678
+ # @type request: :class:`Tencentcloud::monitor::V20180724::DescribeExternalClusterUninstallCommandRequest`
1679
+ # @rtype: :class:`Tencentcloud::monitor::V20180724::DescribeExternalClusterUninstallCommandResponse`
1680
+ def DescribeExternalClusterUninstallCommand(request)
1681
+ body = send_request('DescribeExternalClusterUninstallCommand', request.serialize)
1682
+ response = JSON.parse(body)
1683
+ if response['Response'].key?('Error') == false
1684
+ model = DescribeExternalClusterUninstallCommandResponse.new
1685
+ model.deserialize(response['Response'])
1686
+ model
1687
+ else
1688
+ code = response['Response']['Error']['Code']
1689
+ message = response['Response']['Error']['Message']
1690
+ reqid = response['Response']['RequestId']
1691
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1692
+ end
1693
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1694
+ raise e
1695
+ rescue StandardError => e
1696
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1697
+ end
1698
+
1627
1699
  # 列出 Grafana 所有告警通道
1628
1700
 
1629
1701
  # @param request: Request instance for DescribeGrafanaChannels.
@@ -2050,6 +2050,73 @@ module TencentCloud
2050
2050
  end
2051
2051
  end
2052
2052
 
2053
+ # CreateExternalCluster请求参数结构体
2054
+ class CreateExternalClusterRequest < TencentCloud::Common::AbstractModel
2055
+ # @param InstanceId: 实例 ID
2056
+ # @type InstanceId: String
2057
+ # @param ClusterRegion: 集群所在地域
2058
+ # @type ClusterRegion: String
2059
+ # @param ClusterName: 集群名称
2060
+ # @type ClusterName: String
2061
+ # @param ClusterId: 集群 ID
2062
+ # @type ClusterId: String
2063
+ # @param ExternalLabels: 外部标签
2064
+ # @type ExternalLabels: Array
2065
+ # @param OpenDefaultRecord: 是否打开预聚合规则
2066
+ # @type OpenDefaultRecord: Boolean
2067
+ # @param EnableExternal: 是否开启公网
2068
+ # @type EnableExternal: Boolean
2069
+
2070
+ attr_accessor :InstanceId, :ClusterRegion, :ClusterName, :ClusterId, :ExternalLabels, :OpenDefaultRecord, :EnableExternal
2071
+
2072
+ def initialize(instanceid=nil, clusterregion=nil, clustername=nil, clusterid=nil, externallabels=nil, opendefaultrecord=nil, enableexternal=nil)
2073
+ @InstanceId = instanceid
2074
+ @ClusterRegion = clusterregion
2075
+ @ClusterName = clustername
2076
+ @ClusterId = clusterid
2077
+ @ExternalLabels = externallabels
2078
+ @OpenDefaultRecord = opendefaultrecord
2079
+ @EnableExternal = enableexternal
2080
+ end
2081
+
2082
+ def deserialize(params)
2083
+ @InstanceId = params['InstanceId']
2084
+ @ClusterRegion = params['ClusterRegion']
2085
+ @ClusterName = params['ClusterName']
2086
+ @ClusterId = params['ClusterId']
2087
+ unless params['ExternalLabels'].nil?
2088
+ @ExternalLabels = []
2089
+ params['ExternalLabels'].each do |i|
2090
+ label_tmp = Label.new
2091
+ label_tmp.deserialize(i)
2092
+ @ExternalLabels << label_tmp
2093
+ end
2094
+ end
2095
+ @OpenDefaultRecord = params['OpenDefaultRecord']
2096
+ @EnableExternal = params['EnableExternal']
2097
+ end
2098
+ end
2099
+
2100
+ # CreateExternalCluster返回参数结构体
2101
+ class CreateExternalClusterResponse < TencentCloud::Common::AbstractModel
2102
+ # @param ClusterId: 集群 ID
2103
+ # @type ClusterId: String
2104
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2105
+ # @type RequestId: String
2106
+
2107
+ attr_accessor :ClusterId, :RequestId
2108
+
2109
+ def initialize(clusterid=nil, requestid=nil)
2110
+ @ClusterId = clusterid
2111
+ @RequestId = requestid
2112
+ end
2113
+
2114
+ def deserialize(params)
2115
+ @ClusterId = params['ClusterId']
2116
+ @RequestId = params['RequestId']
2117
+ end
2118
+ end
2119
+
2053
2120
  # CreateGrafanaInstance请求参数结构体
2054
2121
  class CreateGrafanaInstanceRequest < TencentCloud::Common::AbstractModel
2055
2122
  # @param InstanceName: 实例名
@@ -3191,6 +3258,42 @@ module TencentCloud
3191
3258
  end
3192
3259
  end
3193
3260
 
3261
+ # DeleteAlarmShields请求参数结构体
3262
+ class DeleteAlarmShieldsRequest < TencentCloud::Common::AbstractModel
3263
+ # @param Module: 模块名,这里填“monitor”
3264
+ # @type Module: String
3265
+ # @param Shields: 屏蔽策略Id列表
3266
+ # @type Shields: Array
3267
+
3268
+ attr_accessor :Module, :Shields
3269
+
3270
+ def initialize(_module=nil, shields=nil)
3271
+ @Module = _module
3272
+ @Shields = shields
3273
+ end
3274
+
3275
+ def deserialize(params)
3276
+ @Module = params['Module']
3277
+ @Shields = params['Shields']
3278
+ end
3279
+ end
3280
+
3281
+ # DeleteAlarmShields返回参数结构体
3282
+ class DeleteAlarmShieldsResponse < TencentCloud::Common::AbstractModel
3283
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
3284
+ # @type RequestId: String
3285
+
3286
+ attr_accessor :RequestId
3287
+
3288
+ def initialize(requestid=nil)
3289
+ @RequestId = requestid
3290
+ end
3291
+
3292
+ def deserialize(params)
3293
+ @RequestId = params['RequestId']
3294
+ end
3295
+ end
3296
+
3194
3297
  # DeleteAlertRules请求参数结构体
3195
3298
  class DeleteAlertRulesRequest < TencentCloud::Common::AbstractModel
3196
3299
  # @param RuleIds: 规则 ID 列表
@@ -5604,6 +5707,46 @@ module TencentCloud
5604
5707
  end
5605
5708
  end
5606
5709
 
5710
+ # DescribeExternalClusterUninstallCommand请求参数结构体
5711
+ class DescribeExternalClusterUninstallCommandRequest < TencentCloud::Common::AbstractModel
5712
+ # @param InstanceId: 实例 ID
5713
+ # @type InstanceId: String
5714
+ # @param ClusterId: 集群 ID
5715
+ # @type ClusterId: String
5716
+
5717
+ attr_accessor :InstanceId, :ClusterId
5718
+
5719
+ def initialize(instanceid=nil, clusterid=nil)
5720
+ @InstanceId = instanceid
5721
+ @ClusterId = clusterid
5722
+ end
5723
+
5724
+ def deserialize(params)
5725
+ @InstanceId = params['InstanceId']
5726
+ @ClusterId = params['ClusterId']
5727
+ end
5728
+ end
5729
+
5730
+ # DescribeExternalClusterUninstallCommand返回参数结构体
5731
+ class DescribeExternalClusterUninstallCommandResponse < TencentCloud::Common::AbstractModel
5732
+ # @param Command: 卸载命令
5733
+ # @type Command: String
5734
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5735
+ # @type RequestId: String
5736
+
5737
+ attr_accessor :Command, :RequestId
5738
+
5739
+ def initialize(command=nil, requestid=nil)
5740
+ @Command = command
5741
+ @RequestId = requestid
5742
+ end
5743
+
5744
+ def deserialize(params)
5745
+ @Command = params['Command']
5746
+ @RequestId = params['RequestId']
5747
+ end
5748
+ end
5749
+
5607
5750
  # DescribeGrafanaChannels请求参数结构体
5608
5751
  class DescribeGrafanaChannelsRequest < TencentCloud::Common::AbstractModel
5609
5752
  # @param InstanceId: Grafana 实例 ID,例如:grafana-12345678
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.1073
4
+ version: 3.0.1084
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-06-03 00:00:00.000000000 Z
11
+ date: 2025-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common