Class: TencentCloud::Tke::V20180525::DescribePrometheusGlobalNotificationResponse

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

Overview

DescribePrometheusGlobalNotification返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(notification = nil, requestid = nil) ⇒ DescribePrometheusGlobalNotificationResponse

Returns a new instance of DescribePrometheusGlobalNotificationResponse.



9058
9059
9060
9061
# File 'lib/v20180525/models.rb', line 9058

def initialize(notification=nil, requestid=nil)
  @Notification = notification
  @RequestId = requestid
end

Instance Attribute Details

#NotificationObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Notification:

    全局告警通知渠道

  • RequestId:

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



9056
9057
9058
# File 'lib/v20180525/models.rb', line 9056

def Notification
  @Notification
end

#RequestIdObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Notification:

    全局告警通知渠道

  • RequestId:

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



9056
9057
9058
# File 'lib/v20180525/models.rb', line 9056

def RequestId
  @RequestId
end

Instance Method Details

#deserialize(params) ⇒ Object



9063
9064
9065
9066
9067
9068
9069
# File 'lib/v20180525/models.rb', line 9063

def deserialize(params)
  unless params['Notification'].nil?
    @Notification = PrometheusNotificationItem.new
    @Notification.deserialize(params['Notification'])
  end
  @RequestId = params['RequestId']
end