Class: TencentCloud::Ssa::V20180608::AlertListData

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

Overview

告警列表响应数据

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(total = nil, alertlist = nil, aggregations = nil) ⇒ AlertListData

Returns a new instance of AlertListData.



132
133
134
135
136
# File 'lib/v20180608/models.rb', line 132

def initialize(total=nil, alertlist=nil, aggregations=nil)
  @Total = total
  @AlertList = alertlist
  @Aggregations = aggregations
end

Instance Attribute Details

#AggregationsObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Total:

    总数

  • AlertList:

    返回列表

  • Aggregations:

    聚合参数



130
131
132
# File 'lib/v20180608/models.rb', line 130

def Aggregations
  @Aggregations
end

#AlertListObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Total:

    总数

  • AlertList:

    返回列表

  • Aggregations:

    聚合参数



130
131
132
# File 'lib/v20180608/models.rb', line 130

def AlertList
  @AlertList
end

#TotalObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Total:

    总数

  • AlertList:

    返回列表

  • Aggregations:

    聚合参数



130
131
132
# File 'lib/v20180608/models.rb', line 130

def Total
  @Total
end

Instance Method Details

#deserialize(params) ⇒ Object



138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
# File 'lib/v20180608/models.rb', line 138

def deserialize(params)
  @Total = params['Total']
  unless params['AlertList'].nil?
    @AlertList = []
    params['AlertList'].each do |i|
      alerttype_tmp = AlertType.new
      alerttype_tmp.deserialize(i)
      @AlertList << alerttype_tmp
    end
  end
  unless params['Aggregations'].nil?
    @Aggregations = AlertListAggregations.new
    @Aggregations.deserialize(params['Aggregations'])
  end
end