public interface AlertManagerLocal
| Modifier and Type | Method and Description |
|---|---|
int |
acknowledgeAlerts(org.rhq.core.domain.auth.Subject user,
int[] alertIds)
Acknowledge the alerts (that got fired) so that admins know who is working
on fixing the situation.
|
int |
acknowledgeAlertsByContext(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.common.EntityContext context) |
void |
addNotificationLog(int alertId,
org.rhq.core.domain.alert.notification.AlertNotificationLog notificationLog) |
int |
deleteAlerts(org.rhq.core.domain.auth.Subject user,
int[] ids)
Remove the alerts with the specified id's.
|
int |
deleteAlertsByContext(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.common.EntityContext context) |
org.rhq.core.domain.util.PageList<org.rhq.core.domain.alert.Alert> |
findAlertsByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.AlertCriteria criteria) |
org.rhq.core.domain.alert.Alert |
fireAlert(int alertDefinitionId) |
int |
getAlertCountByMeasurementDefinitionAndAutoGroup(int measurementDefinitionId,
int resourceParentId,
int resourceTypeId,
long beginDate,
long endDate) |
int |
getAlertCountByMeasurementDefinitionAndResource(int measurementDefinitionId,
int resourceId,
long beginDate,
long endDate) |
int |
getAlertCountByMeasurementDefinitionAndResourceGroup(int measurementDefinitionId,
int groupId,
long beginDate,
long endDate) |
int |
getAlertCountByMeasurementDefinitionAndResources(int measurementDefinitionId,
int[] resources,
long beginDate,
long endDate) |
int |
getAlertCountByMeasurementDefinitionId(Integer measurementDefinitionId,
long begin,
long end) |
Map<Integer,Integer> |
getAlertCountForSchedules(long begin,
long end,
List<Integer> scheduleIds) |
AlertSenderPluginManager |
getAlertPluginManager()
Return the plugin manager that is managing alert sender plugins
|
String |
prettyPrintAlertConditions(org.rhq.core.domain.alert.Alert alert,
boolean shortVersion)
Create a human readable description of the conditions that led to this alert.
|
String |
prettyPrintAlertURL(org.rhq.core.domain.alert.Alert alert) |
Collection<String> |
sendAlertNotificationEmails(org.rhq.core.domain.alert.Alert alert,
Collection<String> emailAddresses) |
void |
sendAlertNotificationsNSTx(org.rhq.core.domain.alert.Alert alert) |
boolean |
willDefinitionBeDisabled(org.rhq.core.domain.alert.Alert alert)
Tells us if the definition of the passed alert will be disabled after this alert was fired
|
int getAlertCountByMeasurementDefinitionId(Integer measurementDefinitionId, long begin, long end)
int getAlertCountByMeasurementDefinitionAndResourceGroup(int measurementDefinitionId,
int groupId,
long beginDate,
long endDate)
int getAlertCountByMeasurementDefinitionAndAutoGroup(int measurementDefinitionId,
int resourceParentId,
int resourceTypeId,
long beginDate,
long endDate)
int getAlertCountByMeasurementDefinitionAndResource(int measurementDefinitionId,
int resourceId,
long beginDate,
long endDate)
org.rhq.core.domain.alert.Alert fireAlert(int alertDefinitionId)
void sendAlertNotificationsNSTx(org.rhq.core.domain.alert.Alert alert)
int getAlertCountByMeasurementDefinitionAndResources(int measurementDefinitionId,
int[] resources,
long beginDate,
long endDate)
Map<Integer,Integer> getAlertCountForSchedules(long begin, long end, List<Integer> scheduleIds)
AlertSenderPluginManager getAlertPluginManager()
void addNotificationLog(int alertId,
org.rhq.core.domain.alert.notification.AlertNotificationLog notificationLog)
String prettyPrintAlertConditions(org.rhq.core.domain.alert.Alert alert, boolean shortVersion)
alert - Alert to create human readable condition descriptionshortVersion - if true the messages printed are abbreviated to save spaceboolean willDefinitionBeDisabled(org.rhq.core.domain.alert.Alert alert)
alert - alert to checkCollection<String> sendAlertNotificationEmails(org.rhq.core.domain.alert.Alert alert, Collection<String> emailAddresses)
String prettyPrintAlertURL(org.rhq.core.domain.alert.Alert alert)
org.rhq.core.domain.util.PageList<org.rhq.core.domain.alert.Alert> findAlertsByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.AlertCriteria criteria)
int acknowledgeAlerts(org.rhq.core.domain.auth.Subject user,
int[] alertIds)
user - calling useralertIds - PKs of the alerts to ackint deleteAlerts(org.rhq.core.domain.auth.Subject user,
int[] ids)
user - callerids - primary keys of the alerts to deleteint deleteAlertsByContext(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.common.EntityContext context)
int acknowledgeAlertsByContext(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.common.EntityContext context)
Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.