tencentcloud-sdk-monitor 1.0.233 → 1.0.234
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20180724/client.rb +24 -0
- data/lib/v20180724/models.rb +75 -0
- 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: 4cb4674ebc061786ea4c1c0cf66d19d4b5fc1dac
|
4
|
+
data.tar.gz: 22a88b46447f7c21dbe9820a50dfa2fd26457acf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca0df7dcfb40aaa8fddac3d2b8e9b453b61470d0bc918dfec1451020c23398df93b750831a355b71060f82a72eed727eb1b6281aa40778987d0a644308238391
|
7
|
+
data.tar.gz: 7f04053ba10ec3ac235c31f04b35259135be1a5baa0481d239163a6428bc06abd188afd429a9db4a07c2a9fcf4c160201cb7cec1f601072466407e780cfa9169
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.234
|
data/lib/v20180724/client.rb
CHANGED
@@ -53,6 +53,30 @@ module TencentCloud
|
|
53
53
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
54
54
|
end
|
55
55
|
|
56
|
+
# 策略绑定标签
|
57
|
+
|
58
|
+
# @param request: Request instance for BindingPolicyTag.
|
59
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::BindingPolicyTagRequest`
|
60
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::BindingPolicyTagResponse`
|
61
|
+
def BindingPolicyTag(request)
|
62
|
+
body = send_request('BindingPolicyTag', request.serialize)
|
63
|
+
response = JSON.parse(body)
|
64
|
+
if response['Response'].key?('Error') == false
|
65
|
+
model = BindingPolicyTagResponse.new
|
66
|
+
model.deserialize(response['Response'])
|
67
|
+
model
|
68
|
+
else
|
69
|
+
code = response['Response']['Error']['Code']
|
70
|
+
message = response['Response']['Error']['Message']
|
71
|
+
reqid = response['Response']['RequestId']
|
72
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
73
|
+
end
|
74
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
75
|
+
raise e
|
76
|
+
rescue StandardError => e
|
77
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
78
|
+
end
|
79
|
+
|
56
80
|
# 创建通知模板
|
57
81
|
|
58
82
|
# @param request: Request instance for CreateAlarmNotice.
|
data/lib/v20180724/models.rb
CHANGED
@@ -733,6 +733,61 @@ module TencentCloud
|
|
733
733
|
end
|
734
734
|
end
|
735
735
|
|
736
|
+
# BindingPolicyTag请求参数结构体
|
737
|
+
class BindingPolicyTagRequest < TencentCloud::Common::AbstractModel
|
738
|
+
# @param Module: 固定取值 monitor
|
739
|
+
# @type Module: String
|
740
|
+
# @param PolicyId: 策略ID
|
741
|
+
# @type PolicyId: String
|
742
|
+
# @param GroupId: 用于实例、实例组绑定和解绑接口(BindingPolicyObject、UnBindingAllPolicyObject、UnBindingPolicyObject)的策略 ID
|
743
|
+
# @type GroupId: String
|
744
|
+
# @param Tag: 策略标签
|
745
|
+
# @type Tag: :class:`Tencentcloud::Monitor.v20180724.models.PolicyTag`
|
746
|
+
# @param ServiceType: 产品类型
|
747
|
+
# @type ServiceType: String
|
748
|
+
# @param InstanceGroupId: 实例分组ID
|
749
|
+
# @type InstanceGroupId: Integer
|
750
|
+
|
751
|
+
attr_accessor :Module, :PolicyId, :GroupId, :Tag, :ServiceType, :InstanceGroupId
|
752
|
+
|
753
|
+
def initialize(_module=nil, policyid=nil, groupid=nil, tag=nil, servicetype=nil, instancegroupid=nil)
|
754
|
+
@Module = _module
|
755
|
+
@PolicyId = policyid
|
756
|
+
@GroupId = groupid
|
757
|
+
@Tag = tag
|
758
|
+
@ServiceType = servicetype
|
759
|
+
@InstanceGroupId = instancegroupid
|
760
|
+
end
|
761
|
+
|
762
|
+
def deserialize(params)
|
763
|
+
@Module = params['Module']
|
764
|
+
@PolicyId = params['PolicyId']
|
765
|
+
@GroupId = params['GroupId']
|
766
|
+
unless params['Tag'].nil?
|
767
|
+
@Tag = PolicyTag.new
|
768
|
+
@Tag.deserialize(params['Tag'])
|
769
|
+
end
|
770
|
+
@ServiceType = params['ServiceType']
|
771
|
+
@InstanceGroupId = params['InstanceGroupId']
|
772
|
+
end
|
773
|
+
end
|
774
|
+
|
775
|
+
# BindingPolicyTag返回参数结构体
|
776
|
+
class BindingPolicyTagResponse < TencentCloud::Common::AbstractModel
|
777
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
778
|
+
# @type RequestId: String
|
779
|
+
|
780
|
+
attr_accessor :RequestId
|
781
|
+
|
782
|
+
def initialize(requestid=nil)
|
783
|
+
@RequestId = requestid
|
784
|
+
end
|
785
|
+
|
786
|
+
def deserialize(params)
|
787
|
+
@RequestId = params['RequestId']
|
788
|
+
end
|
789
|
+
end
|
790
|
+
|
736
791
|
# 统一的命名空间信息
|
737
792
|
class CommonNamespace < TencentCloud::Common::AbstractModel
|
738
793
|
# @param Id: 命名空间标示
|
@@ -5603,6 +5658,26 @@ module TencentCloud
|
|
5603
5658
|
end
|
5604
5659
|
end
|
5605
5660
|
|
5661
|
+
# 策略标签
|
5662
|
+
class PolicyTag < TencentCloud::Common::AbstractModel
|
5663
|
+
# @param Key: 标签Key
|
5664
|
+
# @type Key: String
|
5665
|
+
# @param Value: 标签Value
|
5666
|
+
# @type Value: String
|
5667
|
+
|
5668
|
+
attr_accessor :Key, :Value
|
5669
|
+
|
5670
|
+
def initialize(key=nil, value=nil)
|
5671
|
+
@Key = key
|
5672
|
+
@Value = value
|
5673
|
+
end
|
5674
|
+
|
5675
|
+
def deserialize(params)
|
5676
|
+
@Key = params['Key']
|
5677
|
+
@Value = params['Value']
|
5678
|
+
end
|
5679
|
+
end
|
5680
|
+
|
5606
5681
|
# 云监控支持的产品简要信息
|
5607
5682
|
class ProductSimple < TencentCloud::Common::AbstractModel
|
5608
5683
|
# @param Namespace: 命名空间
|
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: 1.0.
|
4
|
+
version: 1.0.234
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-12-
|
11
|
+
date: 2021-12-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|