Class: TencentCloud::Monitor::V20180724::DescribeGrafanaNotificationChannelsResponse

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

Overview

DescribeGrafanaNotificationChannels返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(notificationchannelset = nil, requestid = nil) ⇒ DescribeGrafanaNotificationChannelsResponse

Returns a new instance of DescribeGrafanaNotificationChannelsResponse.



6175
6176
6177
6178
# File 'lib/v20180724/models.rb', line 6175

def initialize(notificationchannelset=nil, requestid=nil)
  @NotificationChannelSet = notificationchannelset
  @RequestId = requestid
end

Instance Attribute Details

#NotificationChannelSetObject

Parameters:

  • NotificationChannelSet:

    告警通道数组

  • RequestId:

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



6173
6174
6175
# File 'lib/v20180724/models.rb', line 6173

def NotificationChannelSet
  @NotificationChannelSet
end

#RequestIdObject

Parameters:

  • NotificationChannelSet:

    告警通道数组

  • RequestId:

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



6173
6174
6175
# File 'lib/v20180724/models.rb', line 6173

def RequestId
  @RequestId
end

Instance Method Details

#deserialize(params) ⇒ Object



6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
# File 'lib/v20180724/models.rb', line 6180

def deserialize(params)
  unless params['NotificationChannelSet'].nil?
    @NotificationChannelSet = []
    params['NotificationChannelSet'].each do |i|
      grafananotificationchannel_tmp = GrafanaNotificationChannel.new
      grafananotificationchannel_tmp.deserialize(i)
      @NotificationChannelSet << grafananotificationchannel_tmp
    end
  end
  @RequestId = params['RequestId']
end