Class: TencentCloud::Tke::V20180525::CreatePrometheusAlertRuleResponse

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

Overview

CreatePrometheusAlertRule返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id = nil, requestid = nil) ⇒ CreatePrometheusAlertRuleResponse

Returns a new instance of CreatePrometheusAlertRuleResponse.



3317
3318
3319
3320
# File 'lib/v20180525/models.rb', line 3317

def initialize(id=nil, requestid=nil)
  @Id = id
  @RequestId = requestid
end

Instance Attribute Details

#IdObject

Parameters:

  • Id:

    告警id

  • RequestId:

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



3315
3316
3317
# File 'lib/v20180525/models.rb', line 3315

def Id
  @Id
end

#RequestIdObject

Parameters:

  • Id:

    告警id

  • RequestId:

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



3315
3316
3317
# File 'lib/v20180525/models.rb', line 3315

def RequestId
  @RequestId
end

Instance Method Details

#deserialize(params) ⇒ Object



3322
3323
3324
3325
# File 'lib/v20180525/models.rb', line 3322

def deserialize(params)
  @Id = params['Id']
  @RequestId = params['RequestId']
end