Class: TencentCloud::Dbbrain::V20210527::DescribeSlowLogUserHostStatsResponse

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

Overview

DescribeSlowLogUserHostStats返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(totalcount = nil, items = nil, usernameitems = nil, usertotalcount = nil, requestid = nil) ⇒ DescribeSlowLogUserHostStatsResponse



4465
4466
4467
4468
4469
4470
4471
# File 'lib/v20210527/models.rb', line 4465

def initialize(totalcount=nil, items=nil, usernameitems=nil, usertotalcount=nil, requestid=nil)
  @TotalCount = totalcount
  @Items = items
  @UserNameItems = usernameitems
  @UserTotalCount = usertotalcount
  @RequestId = requestid
end

Instance Attribute Details

#ItemsObject



4463
4464
4465
# File 'lib/v20210527/models.rb', line 4463

def Items
  @Items
end

#RequestIdObject



4463
4464
4465
# File 'lib/v20210527/models.rb', line 4463

def RequestId
  @RequestId
end

#TotalCountObject



4463
4464
4465
# File 'lib/v20210527/models.rb', line 4463

def TotalCount
  @TotalCount
end

#UserNameItemsObject



4463
4464
4465
# File 'lib/v20210527/models.rb', line 4463

def UserNameItems
  @UserNameItems
end

#UserTotalCountObject



4463
4464
4465
# File 'lib/v20210527/models.rb', line 4463

def UserTotalCount
  @UserTotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
# File 'lib/v20210527/models.rb', line 4473

def deserialize(params)
  @TotalCount = params['TotalCount']
  unless params['Items'].nil?
    @Items = []
    params['Items'].each do |i|
      slowloghost_tmp = SlowLogHost.new
      slowloghost_tmp.deserialize(i)
      @Items << slowloghost_tmp
    end
  end
  unless params['UserNameItems'].nil?
    @UserNameItems = []
    params['UserNameItems'].each do |i|
      slowloguser_tmp = SlowLogUser.new
      slowloguser_tmp.deserialize(i)
      @UserNameItems << slowloguser_tmp
    end
  end
  @UserTotalCount = params['UserTotalCount']
  @RequestId = params['RequestId']
end