Class: TencentCloud::Monitor::V20180724::DescribeAlertRulesRequest

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

Overview

DescribeAlertRules请求参数结构体

Instance Attribute Summary collapse

  • #Limit ⇒ Object
  • 2=RuleEnabled
  • 3=RuleDisabled
  • .
  • #Offset ⇒ Object
  • 2=RuleEnabled
  • 3=RuleDisabled
  • .
  • #RuleId ⇒ Object
  • 2=RuleEnabled
  • 3=RuleDisabled
  • .
  • #RuleName ⇒ Object
  • 2=RuleEnabled
  • 3=RuleDisabled
  • .
  • #RuleState ⇒ Object
  • 2=RuleEnabled
  • 3=RuleDisabled
  • .
  • #Type ⇒ Object
  • 2=RuleEnabled
  • 3=RuleDisabled
  • .

    Instance Method Summary collapse

    Constructor Details

    #initialize(instanceid = nil, limit = nil, offset = nil, ruleid = nil, rulestate = nil, rulename = nil, type = nil) ⇒ DescribeAlertRulesRequest

    Returns a new instance of DescribeAlertRulesRequest.

    
    
    4948
    4949
    4950
    4951
    4952
    4953
    4954
    4955
    4956
    # File 'lib/v20180724/models.rb', line 4948
    
    def initialize(instanceid=nil, limit=nil, offset=nil, ruleid=nil, rulestate=nil, rulename=nil, type=nil)
      @InstanceId = instanceid
      @Limit = limit
      @Offset = offset
      @RuleId = ruleid
      @RuleState = rulestate
      @RuleName = rulename
      @Type = type
    end

    Instance Attribute Details

    #InstanceIdObject

  • 2=RuleEnabled
  • 3=RuleDisabled
  • Parameters:

    • InstanceId:

      Prometheus 实例 ID

    • Limit:

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

    • Offset:

      偏移量,默认为 0

    • RuleId:

      规则 ID

    • RuleState:

      规则状态码,取值如下:

    • RuleName:

      规则名称

    • Type:

      报警策略模板分类

    
    
    4946
    4947
    4948
    # File 'lib/v20180724/models.rb', line 4946
    
    def InstanceId
      @InstanceId
    end

    #LimitObject

  • 2=RuleEnabled
  • 3=RuleDisabled
  • Parameters:

    • InstanceId:

      Prometheus 实例 ID

    • Limit:

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

    • Offset:

      偏移量,默认为 0

    • RuleId:

      规则 ID

    • RuleState:

      规则状态码,取值如下:

    • RuleName:

      规则名称

    • Type:

      报警策略模板分类

    
    
    4946
    4947
    4948
    # File 'lib/v20180724/models.rb', line 4946
    
    def Limit
      @Limit
    end

    #OffsetObject

  • 2=RuleEnabled
  • 3=RuleDisabled
  • Parameters:

    • InstanceId:

      Prometheus 实例 ID

    • Limit:

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

    • Offset:

      偏移量,默认为 0

    • RuleId:

      规则 ID

    • RuleState:

      规则状态码,取值如下:

    • RuleName:

      规则名称

    • Type:

      报警策略模板分类

    
    
    4946
    4947
    4948
    # File 'lib/v20180724/models.rb', line 4946
    
    def Offset
      @Offset
    end

    #RuleIdObject

  • 2=RuleEnabled
  • 3=RuleDisabled
  • Parameters:

    • InstanceId:

      Prometheus 实例 ID

    • Limit:

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

    • Offset:

      偏移量,默认为 0

    • RuleId:

      规则 ID

    • RuleState:

      规则状态码,取值如下:

    • RuleName:

      规则名称

    • Type:

      报警策略模板分类

    
    
    4946
    4947
    4948
    # File 'lib/v20180724/models.rb', line 4946
    
    def RuleId
      @RuleId
    end

    #RuleNameObject

  • 2=RuleEnabled
  • 3=RuleDisabled
  • Parameters:

    • InstanceId:

      Prometheus 实例 ID

    • Limit:

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

    • Offset:

      偏移量,默认为 0

    • RuleId:

      规则 ID

    • RuleState:

      规则状态码,取值如下:

    • RuleName:

      规则名称

    • Type:

      报警策略模板分类

    
    
    4946
    4947
    4948
    # File 'lib/v20180724/models.rb', line 4946
    
    def RuleName
      @RuleName
    end

    #RuleStateObject

  • 2=RuleEnabled
  • 3=RuleDisabled
  • Parameters:

    • InstanceId:

      Prometheus 实例 ID

    • Limit:

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

    • Offset:

      偏移量,默认为 0

    • RuleId:

      规则 ID

    • RuleState:

      规则状态码,取值如下:

    • RuleName:

      规则名称

    • Type:

      报警策略模板分类

    
    
    4946
    4947
    4948
    # File 'lib/v20180724/models.rb', line 4946
    
    def RuleState
      @RuleState
    end

    #TypeObject

  • 2=RuleEnabled
  • 3=RuleDisabled
  • Parameters:

    • InstanceId:

      Prometheus 实例 ID

    • Limit:

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

    • Offset:

      偏移量,默认为 0

    • RuleId:

      规则 ID

    • RuleState:

      规则状态码,取值如下:

    • RuleName:

      规则名称

    • Type:

      报警策略模板分类

    
    
    4946
    4947
    4948
    # File 'lib/v20180724/models.rb', line 4946
    
    def Type
      @Type
    end

    Instance Method Details

    #deserialize(params) ⇒ Object

    
    
    4958
    4959
    4960
    4961
    4962
    4963
    4964
    4965
    4966
    # File 'lib/v20180724/models.rb', line 4958
    
    def deserialize(params)
      @InstanceId = params['InstanceId']
      @Limit = params['Limit']
      @Offset = params['Offset']
      @RuleId = params['RuleId']
      @RuleState = params['RuleState']
      @RuleName = params['RuleName']
      @Type = params['Type']
    end