Class: TencentCloud::Apm::V20210622::DescribeApmPrometheusRuleResponse

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

Overview

DescribeApmPrometheusRule返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(apmprometheusrules = nil, requestid = nil) ⇒ DescribeApmPrometheusRuleResponse

Returns a new instance of DescribeApmPrometheusRuleResponse.



1571
1572
1573
1574
# File 'lib/v20210622/models.rb', line 1571

def initialize(apmprometheusrules=nil, requestid=nil)
  @ApmPrometheusRules = apmprometheusrules
  @RequestId = requestid
end

Instance Attribute Details

#ApmPrometheusRulesObject

Parameters:

  • ApmPrometheusRules:

    指标匹配规则

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



1569
1570
1571
# File 'lib/v20210622/models.rb', line 1569

def ApmPrometheusRules
  @ApmPrometheusRules
end

#RequestIdObject

Parameters:

  • ApmPrometheusRules:

    指标匹配规则

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



1569
1570
1571
# File 'lib/v20210622/models.rb', line 1569

def RequestId
  @RequestId
end

Instance Method Details

#deserialize(params) ⇒ Object



1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
# File 'lib/v20210622/models.rb', line 1576

def deserialize(params)
  unless params['ApmPrometheusRules'].nil?
    @ApmPrometheusRules = []
    params['ApmPrometheusRules'].each do |i|
      apmprometheusrules_tmp = ApmPrometheusRules.new
      apmprometheusrules_tmp.deserialize(i)
      @ApmPrometheusRules << apmprometheusrules_tmp
    end
  end
  @RequestId = params['RequestId']
end