class Hawkular::Alerts::Trigger::GroupConditionsInfo
Representing of one GroupConditionsInfo
-
The
data_id_member_map
should be null if the group has no members. -
The
data_id_member_map
should be null if this is a [data-driven] group trigger. In this case the member triggers are removed and will be re-populated as incoming data demands. -
For [non-data-driven] group triggers with existing members the
data_id_member_map
is handled as follows. For members not included in the dataIdMemberMap their most recently supplied dataIdMap will be used. This means that it is not necessary to supply mappings if the new condition set uses only dataIds found in the old condition set. If the new conditions introduce new dataIds a full dataIdMemberMap must be supplied.
Attributes
conditions[RW]
data_id_member_map[RW]
Public Class Methods
new(conditions)
click to toggle source
# File lib/hawkular/alerts/alerts_api.rb 496 def initialize(conditions) 497 @conditions = conditions 498 @data_id_member_map = {} 499 end
Public Instance Methods
to_h()
click to toggle source
# File lib/hawkular/alerts/alerts_api.rb 501 def to_h 502 cond_hash = {} 503 cond_hash['conditions'] = [] 504 @conditions.each { |c| cond_hash['conditions'].push(c.to_h) } 505 cond_hash['dataIdMemberMap'] = @data_id_member_map 506 cond_hash 507 end