Class Alert
java.lang.Object
com.thingworx.system.subsystems.alerts.data.Alert
Represents an alert that can be raised.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the definition currently describing this alert.getAttribute
(String parameterName) Gets the value of the specified attributeGets this alert's priority.hasAttribute
(String parameterName) Determines whether or not this alert has the specified attribute.Gets whether or not this alert is enabled.
-
Field Details
-
_logger
public static final org.slf4j.Logger _loggerthe logger
-
-
Constructor Details
-
Alert
public Alert()Initializes this instace with default values.
-
-
Method Details
-
getPriority
Gets this alert's priority.- Returns:
- this alert's priority
- See Also:
-
isEnabled
Gets whether or not this alert is enabled.- Returns:
- a non-null
Boolean
object that istrue
if this is alert is enabled, otherwisefalse
-
getAlertDefinition
Gets the definition currently describing this alert.- Returns:
- this alert's definition
-
hasAttribute
Determines whether or not this alert has the specified attribute.- Parameters:
parameterName
- the attribute name- Returns:
- a non-null
Boolean
object that istrue
if this alert has the specified attribute, otherwisefalse
-
getAttribute
Gets the value of the specified attribute- Parameters:
parameterName
- the name of the attribute- Returns:
- the value of the attribute, or
null
ifparameterName
does not identify an attribute on this alert
-