Class: TencentCloud::Tke::V20180525::CreatePrometheusAlertPolicyResponse

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

Overview

CreatePrometheusAlertPolicy返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of CreatePrometheusAlertPolicyResponse.



3274
3275
3276
3277
# File 'lib/v20180525/models.rb', line 3274

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

Instance Attribute Details

#IdObject

Parameters:

  • Id:

    告警id

  • RequestId:

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



3272
3273
3274
# File 'lib/v20180525/models.rb', line 3272

def Id
  @Id
end

#RequestIdObject

Parameters:

  • Id:

    告警id

  • RequestId:

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



3272
3273
3274
# File 'lib/v20180525/models.rb', line 3272

def RequestId
  @RequestId
end

Instance Method Details

#deserialize(params) ⇒ Object



3279
3280
3281
3282
# File 'lib/v20180525/models.rb', line 3279

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