tencentcloud-sdk-monitor 3.0.1073 → 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: 8ce38f2d26a780e36f1cbbd2f86e54145ee6a106
4
- data.tar.gz: 84b98cfda0561f8ce8ab6f29adfbbbbf91b89178
3
+ metadata.gz: ec1de5d10db7d7359eed0db7443c7f0a56e0f7bc
4
+ data.tar.gz: 4c2cf1e0d9941bae132b3801e625cb0c08c5d173
5
5
  SHA512:
6
- metadata.gz: dd113ce3bb799e13e4d36dd346f593cf2bcd6fb781e5d7234945c62815c1bba4779866382a2318a89fd18644a294aa77ac7567eb64e0c4f0f54a250fe54abbf2
7
- data.tar.gz: 7b4740f35c9ffd7f19e9795ca29a129cb7fd0c58209ab90b7d7a867bdb72f061ae7a1615a55dd664b0348bb373699e5798e2553cbb7f0f4b72b693f263673b88
6
+ metadata.gz: d6b4b50dec4fc436bced3ccb91622f648d1a003ed6b9957fff62e6af919d45574679dd60e8cb43701e19eede3d47e0df48ea1ff4e992af713c5601dcb4a31ba6
7
+ data.tar.gz: 7544d0f76fc6937c8c45a5e4df7131fb9cfe6245f609c9e9ba1a03a3eddf339db7c7a51849f2d4fb80ac119855359885e48e51d111f78137d396772a66c095e2
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1073
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.
@@ -1624,6 +1648,30 @@ module TencentCloud
1624
1648
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1625
1649
  end
1626
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
+
1627
1675
  # 列出 Grafana 所有告警通道
1628
1676
 
1629
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: 实例名
@@ -5604,6 +5671,46 @@ module TencentCloud
5604
5671
  end
5605
5672
  end
5606
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
+
5607
5714
  # DescribeGrafanaChannels请求参数结构体
5608
5715
  class DescribeGrafanaChannelsRequest < TencentCloud::Common::AbstractModel
5609
5716
  # @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.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-03 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