public class NotificationImpl extends PersistedImpl implements Notification
Notification.Severity, Notification.Type
fields, id
Modifier | Constructor and Description |
---|---|
|
NotificationImpl() |
protected |
NotificationImpl(Map<String,Object> fields) |
protected |
NotificationImpl(org.bson.types.ObjectId id,
Map<String,Object> fields) |
Modifier and Type | Method and Description |
---|---|
Notification |
addDetail(String key,
Object value) |
Notification |
addNode(Node node) |
Notification |
addNode(String nodeId) |
Notification |
addSeverity(Notification.Severity severity) |
Notification |
addTimestamp(org.joda.time.DateTime timestamp) |
Notification |
addType(Notification.Type type) |
Map<String,Object> |
asMap() |
Object |
getDetail(String key) |
Map<String,Validator> |
getEmbeddedValidations(String key) |
String |
getNodeId() |
Notification.Severity |
getSeverity() |
org.joda.time.DateTime |
getTimestamp() |
Notification.Type |
getType() |
Map<String,Validator> |
getValidations() |
equals, getFields, getId, getObjectId, hashCode, toString
public Notification addType(Notification.Type type)
addType
in interface Notification
public Notification addTimestamp(org.joda.time.DateTime timestamp)
addTimestamp
in interface Notification
public Notification addSeverity(Notification.Severity severity)
addSeverity
in interface Notification
public Notification addNode(Node node)
addNode
in interface Notification
public org.joda.time.DateTime getTimestamp()
getTimestamp
in interface Notification
public Notification.Type getType()
getType
in interface Notification
public Notification.Severity getSeverity()
getSeverity
in interface Notification
public String getNodeId()
getNodeId
in interface Notification
public Notification addDetail(String key, Object value)
addDetail
in interface Notification
public Object getDetail(String key)
getDetail
in interface Notification
public Map<String,Object> asMap()
asMap
in interface Notification
asMap
in interface Persisted
asMap
in class PersistedImpl
public Notification addNode(String nodeId)
addNode
in interface Notification
public Map<String,Validator> getValidations()
getValidations
in interface Persisted
Copyright © 2012-2015 Graylog, Inc.. All Rights Reserved.