tencentcloud-sdk-monitor 3.0.1072 → 3.0.1074

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: 5156cdc48b15ef355027b450547e0c6ade79ba06
4
- data.tar.gz: c4059be87913f73dfcba7f7b0a1ead79c7b07e2f
3
+ metadata.gz: ec1de5d10db7d7359eed0db7443c7f0a56e0f7bc
4
+ data.tar.gz: 4c2cf1e0d9941bae132b3801e625cb0c08c5d173
5
5
  SHA512:
6
- metadata.gz: 7a1e4625009e973bcdf1ea1f741c493bf757cbdae63075762e24329713f92a8e25127eddf9ec64d8b7590484c1590f13047abae7c2acba19076c6f47aa8155c3
7
- data.tar.gz: 3c68a99f979f1299f578b5f4121ce487f209bb5069e9168dc70bb878430cc7ede48d7f9cf7fdad6fa2a4fe9eb297aa4f938d415ca9f9efbd8b3be557b7477aed
6
+ metadata.gz: d6b4b50dec4fc436bced3ccb91622f648d1a003ed6b9957fff62e6af919d45574679dd60e8cb43701e19eede3d47e0df48ea1ff4e992af713c5601dcb4a31ba6
7
+ data.tar.gz: 7544d0f76fc6937c8c45a5e4df7131fb9cfe6245f609c9e9ba1a03a3eddf339db7c7a51849f2d4fb80ac119855359885e48e51d111f78137d396772a66c095e2
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1072
1
+ 3.0.1074
@@ -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.
@@ -1600,6 +1624,54 @@ module TencentCloud
1600
1624
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1601
1625
  end
1602
1626
 
1627
+ # 查看外部集群注册命令
1628
+
1629
+ # @param request: Request instance for DescribeExternalClusterRegisterCommand.
1630
+ # @type request: :class:`Tencentcloud::monitor::V20180724::DescribeExternalClusterRegisterCommandRequest`
1631
+ # @rtype: :class:`Tencentcloud::monitor::V20180724::DescribeExternalClusterRegisterCommandResponse`
1632
+ def DescribeExternalClusterRegisterCommand(request)
1633
+ body = send_request('DescribeExternalClusterRegisterCommand', request.serialize)
1634
+ response = JSON.parse(body)
1635
+ if response['Response'].key?('Error') == false
1636
+ model = DescribeExternalClusterRegisterCommandResponse.new
1637
+ model.deserialize(response['Response'])
1638
+ model
1639
+ else
1640
+ code = response['Response']['Error']['Code']
1641
+ message = response['Response']['Error']['Message']
1642
+ reqid = response['Response']['RequestId']
1643
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1644
+ end
1645
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1646
+ raise e
1647
+ rescue StandardError => e
1648
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1649
+ end
1650
+
1651
+ # 查看外部集群 Agent 卸载命令
1652
+
1653
+ # @param request: Request instance for DescribeExternalClusterUninstallCommand.
1654
+ # @type request: :class:`Tencentcloud::monitor::V20180724::DescribeExternalClusterUninstallCommandRequest`
1655
+ # @rtype: :class:`Tencentcloud::monitor::V20180724::DescribeExternalClusterUninstallCommandResponse`
1656
+ def DescribeExternalClusterUninstallCommand(request)
1657
+ body = send_request('DescribeExternalClusterUninstallCommand', request.serialize)
1658
+ response = JSON.parse(body)
1659
+ if response['Response'].key?('Error') == false
1660
+ model = DescribeExternalClusterUninstallCommandResponse.new
1661
+ model.deserialize(response['Response'])
1662
+ model
1663
+ else
1664
+ code = response['Response']['Error']['Code']
1665
+ message = response['Response']['Error']['Message']
1666
+ reqid = response['Response']['RequestId']
1667
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1668
+ end
1669
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1670
+ raise e
1671
+ rescue StandardError => e
1672
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1673
+ end
1674
+
1603
1675
  # 列出 Grafana 所有告警通道
1604
1676
 
1605
1677
  # @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: 实例名
@@ -5564,6 +5631,86 @@ module TencentCloud
5564
5631
  end
5565
5632
  end
5566
5633
 
5634
+ # DescribeExternalClusterRegisterCommand请求参数结构体
5635
+ class DescribeExternalClusterRegisterCommandRequest < TencentCloud::Common::AbstractModel
5636
+ # @param InstanceId: 实例 ID
5637
+ # @type InstanceId: String
5638
+ # @param ClusterId: 集群 ID
5639
+ # @type ClusterId: String
5640
+
5641
+ attr_accessor :InstanceId, :ClusterId
5642
+
5643
+ def initialize(instanceid=nil, clusterid=nil)
5644
+ @InstanceId = instanceid
5645
+ @ClusterId = clusterid
5646
+ end
5647
+
5648
+ def deserialize(params)
5649
+ @InstanceId = params['InstanceId']
5650
+ @ClusterId = params['ClusterId']
5651
+ end
5652
+ end
5653
+
5654
+ # DescribeExternalClusterRegisterCommand返回参数结构体
5655
+ class DescribeExternalClusterRegisterCommandResponse < TencentCloud::Common::AbstractModel
5656
+ # @param Command: 注册命令
5657
+ # @type Command: String
5658
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5659
+ # @type RequestId: String
5660
+
5661
+ attr_accessor :Command, :RequestId
5662
+
5663
+ def initialize(command=nil, requestid=nil)
5664
+ @Command = command
5665
+ @RequestId = requestid
5666
+ end
5667
+
5668
+ def deserialize(params)
5669
+ @Command = params['Command']
5670
+ @RequestId = params['RequestId']
5671
+ end
5672
+ end
5673
+
5674
+ # DescribeExternalClusterUninstallCommand请求参数结构体
5675
+ class DescribeExternalClusterUninstallCommandRequest < TencentCloud::Common::AbstractModel
5676
+ # @param InstanceId: 实例 ID
5677
+ # @type InstanceId: String
5678
+ # @param ClusterId: 集群 ID
5679
+ # @type ClusterId: String
5680
+
5681
+ attr_accessor :InstanceId, :ClusterId
5682
+
5683
+ def initialize(instanceid=nil, clusterid=nil)
5684
+ @InstanceId = instanceid
5685
+ @ClusterId = clusterid
5686
+ end
5687
+
5688
+ def deserialize(params)
5689
+ @InstanceId = params['InstanceId']
5690
+ @ClusterId = params['ClusterId']
5691
+ end
5692
+ end
5693
+
5694
+ # DescribeExternalClusterUninstallCommand返回参数结构体
5695
+ class DescribeExternalClusterUninstallCommandResponse < TencentCloud::Common::AbstractModel
5696
+ # @param Command: 卸载命令
5697
+ # @type Command: String
5698
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5699
+ # @type RequestId: String
5700
+
5701
+ attr_accessor :Command, :RequestId
5702
+
5703
+ def initialize(command=nil, requestid=nil)
5704
+ @Command = command
5705
+ @RequestId = requestid
5706
+ end
5707
+
5708
+ def deserialize(params)
5709
+ @Command = params['Command']
5710
+ @RequestId = params['RequestId']
5711
+ end
5712
+ end
5713
+
5567
5714
  # DescribeGrafanaChannels请求参数结构体
5568
5715
  class DescribeGrafanaChannelsRequest < TencentCloud::Common::AbstractModel
5569
5716
  # @param InstanceId: Grafana 实例 ID,例如:grafana-12345678
@@ -12773,7 +12920,7 @@ module TencentCloud
12773
12920
  class PrometheusClusterAgentBasic < TencentCloud::Common::AbstractModel
12774
12921
  # @param Region: 地域
12775
12922
  # @type Region: String
12776
- # @param ClusterType: 集群类型。可填入tke、eks、tkeedge、tdcc,分别代表标准集群、弹性集群、边缘集群、注册集群
12923
+ # @param ClusterType: 集群类型。可填入tke、eks、tkeedge、tdcc、external,分别代表标准集群、弹性集群、边缘集群、注册集群 和外部集群
12777
12924
  # @type ClusterType: String
12778
12925
  # @param ClusterId: 集群 ID
12779
12926
  # @type ClusterId: String
@@ -14107,10 +14254,10 @@ module TencentCloud
14107
14254
 
14108
14255
  attr_accessor :URL, :URLRelabelConfig, :BasicAuth, :MaxBlockSize, :Label, :Headers
14109
14256
  extend Gem::Deprecate
14110
- deprecate :MaxBlockSize, :none, 2025, 5
14111
- deprecate :MaxBlockSize=, :none, 2025, 5
14112
- deprecate :Label, :none, 2025, 5
14113
- deprecate :Label=, :none, 2025, 5
14257
+ deprecate :MaxBlockSize, :none, 2025, 6
14258
+ deprecate :MaxBlockSize=, :none, 2025, 6
14259
+ deprecate :Label, :none, 2025, 6
14260
+ deprecate :Label=, :none, 2025, 6
14114
14261
 
14115
14262
  def initialize(url=nil, urlrelabelconfig=nil, basicauth=nil, maxblocksize=nil, label=nil, headers=nil)
14116
14263
  @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.1072
4
+ version: 3.0.1074
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-01 00:00:00.000000000 Z
11
+ date: 2025-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common