public class CassAlertsServiceImpl extends Object implements AlertsService
AlertsService.| Constructor and Description |
|---|
CassAlertsServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
ackAlerts(String tenantId,
Collection<String> alertIds,
String ackBy,
String ackNotes) |
void |
addAlerts(Collection<Alert> alerts) |
void |
addAlertTags(String tenantId,
Collection<String> alertIds,
Map<String,String> tags) |
void |
addEvents(Collection<Event> events) |
void |
addEventTags(String tenantId,
Collection<String> eventIds,
Map<String,String> tags) |
void |
addNote(String tenantId,
String alertId,
String user,
String text) |
int |
deleteAlerts(String tenantId,
AlertsCriteria criteria) |
int |
deleteEvents(String tenantId,
EventsCriteria criteria) |
Alert |
getAlert(String tenantId,
String alertId,
boolean thin) |
Page<Alert> |
getAlerts(String tenantId,
AlertsCriteria criteria,
Pager pager) |
Event |
getEvent(String tenantId,
String eventId,
boolean thin) |
Page<Event> |
getEvents(String tenantId,
EventsCriteria criteria,
Pager pager) |
void |
persistEvents(Collection<Event> events) |
void |
removeAlertTags(String tenantId,
Collection<String> alertIds,
Collection<String> tags) |
void |
removeEventTags(String tenantId,
Collection<String> eventIds,
Collection<String> tags) |
void |
resolveAlerts(String tenantId,
Collection<String> alertIds,
String resolvedBy,
String resolvedNotes,
List<Set<ConditionEval>> resolvedEvalSets) |
void |
resolveAlertsForTrigger(String tenantId,
String triggerId,
String resolvedBy,
String resolvedNotes,
List<Set<ConditionEval>> resolvedEvalSets) |
void |
sendData(Collection<Data> data) |
void |
sendData(Collection<Data> data,
boolean ignoreFiltering) |
void |
sendEvents(Collection<Event> events) |
void |
sendEvents(Collection<Event> events,
boolean ignoreFiltering) |
void |
setSession(com.datastax.driver.core.Session session) |
public void setSession(com.datastax.driver.core.Session session)
public void addAlerts(Collection<Alert> alerts) throws Exception
addAlerts in interface AlertsServiceExceptionpublic void persistEvents(Collection<Event> events) throws Exception
persistEvents in interface AlertsServiceExceptionpublic void addNote(String tenantId, String alertId, String user, String text) throws Exception
addNote in interface AlertsServiceExceptionpublic void addAlertTags(String tenantId, Collection<String> alertIds, Map<String,String> tags) throws Exception
addAlertTags in interface AlertsServiceExceptionpublic void addEventTags(String tenantId, Collection<String> eventIds, Map<String,String> tags) throws Exception
addEventTags in interface AlertsServiceExceptionpublic void removeAlertTags(String tenantId, Collection<String> alertIds, Collection<String> tags) throws Exception
removeAlertTags in interface AlertsServiceExceptionpublic void removeEventTags(String tenantId, Collection<String> eventIds, Collection<String> tags) throws Exception
removeEventTags in interface AlertsServiceExceptionpublic Alert getAlert(String tenantId, String alertId, boolean thin) throws Exception
getAlert in interface AlertsServiceExceptionpublic Event getEvent(String tenantId, String eventId, boolean thin) throws Exception
getEvent in interface AlertsServiceExceptionpublic Page<Alert> getAlerts(String tenantId, AlertsCriteria criteria, Pager pager) throws Exception
getAlerts in interface AlertsServiceExceptionpublic Page<Event> getEvents(String tenantId, EventsCriteria criteria, Pager pager) throws Exception
getEvents in interface AlertsServiceExceptionpublic void ackAlerts(String tenantId, Collection<String> alertIds, String ackBy, String ackNotes) throws Exception
ackAlerts in interface AlertsServiceExceptionpublic int deleteAlerts(String tenantId, AlertsCriteria criteria) throws Exception
deleteAlerts in interface AlertsServiceExceptionpublic int deleteEvents(String tenantId, EventsCriteria criteria) throws Exception
deleteEvents in interface AlertsServiceExceptionpublic void resolveAlerts(String tenantId, Collection<String> alertIds, String resolvedBy, String resolvedNotes, List<Set<ConditionEval>> resolvedEvalSets) throws Exception
resolveAlerts in interface AlertsServiceExceptionpublic void resolveAlertsForTrigger(String tenantId, String triggerId, String resolvedBy, String resolvedNotes, List<Set<ConditionEval>> resolvedEvalSets) throws Exception
resolveAlertsForTrigger in interface AlertsServiceExceptionpublic void sendData(Collection<Data> data) throws Exception
sendData in interface AlertsServiceExceptionpublic void sendData(Collection<Data> data, boolean ignoreFiltering) throws Exception
sendData in interface AlertsServiceExceptionpublic void addEvents(Collection<Event> events) throws Exception
addEvents in interface AlertsServiceExceptionpublic void sendEvents(Collection<Event> events) throws Exception
sendEvents in interface AlertsServiceExceptionpublic void sendEvents(Collection<Event> events, boolean ignoreFiltering) throws Exception
sendEvents in interface AlertsServiceExceptionCopyright © 2015–2017 Red Hat, Inc.. All rights reserved.