Class: TencentCloud::Tke::V20180525::DescribePrometheusTargetsRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tke::V20180525::DescribePrometheusTargetsRequest
- Defined in:
- lib/v20180525/models.rb
Overview
DescribePrometheusTargets请求参数结构体
Instance Attribute Summary collapse
-
#ClusterId ⇒ Object
Name=state Value=up, down, unknown.
-
#ClusterType ⇒ Object
Name=state Value=up, down, unknown.
-
#Filters ⇒ Object
Name=state Value=up, down, unknown.
-
#InstanceId ⇒ Object
Name=state Value=up, down, unknown.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(instanceid = nil, clustertype = nil, clusterid = nil, filters = nil) ⇒ DescribePrometheusTargetsRequest
constructor
A new instance of DescribePrometheusTargetsRequest.
Constructor Details
#initialize(instanceid = nil, clustertype = nil, clusterid = nil, filters = nil) ⇒ DescribePrometheusTargetsRequest
Returns a new instance of DescribePrometheusTargetsRequest.
9409 9410 9411 9412 9413 9414 |
# File 'lib/v20180525/models.rb', line 9409 def initialize(instanceid=nil, clustertype=nil, clusterid=nil, filters=nil) @InstanceId = instanceid @ClusterType = clustertype @ClusterId = clusterid @Filters = filters end |
Instance Attribute Details
#ClusterId ⇒ Object
Name=state Value=up, down, unknown
9407 9408 9409 |
# File 'lib/v20180525/models.rb', line 9407 def ClusterId @ClusterId end |
#ClusterType ⇒ Object
Name=state Value=up, down, unknown
9407 9408 9409 |
# File 'lib/v20180525/models.rb', line 9407 def ClusterType @ClusterType end |
#Filters ⇒ Object
Name=state Value=up, down, unknown
9407 9408 9409 |
# File 'lib/v20180525/models.rb', line 9407 def Filters @Filters end |
#InstanceId ⇒ Object
Name=state Value=up, down, unknown
9407 9408 9409 |
# File 'lib/v20180525/models.rb', line 9407 def InstanceId @InstanceId end |
Instance Method Details
#deserialize(params) ⇒ Object
9416 9417 9418 9419 9420 9421 9422 9423 9424 9425 9426 9427 9428 |
# File 'lib/v20180525/models.rb', line 9416 def deserialize(params) @InstanceId = params['InstanceId'] @ClusterType = params['ClusterType'] @ClusterId = params['ClusterId'] unless params['Filters'].nil? @Filters = [] params['Filters'].each do |i| filter_tmp = Filter.new filter_tmp.deserialize(i) @Filters << filter_tmp end end end |