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
Returns a new instance of DescribeSlowLogUserHostStatsResponse.
4529 4530 4531 4532 4533 4534 4535 |
# File 'lib/v20210527/models.rb', line 4529 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
4527 4528 4529 |
# File 'lib/v20210527/models.rb', line 4527 def Items @Items end |
#RequestId ⇒ Object
4527 4528 4529 |
# File 'lib/v20210527/models.rb', line 4527 def RequestId @RequestId end |
#TotalCount ⇒ Object
4527 4528 4529 |
# File 'lib/v20210527/models.rb', line 4527 def TotalCount @TotalCount end |
#UserNameItems ⇒ Object
4527 4528 4529 |
# File 'lib/v20210527/models.rb', line 4527 def UserNameItems @UserNameItems end |
#UserTotalCount ⇒ Object
4527 4528 4529 |
# File 'lib/v20210527/models.rb', line 4527 def UserTotalCount @UserTotalCount end |
Instance Method Details
#deserialize(params) ⇒ Object
4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 |
# File 'lib/v20210527/models.rb', line 4537 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 |