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 |
addEvents(Collection<Event> events) |
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 |
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(Data data) |
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 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(Data data) throws Exception
sendData in interface AlertsServiceExceptionpublic void sendData(Collection<Data> data) throws Exception
sendData in interface AlertsServiceExceptionpublic void addEvents(Collection<Event> events) throws Exception
addEvents in interface AlertsServiceExceptionCopyright © 2015–2016 Red Hat, Inc.. All rights reserved.