Class: TencentCloud::Tke::V20180525::DescribePrometheusAlertPolicyRequest

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

Overview

DescribePrometheusAlertPolicy请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(instanceid = nil, offset = nil, limit = nil, filters = nil) ⇒ DescribePrometheusAlertPolicyRequest

Returns a new instance of DescribePrometheusAlertPolicyRequest.



8692
8693
8694
8695
8696
8697
# File 'lib/v20180525/models.rb', line 8692

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

Instance Attribute Details

#FiltersObject

支持ID,Name

Parameters:

  • InstanceId:

    实例id

  • Offset:

    分页

  • Limit:

    分页

  • Filters:

    过滤



8690
8691
8692
# File 'lib/v20180525/models.rb', line 8690

def Filters
  @Filters
end

#InstanceIdObject

支持ID,Name

Parameters:

  • InstanceId:

    实例id

  • Offset:

    分页

  • Limit:

    分页

  • Filters:

    过滤



8690
8691
8692
# File 'lib/v20180525/models.rb', line 8690

def InstanceId
  @InstanceId
end

#LimitObject

支持ID,Name

Parameters:

  • InstanceId:

    实例id

  • Offset:

    分页

  • Limit:

    分页

  • Filters:

    过滤



8690
8691
8692
# File 'lib/v20180525/models.rb', line 8690

def Limit
  @Limit
end

#OffsetObject

支持ID,Name

Parameters:

  • InstanceId:

    实例id

  • Offset:

    分页

  • Limit:

    分页

  • Filters:

    过滤



8690
8691
8692
# File 'lib/v20180525/models.rb', line 8690

def Offset
  @Offset
end

Instance Method Details

#deserialize(params) ⇒ Object



8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
# File 'lib/v20180525/models.rb', line 8699

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