Class: TencentCloud::Tke::V20180525::CreatePrometheusGlobalNotificationRequest

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

Overview

CreatePrometheusGlobalNotification请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(instanceid = nil, notification = nil) ⇒ CreatePrometheusGlobalNotificationRequest

Returns a new instance of CreatePrometheusGlobalNotificationRequest.



3572
3573
3574
3575
# File 'lib/v20180525/models.rb', line 3572

def initialize(instanceid=nil, notification=nil)
  @InstanceId = instanceid
  @Notification = notification
end

Instance Attribute Details

#InstanceIdObject

Parameters:

  • InstanceId:

    实例ID

  • Notification:

    告警通知渠道



3570
3571
3572
# File 'lib/v20180525/models.rb', line 3570

def InstanceId
  @InstanceId
end

#NotificationObject

Parameters:

  • InstanceId:

    实例ID

  • Notification:

    告警通知渠道



3570
3571
3572
# File 'lib/v20180525/models.rb', line 3570

def Notification
  @Notification
end

Instance Method Details

#deserialize(params) ⇒ Object



3577
3578
3579
3580
3581
3582
3583
# File 'lib/v20180525/models.rb', line 3577

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