Class: TencentCloud::Tke::V20180525::DescribePrometheusAlertRuleRequest

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

Overview

DescribePrometheusAlertRule请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of DescribePrometheusAlertRuleRequest.



8760
8761
8762
8763
8764
8765
# File 'lib/v20180525/models.rb', line 8760

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:

    过滤



8758
8759
8760
# File 'lib/v20180525/models.rb', line 8758

def Filters
  @Filters
end

#InstanceIdObject

支持ID,Name

Parameters:

  • InstanceId:

    实例id

  • Offset:

    分页

  • Limit:

    分页

  • Filters:

    过滤



8758
8759
8760
# File 'lib/v20180525/models.rb', line 8758

def InstanceId
  @InstanceId
end

#LimitObject

支持ID,Name

Parameters:

  • InstanceId:

    实例id

  • Offset:

    分页

  • Limit:

    分页

  • Filters:

    过滤



8758
8759
8760
# File 'lib/v20180525/models.rb', line 8758

def Limit
  @Limit
end

#OffsetObject

支持ID,Name

Parameters:

  • InstanceId:

    实例id

  • Offset:

    分页

  • Limit:

    分页

  • Filters:

    过滤



8758
8759
8760
# File 'lib/v20180525/models.rb', line 8758

def Offset
  @Offset
end

Instance Method Details

#deserialize(params) ⇒ Object



8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
# File 'lib/v20180525/models.rb', line 8767

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