Class: TencentCloud::Tke::V20180525::DescribePrometheusTargetsRequest

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20180525/models.rb

Overview

DescribePrometheusTargets请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#ClusterIdObject

Name=state Value=up, down, unknown

Parameters:

  • InstanceId:

    实例id

  • ClusterType:

    集群类型

  • ClusterId:

    集群id

  • Filters:

    过滤条件,当前支持



9407
9408
9409
# File 'lib/v20180525/models.rb', line 9407

def ClusterId
  @ClusterId
end

#ClusterTypeObject

Name=state Value=up, down, unknown

Parameters:

  • InstanceId:

    实例id

  • ClusterType:

    集群类型

  • ClusterId:

    集群id

  • Filters:

    过滤条件,当前支持



9407
9408
9409
# File 'lib/v20180525/models.rb', line 9407

def ClusterType
  @ClusterType
end

#FiltersObject

Name=state Value=up, down, unknown

Parameters:

  • InstanceId:

    实例id

  • ClusterType:

    集群类型

  • ClusterId:

    集群id

  • Filters:

    过滤条件,当前支持



9407
9408
9409
# File 'lib/v20180525/models.rb', line 9407

def Filters
  @Filters
end

#InstanceIdObject

Name=state Value=up, down, unknown

Parameters:

  • InstanceId:

    实例id

  • ClusterType:

    集群类型

  • ClusterId:

    集群id

  • Filters:

    过滤条件,当前支持



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