Class: TencentCloud::Monitor::V20180724::DescribePrometheusTargetsTMPRequest

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

Overview

DescribePrometheusTargetsTMP请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(instanceid = nil, clusterid = nil, clustertype = nil, filters = nil, offset = nil, limit = nil) ⇒ DescribePrometheusTargetsTMPRequest

Returns a new instance of DescribePrometheusTargetsTMPRequest.



9233
9234
9235
9236
9237
9238
9239
9240
# File 'lib/v20180724/models.rb', line 9233

def initialize(instanceid=nil, clusterid=nil, clustertype=nil, filters=nil, offset=nil, limit=nil)
  @InstanceId = instanceid
  @ClusterId = clusterid
  @ClusterType = clustertype
  @Filters = filters
  @Offset = offset
  @Limit = limit
end

Instance Attribute Details

#ClusterIdObject

集成中心填 non-cluster

Parameters:

  • InstanceId:

    实例id

  • ClusterId:

    集成容器服务填绑定的集群id;

  • ClusterType:

    集群类型(可不填)

  • Filters:

    过滤条件,支持Name=ServiceMonitor/PodMonitor/Probe/RawJob/Job, Value为采集配置名称;Name=Health, Value=up, down, unknown;Name=EndPoint, Value为EndPoint地址

  • Offset:

    targets分页偏移量,默认为0

  • Limit:

    targets返回数量,默认为20,最大值200



9231
9232
9233
# File 'lib/v20180724/models.rb', line 9231

def ClusterId
  @ClusterId
end

#ClusterTypeObject

集成中心填 non-cluster

Parameters:

  • InstanceId:

    实例id

  • ClusterId:

    集成容器服务填绑定的集群id;

  • ClusterType:

    集群类型(可不填)

  • Filters:

    过滤条件,支持Name=ServiceMonitor/PodMonitor/Probe/RawJob/Job, Value为采集配置名称;Name=Health, Value=up, down, unknown;Name=EndPoint, Value为EndPoint地址

  • Offset:

    targets分页偏移量,默认为0

  • Limit:

    targets返回数量,默认为20,最大值200



9231
9232
9233
# File 'lib/v20180724/models.rb', line 9231

def ClusterType
  @ClusterType
end

#FiltersObject

集成中心填 non-cluster

Parameters:

  • InstanceId:

    实例id

  • ClusterId:

    集成容器服务填绑定的集群id;

  • ClusterType:

    集群类型(可不填)

  • Filters:

    过滤条件,支持Name=ServiceMonitor/PodMonitor/Probe/RawJob/Job, Value为采集配置名称;Name=Health, Value=up, down, unknown;Name=EndPoint, Value为EndPoint地址

  • Offset:

    targets分页偏移量,默认为0

  • Limit:

    targets返回数量,默认为20,最大值200



9231
9232
9233
# File 'lib/v20180724/models.rb', line 9231

def Filters
  @Filters
end

#InstanceIdObject

集成中心填 non-cluster

Parameters:

  • InstanceId:

    实例id

  • ClusterId:

    集成容器服务填绑定的集群id;

  • ClusterType:

    集群类型(可不填)

  • Filters:

    过滤条件,支持Name=ServiceMonitor/PodMonitor/Probe/RawJob/Job, Value为采集配置名称;Name=Health, Value=up, down, unknown;Name=EndPoint, Value为EndPoint地址

  • Offset:

    targets分页偏移量,默认为0

  • Limit:

    targets返回数量,默认为20,最大值200



9231
9232
9233
# File 'lib/v20180724/models.rb', line 9231

def InstanceId
  @InstanceId
end

#LimitObject

集成中心填 non-cluster

Parameters:

  • InstanceId:

    实例id

  • ClusterId:

    集成容器服务填绑定的集群id;

  • ClusterType:

    集群类型(可不填)

  • Filters:

    过滤条件,支持Name=ServiceMonitor/PodMonitor/Probe/RawJob/Job, Value为采集配置名称;Name=Health, Value=up, down, unknown;Name=EndPoint, Value为EndPoint地址

  • Offset:

    targets分页偏移量,默认为0

  • Limit:

    targets返回数量,默认为20,最大值200



9231
9232
9233
# File 'lib/v20180724/models.rb', line 9231

def Limit
  @Limit
end

#OffsetObject

集成中心填 non-cluster

Parameters:

  • InstanceId:

    实例id

  • ClusterId:

    集成容器服务填绑定的集群id;

  • ClusterType:

    集群类型(可不填)

  • Filters:

    过滤条件,支持Name=ServiceMonitor/PodMonitor/Probe/RawJob/Job, Value为采集配置名称;Name=Health, Value=up, down, unknown;Name=EndPoint, Value为EndPoint地址

  • Offset:

    targets分页偏移量,默认为0

  • Limit:

    targets返回数量,默认为20,最大值200



9231
9232
9233
# File 'lib/v20180724/models.rb', line 9231

def Offset
  @Offset
end

Instance Method Details

#deserialize(params) ⇒ Object



9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
# File 'lib/v20180724/models.rb', line 9242

def deserialize(params)
  @InstanceId = params['InstanceId']
  @ClusterId = params['ClusterId']
  @ClusterType = params['ClusterType']
  unless params['Filters'].nil?
    @Filters = []
    params['Filters'].each do |i|
      filter_tmp = Filter.new
      filter_tmp.deserialize(i)
      @Filters << filter_tmp
    end
  end
  @Offset = params['Offset']
  @Limit = params['Limit']
end