Class: TencentCloud::Monitor::V20180724::CreatePrometheusGlobalNotificationRequest

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20180724/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.



2821
2822
2823
2824
# File 'lib/v20180724/models.rb', line 2821

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

Instance Attribute Details

#InstanceIdObject

Parameters:

  • InstanceId:

    实例ID(可通过 DescribePrometheusInstances 接口获取)

  • Notification:

    告警通知渠道



2819
2820
2821
# File 'lib/v20180724/models.rb', line 2819

def InstanceId
  @InstanceId
end

#NotificationObject

Parameters:

  • InstanceId:

    实例ID(可通过 DescribePrometheusInstances 接口获取)

  • Notification:

    告警通知渠道



2819
2820
2821
# File 'lib/v20180724/models.rb', line 2819

def Notification
  @Notification
end

Instance Method Details

#deserialize(params) ⇒ Object



2826
2827
2828
2829
2830
2831
2832
# File 'lib/v20180724/models.rb', line 2826

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