public class ApiEvent extends Object
Constructor and Description |
---|
ApiEvent() |
ApiEvent(String id,
Date timeOccurred,
Date timeReceived,
ApiEventCategory category,
ApiEventSeverity severity,
String content,
boolean alert,
Map<String,List<String>> attrMap) |
Modifier and Type | Method and Description |
---|---|
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) |
public ApiEvent()
public ApiEvent(String id, Date timeOccurred, Date timeReceived, ApiEventCategory category, ApiEventSeverity severity, String content, boolean alert, Map<String,List<String>> attrMap)
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)
Copyright © Cloudera, Inc. Released under Apache License, Version 2.0.