Class: TencentCloud::Waf::V20180125::GetAttackHistogramResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Waf::V20180125::GetAttackHistogramResponse
- Defined in:
- lib/v20180125/models.rb
Overview
GetAttackHistogram返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(data = nil, period = nil, totalcount = nil, requestid = nil) ⇒ GetAttackHistogramResponse
constructor
A new instance of GetAttackHistogramResponse.
Constructor Details
#initialize(data = nil, period = nil, totalcount = nil, requestid = nil) ⇒ GetAttackHistogramResponse
Returns a new instance of GetAttackHistogramResponse.
7922 7923 7924 7925 7926 7927 |
# File 'lib/v20180125/models.rb', line 7922 def initialize(data=nil, period=nil, totalcount=nil, requestid=nil) @Data = data @Period = period @TotalCount = totalcount @RequestId = requestid end |
Instance Attribute Details
#Data ⇒ Object
7920 7921 7922 |
# File 'lib/v20180125/models.rb', line 7920 def Data @Data end |
#Period ⇒ Object
7920 7921 7922 |
# File 'lib/v20180125/models.rb', line 7920 def Period @Period end |
#RequestId ⇒ Object
7920 7921 7922 |
# File 'lib/v20180125/models.rb', line 7920 def RequestId @RequestId end |
#TotalCount ⇒ Object
7920 7921 7922 |
# File 'lib/v20180125/models.rb', line 7920 def TotalCount @TotalCount end |
Instance Method Details
#deserialize(params) ⇒ Object
7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 |
# File 'lib/v20180125/models.rb', line 7929 def deserialize(params) unless params['Data'].nil? @Data = [] params['Data'].each do |i| loghistograminfo_tmp = LogHistogramInfo.new loghistograminfo_tmp.deserialize(i) @Data << loghistograminfo_tmp end end @Period = params['Period'] @TotalCount = params['TotalCount'] @RequestId = params['RequestId'] end |