public static final class AlertNoticeDispatchService.AlertInfo extends Object
AlertNoticeDispatchService.AlertInfo
class encapsulates all information about a single
alert for a single outbound Notification
.Constructor and Description |
---|
AlertInfo(AlertHistoryEntity history)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
AlertDefinitionEntity |
getAlertDefinition()
Gets the alert definition for this alert.
|
int |
getAlertDefinitionHash()
Gets the hash of alert definition entity.
|
Long |
getAlertDefinitionId()
Gets the definition id of the alert.
|
String |
getAlertName()
Gets the descriptive name of the alert.
|
AlertState |
getAlertState()
Gets the state of the alert.
|
String |
getAlertText()
Gets the text of the alert.
|
long |
getAlertTimestamp()
Gets the time that the alert was received
|
String |
getComponentName()
Gets the service component name, or
null if none. |
String |
getHostName()
Gets the host name or
null if none. |
String |
getServiceName()
Gets the service name or
null if none. |
boolean |
hasComponentName()
Gets whether there is a component associated with an alert.
|
boolean |
hasHostName()
Gets whether there is a host associated with the alert.
|
public AlertInfo(AlertHistoryEntity history)
history
- public String getHostName()
null
if none.public boolean hasHostName()
public String getServiceName()
null
if none.public String getComponentName()
null
if none.public boolean hasComponentName()
public long getAlertTimestamp()
public AlertState getAlertState()
public Long getAlertDefinitionId()
public int getAlertDefinitionHash()
public String getAlertName()
public AlertDefinitionEntity getAlertDefinition()
public String getAlertText()
Copyright © 2022 Apache Software Foundation. All rights reserved.