Class AlarmFilter
java.lang.Object
com.inductiveautomation.ignition.common.alarming.query.AbstractFilter<AlarmEvent>
com.inductiveautomation.ignition.common.alarming.AlarmFilter
- All Implemented Interfaces:
Condition<AlarmEvent>
,Filter<AlarmEvent>
,Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Field<AlarmEvent,
StringPath, PathCondition<StringPath>> static final Field<AlarmEvent,
Path[], DisplayThenSourceCondition> Filters on display path then falls back to the source path if the display path has not been set.static final Field<AlarmEvent,
Date, DateTimeCondition> static final Field<AlarmEvent,
String, StringCondition> static final int
If system events are included, setting this flag will also ensure that they are included in filtering, instead of the all or nothing approach.protected Flags
static final int
If set, system events will not be allowed.static final int
static final int
These are not-commonly-used flags for forcing how we query alarm status.static final int
Used for historical querying, indicates that the results should include associated data.static final int
If set, shelved events will be included in the result.static final int
If set, only system events will be allowed.static final int
Flag for determining whether to sort by event timestatic final int
For a particular source, only return the highest priority alarm.static final Field<AlarmEvent,
AlarmStateTransition, EnumCondition<AlarmStateTransition>> static final Field<AlarmEvent,
AlarmPriority, EnumCondition<AlarmPriority>> static final Field<AlarmEvent,
PropertySet, PropertyCondition> static final Field<AlarmEvent,
String, StringEnumCondition> static final Field<AlarmEvent,
QualifiedPath, PathCondition<QualifiedPath>> static final Field<AlarmEvent,
Path[], SourceOrDisplayCondition> Filters on either path OR display path.static final Field<AlarmEvent,
AlarmState, EnumCondition<AlarmState>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFlags()
Returns the flags for the filter, which are operation specific information that can be passed along.Used only for serializing the AlarmFilterboolean
passes
(AlarmEvent value) Returns whether the provided value passes the condition.protected void
setRawFlags
(Flags theFlags) Used only for deserializing the AlarmFilterMethods inherited from class com.inductiveautomation.ignition.common.alarming.query.AbstractFilter
addRawCondition, and, equals, getConditionFor, getRawConditions, hasConditionFor, hashCode, isOptimized, logCondition, markOptimized, removeCondition, resetOptimized, toString
-
Field Details
-
FLAG_INCLUDE_SHELVED
public static final int FLAG_INCLUDE_SHELVEDIf set, shelved events will be included in the result.- See Also:
-
HIGHEST_PRIO_ONLY
public static final int HIGHEST_PRIO_ONLYFor a particular source, only return the highest priority alarm.- See Also:
-
FLAG_INCLUDE_DATA
public static final int FLAG_INCLUDE_DATAUsed for historical querying, indicates that the results should include associated data.- See Also:
-
FLAG_EXCLUDE_SYS
public static final int FLAG_EXCLUDE_SYSIf set, system events will not be allowed.- See Also:
-
FLAG_ONLY_SYS
public static final int FLAG_ONLY_SYSIf set, only system events will be allowed.- See Also:
-
FILTER_SYS
public static final int FILTER_SYSIf system events are included, setting this flag will also ensure that they are included in filtering, instead of the all or nothing approach.- See Also:
-
FLAG_FORCE_TREE_STRATEGY
public static final int FLAG_FORCE_TREE_STRATEGYThese are not-commonly-used flags for forcing how we query alarm status.- See Also:
-
FLAG_FORCE_STATE_STRATEGY
public static final int FLAG_FORCE_STATE_STRATEGY- See Also:
-
FLAG_ORDER_BY_EVENT_TIME_ASC
public static final int FLAG_ORDER_BY_EVENT_TIME_ASCFlag for determining whether to sort by event time- See Also:
-
SOURCE
-
PROVIDER
-
DISPPATH
-
SOURCE_OR_DISPPATH
Filters on either path OR display path. -
DISPPATH_THEN_SOURCE
Filters on display path then falls back to the source path if the display path has not been set. -
PRIORITY
-
STATE
-
PROPS
-
EVENTTIME
-
EVENTUUID
-
LAST_STATE
public static final Field<AlarmEvent,AlarmStateTransition, LAST_STATEEnumCondition<AlarmStateTransition>> -
filterFlags
-
-
Constructor Details
-
AlarmFilter
public AlarmFilter()
-
-
Method Details
-
getFlags
Returns the flags for the filter, which are operation specific information that can be passed along. -
setRawFlags
Used only for deserializing the AlarmFilter -
passes
Description copied from interface:Condition
Returns whether the provided value passes the condition.- Specified by:
passes
in interfaceCondition<AlarmEvent>
- Overrides:
passes
in classAbstractFilter<AlarmEvent>
-
getLogger
- Specified by:
getLogger
in classAbstractFilter<AlarmEvent>
-
getSerializableConditions
Used only for serializing the AlarmFilter
-