public class Alert extends Object
Modifier and Type | Field and Description |
---|---|
protected static int |
MAX_ALERT_TEXT_SIZE |
Constructor and Description |
---|
Alert() |
Alert(String alertName,
String alertInstance,
String serviceName,
String componentName,
String hostName,
AlertState alertState)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Long |
getClusterId() |
String |
getComponent() |
String |
getHostName() |
String |
getInstance() |
String |
getLabel() |
String |
getName() |
String |
getService() |
AlertState |
getState() |
String |
getText() |
long |
getTimestamp() |
String |
getUUID() |
int |
hashCode() |
void |
setClusterId(Long clusterId) |
void |
setComponent(String component) |
void |
setHostName(String hostName) |
void |
setInstance(String instance) |
void |
setLabel(String alertLabel) |
void |
setName(String name) |
void |
setService(String service) |
void |
setState(AlertState state) |
void |
setText(String alertText) |
void |
setTimestamp(long ts) |
void |
setUUID(String uuid) |
String |
toString() |
protected static final int MAX_ALERT_TEXT_SIZE
public Alert(String alertName, String alertInstance, String serviceName, String componentName, String hostName, AlertState alertState)
alertName
- the name of the alertalertInstance
- instance specific information in the event that two alert
types can be run, ie Flume.serviceName
- the servicecomponentName
- the componenthostName
- the hostalertState
- the state of the alertable eventpublic Alert()
public String getName()
public String getService()
public String getComponent()
public String getHostName()
public AlertState getState()
public String getLabel()
public void setLabel(String alertLabel)
alertLabel
- a short descriptive label for the alertpublic String getText()
public void setText(String alertText)
alertText
- detail text about the alertpublic String getInstance()
public void setInstance(String instance)
public void setName(String name)
public void setService(String service)
public void setComponent(String component)
public void setHostName(String hostName)
public void setState(AlertState state)
public void setTimestamp(long ts)
public long getTimestamp()
public Long getClusterId()
public void setClusterId(Long clusterId)
public String getUUID()
public void setUUID(String uuid)
Copyright © 2022 Apache Software Foundation. All rights reserved.