Class: TencentCloud::Mongodb::V20190725::ClientConnection

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

Overview

客户端连接信息,包括客户端IP和连接数

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ip = nil, count = nil, internalservice = nil) ⇒ ClientConnection

Returns a new instance of ClientConnection.



439
440
441
442
443
# File 'lib/v20190725/models.rb', line 439

def initialize(ip=nil, count=nil, internalservice=nil)
  @IP = ip
  @Count = count
  @InternalService = internalservice
end

Instance Attribute Details

#CountObject

Parameters:

  • IP:

    连接的客户端 IP。

  • Count:

    对应客户端 IP 的连接数。

  • InternalService:

    是否为内部 IP。



437
438
439
# File 'lib/v20190725/models.rb', line 437

def Count
  @Count
end

#InternalServiceObject

Parameters:

  • IP:

    连接的客户端 IP。

  • Count:

    对应客户端 IP 的连接数。

  • InternalService:

    是否为内部 IP。



437
438
439
# File 'lib/v20190725/models.rb', line 437

def InternalService
  @InternalService
end

#IPObject

Parameters:

  • IP:

    连接的客户端 IP。

  • Count:

    对应客户端 IP 的连接数。

  • InternalService:

    是否为内部 IP。



437
438
439
# File 'lib/v20190725/models.rb', line 437

def IP
  @IP
end

Instance Method Details

#deserialize(params) ⇒ Object



445
446
447
448
449
# File 'lib/v20190725/models.rb', line 445

def deserialize(params)
  @IP = params['IP']
  @Count = params['Count']
  @InternalService = params['InternalService']
end