Class: TencentCloud::Dbbrain::V20191016::MySqlProcess

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

Overview

关系型数据库线程

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id = nil, user = nil, host = nil, db = nil, state = nil, command = nil, time = nil, info = nil, sqltype = nil) ⇒ MySqlProcess

Returns a new instance of MySqlProcess.



2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
# File 'lib/v20191016/models.rb', line 2437

def initialize(id=nil, user=nil, host=nil, db=nil, state=nil, command=nil, time=nil, info=nil, sqltype=nil)
  @ID = id
  @User = user
  @Host = host
  @DB = db
  @State = state
  @Command = command
  @Time = time
  @Info = info
  @SqlType = sqltype
end

Instance Attribute Details

#CommandObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • ID:

    线程ID。

  • User:

    线程的操作账号名。

  • Host:

    线程的操作主机地址。

  • DB:

    线程的操作数据库。

  • State:

    线程的操作状态。

  • Command:

    线程的执行类型。

  • Time:

    线程的操作时长,单位秒。

  • Info:

    线程的操作语句。

  • SqlType:

    sql类型



2435
2436
2437
# File 'lib/v20191016/models.rb', line 2435

def Command
  @Command
end

#DBObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • ID:

    线程ID。

  • User:

    线程的操作账号名。

  • Host:

    线程的操作主机地址。

  • DB:

    线程的操作数据库。

  • State:

    线程的操作状态。

  • Command:

    线程的执行类型。

  • Time:

    线程的操作时长,单位秒。

  • Info:

    线程的操作语句。

  • SqlType:

    sql类型



2435
2436
2437
# File 'lib/v20191016/models.rb', line 2435

def DB
  @DB
end

#HostObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • ID:

    线程ID。

  • User:

    线程的操作账号名。

  • Host:

    线程的操作主机地址。

  • DB:

    线程的操作数据库。

  • State:

    线程的操作状态。

  • Command:

    线程的执行类型。

  • Time:

    线程的操作时长,单位秒。

  • Info:

    线程的操作语句。

  • SqlType:

    sql类型



2435
2436
2437
# File 'lib/v20191016/models.rb', line 2435

def Host
  @Host
end

#IDObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • ID:

    线程ID。

  • User:

    线程的操作账号名。

  • Host:

    线程的操作主机地址。

  • DB:

    线程的操作数据库。

  • State:

    线程的操作状态。

  • Command:

    线程的执行类型。

  • Time:

    线程的操作时长,单位秒。

  • Info:

    线程的操作语句。

  • SqlType:

    sql类型



2435
2436
2437
# File 'lib/v20191016/models.rb', line 2435

def ID
  @ID
end

#InfoObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • ID:

    线程ID。

  • User:

    线程的操作账号名。

  • Host:

    线程的操作主机地址。

  • DB:

    线程的操作数据库。

  • State:

    线程的操作状态。

  • Command:

    线程的执行类型。

  • Time:

    线程的操作时长,单位秒。

  • Info:

    线程的操作语句。

  • SqlType:

    sql类型



2435
2436
2437
# File 'lib/v20191016/models.rb', line 2435

def Info
  @Info
end

#SqlTypeObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • ID:

    线程ID。

  • User:

    线程的操作账号名。

  • Host:

    线程的操作主机地址。

  • DB:

    线程的操作数据库。

  • State:

    线程的操作状态。

  • Command:

    线程的执行类型。

  • Time:

    线程的操作时长,单位秒。

  • Info:

    线程的操作语句。

  • SqlType:

    sql类型



2435
2436
2437
# File 'lib/v20191016/models.rb', line 2435

def SqlType
  @SqlType
end

#StateObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • ID:

    线程ID。

  • User:

    线程的操作账号名。

  • Host:

    线程的操作主机地址。

  • DB:

    线程的操作数据库。

  • State:

    线程的操作状态。

  • Command:

    线程的执行类型。

  • Time:

    线程的操作时长,单位秒。

  • Info:

    线程的操作语句。

  • SqlType:

    sql类型



2435
2436
2437
# File 'lib/v20191016/models.rb', line 2435

def State
  @State
end

#TimeObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • ID:

    线程ID。

  • User:

    线程的操作账号名。

  • Host:

    线程的操作主机地址。

  • DB:

    线程的操作数据库。

  • State:

    线程的操作状态。

  • Command:

    线程的执行类型。

  • Time:

    线程的操作时长,单位秒。

  • Info:

    线程的操作语句。

  • SqlType:

    sql类型



2435
2436
2437
# File 'lib/v20191016/models.rb', line 2435

def Time
  @Time
end

#UserObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • ID:

    线程ID。

  • User:

    线程的操作账号名。

  • Host:

    线程的操作主机地址。

  • DB:

    线程的操作数据库。

  • State:

    线程的操作状态。

  • Command:

    线程的执行类型。

  • Time:

    线程的操作时长,单位秒。

  • Info:

    线程的操作语句。

  • SqlType:

    sql类型



2435
2436
2437
# File 'lib/v20191016/models.rb', line 2435

def User
  @User
end

Instance Method Details

#deserialize(params) ⇒ Object



2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
# File 'lib/v20191016/models.rb', line 2449

def deserialize(params)
  @ID = params['ID']
  @User = params['User']
  @Host = params['Host']
  @DB = params['DB']
  @State = params['State']
  @Command = params['Command']
  @Time = params['Time']
  @Info = params['Info']
  @SqlType = params['SqlType']
end