Class: TencentCloud::Dbbrain::V20210527::UpdateMonitorSwitchRequest

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

Overview

UpdateMonitorSwitch请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(switch = nil, instanceid = nil, product = nil) ⇒ UpdateMonitorSwitchRequest

Returns a new instance of UpdateMonitorSwitchRequest.



7981
7982
7983
7984
7985
# File 'lib/v20210527/models.rb', line 7981

def initialize(switch=nil, instanceid=nil, product=nil)
  @Switch = switch
  @InstanceId = instanceid
  @Product = product
end

Instance Attribute Details

#InstanceIdObject

Parameters:

  • Switch:

    停止或重连Agent实例,支持值包括:"on" - 重连实例, "off" - 停止实例。

  • InstanceId:

    实例 ID。可通过 DescribeDiagDBInstances 接口获取。

  • Product:

    服务产品类型,仅支持 "dbbrain-mysql" - 自建MySQL。



7979
7980
7981
# File 'lib/v20210527/models.rb', line 7979

def InstanceId
  @InstanceId
end

#ProductObject

Parameters:

  • Switch:

    停止或重连Agent实例,支持值包括:"on" - 重连实例, "off" - 停止实例。

  • InstanceId:

    实例 ID。可通过 DescribeDiagDBInstances 接口获取。

  • Product:

    服务产品类型,仅支持 "dbbrain-mysql" - 自建MySQL。



7979
7980
7981
# File 'lib/v20210527/models.rb', line 7979

def Product
  @Product
end

#SwitchObject

Parameters:

  • Switch:

    停止或重连Agent实例,支持值包括:"on" - 重连实例, "off" - 停止实例。

  • InstanceId:

    实例 ID。可通过 DescribeDiagDBInstances 接口获取。

  • Product:

    服务产品类型,仅支持 "dbbrain-mysql" - 自建MySQL。



7979
7980
7981
# File 'lib/v20210527/models.rb', line 7979

def Switch
  @Switch
end

Instance Method Details

#deserialize(params) ⇒ Object



7987
7988
7989
7990
7991
# File 'lib/v20210527/models.rb', line 7987

def deserialize(params)
  @Switch = params['Switch']
  @InstanceId = params['InstanceId']
  @Product = params['Product']
end