Class: TencentCloud::Dbbrain::V20210527::Process

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

Overview

实时会话详情。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id = nil, address = nil, filedescriptor = nil, name = nil, lastcommand = nil, age = nil, idle = nil, proxyid = nil) ⇒ Process

Returns a new instance of Process.



6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
# File 'lib/v20210527/models.rb', line 6570

def initialize(id=nil, address=nil, filedescriptor=nil, name=nil, lastcommand=nil, age=nil, idle=nil, proxyid=nil)
  @Id = id
  @Address = address
  @FileDescriptor = filedescriptor
  @Name = name
  @LastCommand = lastcommand
  @Age = age
  @Idle = idle
  @ProxyId = proxyid
end

Instance Attribute Details

#AddressObject

格式:IP:Port

Parameters:

  • Id:

    会话 ID。

  • Address:

    访问来源,IP 地址和端口号。

  • FileDescriptor:

    文件描述符。

  • Name:

    会话名称,使用 CLIENT SETNAME 命令设置。

  • LastCommand:

    最后一次执行的命令。

  • Age:

    会话存活时间,单位:秒。

  • Idle:

    最后一次执行命令后空闲的时间,单位:秒。

  • ProxyId:

    会话所属的 Proxy节点 ID。



6568
6569
6570
# File 'lib/v20210527/models.rb', line 6568

def Address
  @Address
end

#AgeObject

格式:IP:Port

Parameters:

  • Id:

    会话 ID。

  • Address:

    访问来源,IP 地址和端口号。

  • FileDescriptor:

    文件描述符。

  • Name:

    会话名称,使用 CLIENT SETNAME 命令设置。

  • LastCommand:

    最后一次执行的命令。

  • Age:

    会话存活时间,单位:秒。

  • Idle:

    最后一次执行命令后空闲的时间,单位:秒。

  • ProxyId:

    会话所属的 Proxy节点 ID。



6568
6569
6570
# File 'lib/v20210527/models.rb', line 6568

def Age
  @Age
end

#FileDescriptorObject

格式:IP:Port

Parameters:

  • Id:

    会话 ID。

  • Address:

    访问来源,IP 地址和端口号。

  • FileDescriptor:

    文件描述符。

  • Name:

    会话名称,使用 CLIENT SETNAME 命令设置。

  • LastCommand:

    最后一次执行的命令。

  • Age:

    会话存活时间,单位:秒。

  • Idle:

    最后一次执行命令后空闲的时间,单位:秒。

  • ProxyId:

    会话所属的 Proxy节点 ID。



6568
6569
6570
# File 'lib/v20210527/models.rb', line 6568

def FileDescriptor
  @FileDescriptor
end

#IdObject

格式:IP:Port

Parameters:

  • Id:

    会话 ID。

  • Address:

    访问来源,IP 地址和端口号。

  • FileDescriptor:

    文件描述符。

  • Name:

    会话名称,使用 CLIENT SETNAME 命令设置。

  • LastCommand:

    最后一次执行的命令。

  • Age:

    会话存活时间,单位:秒。

  • Idle:

    最后一次执行命令后空闲的时间,单位:秒。

  • ProxyId:

    会话所属的 Proxy节点 ID。



6568
6569
6570
# File 'lib/v20210527/models.rb', line 6568

def Id
  @Id
end

#IdleObject

格式:IP:Port

Parameters:

  • Id:

    会话 ID。

  • Address:

    访问来源,IP 地址和端口号。

  • FileDescriptor:

    文件描述符。

  • Name:

    会话名称,使用 CLIENT SETNAME 命令设置。

  • LastCommand:

    最后一次执行的命令。

  • Age:

    会话存活时间,单位:秒。

  • Idle:

    最后一次执行命令后空闲的时间,单位:秒。

  • ProxyId:

    会话所属的 Proxy节点 ID。



6568
6569
6570
# File 'lib/v20210527/models.rb', line 6568

def Idle
  @Idle
end

#LastCommandObject

格式:IP:Port

Parameters:

  • Id:

    会话 ID。

  • Address:

    访问来源,IP 地址和端口号。

  • FileDescriptor:

    文件描述符。

  • Name:

    会话名称,使用 CLIENT SETNAME 命令设置。

  • LastCommand:

    最后一次执行的命令。

  • Age:

    会话存活时间,单位:秒。

  • Idle:

    最后一次执行命令后空闲的时间,单位:秒。

  • ProxyId:

    会话所属的 Proxy节点 ID。



6568
6569
6570
# File 'lib/v20210527/models.rb', line 6568

def LastCommand
  @LastCommand
end

#NameObject

格式:IP:Port

Parameters:

  • Id:

    会话 ID。

  • Address:

    访问来源,IP 地址和端口号。

  • FileDescriptor:

    文件描述符。

  • Name:

    会话名称,使用 CLIENT SETNAME 命令设置。

  • LastCommand:

    最后一次执行的命令。

  • Age:

    会话存活时间,单位:秒。

  • Idle:

    最后一次执行命令后空闲的时间,单位:秒。

  • ProxyId:

    会话所属的 Proxy节点 ID。



6568
6569
6570
# File 'lib/v20210527/models.rb', line 6568

def Name
  @Name
end

#ProxyIdObject

格式:IP:Port

Parameters:

  • Id:

    会话 ID。

  • Address:

    访问来源,IP 地址和端口号。

  • FileDescriptor:

    文件描述符。

  • Name:

    会话名称,使用 CLIENT SETNAME 命令设置。

  • LastCommand:

    最后一次执行的命令。

  • Age:

    会话存活时间,单位:秒。

  • Idle:

    最后一次执行命令后空闲的时间,单位:秒。

  • ProxyId:

    会话所属的 Proxy节点 ID。



6568
6569
6570
# File 'lib/v20210527/models.rb', line 6568

def ProxyId
  @ProxyId
end

Instance Method Details

#deserialize(params) ⇒ Object



6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
# File 'lib/v20210527/models.rb', line 6581

def deserialize(params)
  @Id = params['Id']
  @Address = params['Address']
  @FileDescriptor = params['FileDescriptor']
  @Name = params['Name']
  @LastCommand = params['LastCommand']
  @Age = params['Age']
  @Idle = params['Idle']
  @ProxyId = params['ProxyId']
end