Class: TencentCloud::Dbbrain::V20210527::KillMySqlThreadsRequest

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

Overview

KillMySqlThreads请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(instanceid = nil, stage = nil, threads = nil, sqlexecid = nil, product = nil, recordhistory = nil) ⇒ KillMySqlThreadsRequest

Returns a new instance of KillMySqlThreadsRequest.



5871
5872
5873
5874
5875
5876
5877
5878
# File 'lib/v20210527/models.rb', line 5871

def initialize(instanceid=nil, stage=nil, threads=nil, sqlexecid=nil, product=nil, recordhistory=nil)
  @InstanceId = instanceid
  @Stage = stage
  @Threads = threads
  @SqlExecId = sqlexecid
  @Product = product
  @RecordHistory = recordhistory
end

Instance Attribute Details

#InstanceIdObject

此参数用于Prepare阶段。

Parameters:

  • InstanceId:

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

  • Stage:

    kill会话任务的阶段,取值包括:"Prepare"-准备阶段,"Commit"-提交阶段。

  • Threads:

    需要kill的sql会话ID列表,通过接口查询实时线程列表

  • SqlExecId:

    执行ID,此参数用于Commit阶段。

  • Product:

    服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,默认为"mysql"。

  • RecordHistory:

    默认是true,会记录下kill的记录;该参数为true, 则在kill操作前校验目标会话是否存在,存在则继续kill,否则取消kill。为了加快kill速度,可设置为false。



5869
5870
5871
# File 'lib/v20210527/models.rb', line 5869

def InstanceId
  @InstanceId
end

#ProductObject

此参数用于Prepare阶段。

Parameters:

  • InstanceId:

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

  • Stage:

    kill会话任务的阶段,取值包括:"Prepare"-准备阶段,"Commit"-提交阶段。

  • Threads:

    需要kill的sql会话ID列表,通过接口查询实时线程列表

  • SqlExecId:

    执行ID,此参数用于Commit阶段。

  • Product:

    服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,默认为"mysql"。

  • RecordHistory:

    默认是true,会记录下kill的记录;该参数为true, 则在kill操作前校验目标会话是否存在,存在则继续kill,否则取消kill。为了加快kill速度,可设置为false。



5869
5870
5871
# File 'lib/v20210527/models.rb', line 5869

def Product
  @Product
end

#RecordHistoryObject

此参数用于Prepare阶段。

Parameters:

  • InstanceId:

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

  • Stage:

    kill会话任务的阶段,取值包括:"Prepare"-准备阶段,"Commit"-提交阶段。

  • Threads:

    需要kill的sql会话ID列表,通过接口查询实时线程列表

  • SqlExecId:

    执行ID,此参数用于Commit阶段。

  • Product:

    服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,默认为"mysql"。

  • RecordHistory:

    默认是true,会记录下kill的记录;该参数为true, 则在kill操作前校验目标会话是否存在,存在则继续kill,否则取消kill。为了加快kill速度,可设置为false。



5869
5870
5871
# File 'lib/v20210527/models.rb', line 5869

def RecordHistory
  @RecordHistory
end

#SqlExecIdObject

此参数用于Prepare阶段。

Parameters:

  • InstanceId:

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

  • Stage:

    kill会话任务的阶段,取值包括:"Prepare"-准备阶段,"Commit"-提交阶段。

  • Threads:

    需要kill的sql会话ID列表,通过接口查询实时线程列表

  • SqlExecId:

    执行ID,此参数用于Commit阶段。

  • Product:

    服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,默认为"mysql"。

  • RecordHistory:

    默认是true,会记录下kill的记录;该参数为true, 则在kill操作前校验目标会话是否存在,存在则继续kill,否则取消kill。为了加快kill速度,可设置为false。



5869
5870
5871
# File 'lib/v20210527/models.rb', line 5869

def SqlExecId
  @SqlExecId
end

#StageObject

此参数用于Prepare阶段。

Parameters:

  • InstanceId:

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

  • Stage:

    kill会话任务的阶段,取值包括:"Prepare"-准备阶段,"Commit"-提交阶段。

  • Threads:

    需要kill的sql会话ID列表,通过接口查询实时线程列表

  • SqlExecId:

    执行ID,此参数用于Commit阶段。

  • Product:

    服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,默认为"mysql"。

  • RecordHistory:

    默认是true,会记录下kill的记录;该参数为true, 则在kill操作前校验目标会话是否存在,存在则继续kill,否则取消kill。为了加快kill速度,可设置为false。



5869
5870
5871
# File 'lib/v20210527/models.rb', line 5869

def Stage
  @Stage
end

#ThreadsObject

此参数用于Prepare阶段。

Parameters:

  • InstanceId:

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

  • Stage:

    kill会话任务的阶段,取值包括:"Prepare"-准备阶段,"Commit"-提交阶段。

  • Threads:

    需要kill的sql会话ID列表,通过接口查询实时线程列表

  • SqlExecId:

    执行ID,此参数用于Commit阶段。

  • Product:

    服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,默认为"mysql"。

  • RecordHistory:

    默认是true,会记录下kill的记录;该参数为true, 则在kill操作前校验目标会话是否存在,存在则继续kill,否则取消kill。为了加快kill速度,可设置为false。



5869
5870
5871
# File 'lib/v20210527/models.rb', line 5869

def Threads
  @Threads
end

Instance Method Details

#deserialize(params) ⇒ Object



5880
5881
5882
5883
5884
5885
5886
5887
# File 'lib/v20210527/models.rb', line 5880

def deserialize(params)
  @InstanceId = params['InstanceId']
  @Stage = params['Stage']
  @Threads = params['Threads']
  @SqlExecId = params['SqlExecId']
  @Product = params['Product']
  @RecordHistory = params['RecordHistory']
end