Class: TencentCloud::Dbbrain::V20210527::DescribeSlowLogUserHostStatsResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Dbbrain::V20210527::DescribeSlowLogUserHostStatsResponse
- Defined in:
- lib/v20210527/models.rb
Overview
DescribeSlowLogUserHostStats返回参数结构体
Instance Attribute Summary collapse
- #Items ⇒ Object
- #RequestId ⇒ Object
- #TotalCount ⇒ Object
- #UserNameItems ⇒ Object
- #UserTotalCount ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(totalcount = nil, items = nil, usernameitems = nil, usertotalcount = nil, requestid = nil) ⇒ DescribeSlowLogUserHostStatsResponse
constructor
A new instance of DescribeSlowLogUserHostStatsResponse.
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
#Items ⇒ Object
4463 4464 4465 |
# File 'lib/v20210527/models.rb', line 4463 def Items @Items end |
#RequestId ⇒ Object
4463 4464 4465 |
# File 'lib/v20210527/models.rb', line 4463 def RequestId @RequestId end |
#TotalCount ⇒ Object
4463 4464 4465 |
# File 'lib/v20210527/models.rb', line 4463 def TotalCount @TotalCount end |
#UserNameItems ⇒ Object
4463 4464 4465 |
# File 'lib/v20210527/models.rb', line 4463 def UserNameItems @UserNameItems end |
#UserTotalCount ⇒ Object
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 |