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.



9865
9866
9867
9868
# File 'lib/v20180525/models.rb', line 9865

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

Instance Attribute Details

#NotificationObject

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

Parameters:

  • Notification:

    全局告警通知渠道

  • RequestId:

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



9863
9864
9865
# File 'lib/v20180525/models.rb', line 9863

def Notification
  @Notification
end

#RequestIdObject

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

Parameters:

  • Notification:

    全局告警通知渠道

  • RequestId:

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



9863
9864
9865
# File 'lib/v20180525/models.rb', line 9863

def RequestId
  @RequestId
end

Instance Method Details

#deserialize(params) ⇒ Object



9870
9871
9872
9873
9874
9875
9876
# File 'lib/v20180525/models.rb', line 9870

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