|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.cloudera.api.model.ApiEvent
public class ApiEvent
Events model noteworthy incidents in Cloudera Manager or the managed Hadoop cluster. An event carries its event category, severity, and a string content. They also have generic attributes, which are free-form key value pairs. Important events may be promoted into alerts.
Constructor Summary | |
---|---|
ApiEvent()
|
|
ApiEvent(String id,
Date timeOccurred,
Date timeReceived,
ApiEventCategory category,
ApiEventSeverity severity,
String content,
boolean alert,
Map<String,List<String>> attrMap)
|
Method Summary | |
---|---|
boolean |
equals(Object o)
|
List<ApiEventAttribute> |
getAttributes()
A list of key-value attribute pairs. |
ApiEventCategory |
getCategory()
The category of this event -- whether it is a health event, an audit event, an activity event, etc. |
String |
getContent()
The content payload of this event. |
String |
getId()
A unique ID for this event. |
ApiEventSeverity |
getSeverity()
The severity of the event. |
Date |
getTimeOccurred()
When the event was generated. |
Date |
getTimeReceived()
When the event was stored by Cloudera Manager. |
int |
hashCode()
|
boolean |
isAlert()
Whether the event is promoted to an alert according to configuration. |
void |
setAlert(boolean alert)
|
void |
setAttributes(List<ApiEventAttribute> attributes)
|
void |
setCategory(ApiEventCategory category)
|
void |
setContent(String content)
|
void |
setId(String id)
|
void |
setSeverity(ApiEventSeverity severity)
|
void |
setTimeOccurred(Date timeOccurred)
|
void |
setTimeReceived(Date timeReceived)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ApiEvent()
public ApiEvent(String id, Date timeOccurred, Date timeReceived, ApiEventCategory category, ApiEventSeverity severity, String content, boolean alert, Map<String,List<String>> attrMap)
Method Detail |
---|
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String getId()
public void setId(String id)
public String getContent()
public void setContent(String content)
public Date getTimeOccurred()
public void setTimeOccurred(Date timeOccurred)
public Date getTimeReceived()
public void setTimeReceived(Date timeReceived)
public ApiEventCategory getCategory()
public void setCategory(ApiEventCategory category)
public ApiEventSeverity getSeverity()
public void setSeverity(ApiEventSeverity severity)
public boolean isAlert()
public void setAlert(boolean alert)
public List<ApiEventAttribute> getAttributes()
public void setAttributes(List<ApiEventAttribute> attributes)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |