Class: TencentCloud::Monitor::V20180724::ModifyPrometheusAgentExternalLabelsRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Monitor::V20180724::ModifyPrometheusAgentExternalLabelsRequest
- Defined in:
- lib/v20180724/models.rb
Overview
ModifyPrometheusAgentExternalLabels请求参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(instanceid = nil, clusterid = nil, externallabels = nil) ⇒ ModifyPrometheusAgentExternalLabelsRequest
constructor
A new instance of ModifyPrometheusAgentExternalLabelsRequest.
Constructor Details
#initialize(instanceid = nil, clusterid = nil, externallabels = nil) ⇒ ModifyPrometheusAgentExternalLabelsRequest
Returns a new instance of ModifyPrometheusAgentExternalLabelsRequest.
12014 12015 12016 12017 12018 |
# File 'lib/v20180724/models.rb', line 12014 def initialize(instanceid=nil, clusterid=nil, externallabels=nil) @InstanceId = instanceid @ClusterId = clusterid @ExternalLabels = externallabels end |
Instance Attribute Details
#ClusterId ⇒ Object
12012 12013 12014 |
# File 'lib/v20180724/models.rb', line 12012 def ClusterId @ClusterId end |
#ExternalLabels ⇒ Object
12012 12013 12014 |
# File 'lib/v20180724/models.rb', line 12012 def ExternalLabels @ExternalLabels end |
#InstanceId ⇒ Object
12012 12013 12014 |
# File 'lib/v20180724/models.rb', line 12012 def InstanceId @InstanceId end |
Instance Method Details
#deserialize(params) ⇒ Object
12020 12021 12022 12023 12024 12025 12026 12027 12028 12029 12030 12031 |
# File 'lib/v20180724/models.rb', line 12020 def deserialize(params) @InstanceId = params['InstanceId'] @ClusterId = params['ClusterId'] unless params['ExternalLabels'].nil? @ExternalLabels = [] params['ExternalLabels'].each do |i| label_tmp = Label.new label_tmp.deserialize(i) @ExternalLabels << label_tmp end end end |