public class AlertManagerBean extends Object implements AlertManagerLocal, AlertManagerRemote
| Constructor and Description |
|---|
AlertManagerBean() |
| Modifier and Type | Method and Description |
|---|---|
int |
acknowledgeAlerts(org.rhq.core.domain.auth.Subject subject,
int[] alertIds)
Acknowledge alert(s) so that administrators know who is working on remedying the underlying
condition(s) that caused the alert(s) in the first place.
|
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[] alertIds)
Remove the alerts with the specified id's.
|
int |
deleteAlertsByContext(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.common.EntityContext context)
Requires Manage Settings permission.
|
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[] resourceIds,
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)
This is the core of the alert sending process.
|
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
|
public int deleteAlerts(org.rhq.core.domain.auth.Subject user,
int[] alertIds)
AlertManagerLocaldeleteAlerts in interface AlertManagerLocaldeleteAlerts in interface AlertManagerRemoteuser - calleralertIds - primary keys of the alerts to deletepublic int acknowledgeAlerts(org.rhq.core.domain.auth.Subject subject,
int[] alertIds)
acknowledgeAlerts in interface AlertManagerLocalacknowledgeAlerts in interface AlertManagerRemotesubject - calling useralertIds - PKs of the alerts to acknowledgepublic int deleteAlertsByContext(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.common.EntityContext context)
AlertManagerRemotedeleteAlertsByContext in interface AlertManagerLocaldeleteAlertsByContext in interface AlertManagerRemotepublic int acknowledgeAlertsByContext(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.common.EntityContext context)
acknowledgeAlertsByContext in interface AlertManagerLocalacknowledgeAlertsByContext in interface AlertManagerRemotepublic int getAlertCountByMeasurementDefinitionId(Integer measurementDefinitionId, long begin, long end)
getAlertCountByMeasurementDefinitionId in interface AlertManagerLocalpublic int getAlertCountByMeasurementDefinitionAndResources(int measurementDefinitionId,
int[] resourceIds,
long beginDate,
long endDate)
getAlertCountByMeasurementDefinitionAndResources in interface AlertManagerLocalpublic int getAlertCountByMeasurementDefinitionAndResourceGroup(int measurementDefinitionId,
int groupId,
long beginDate,
long endDate)
getAlertCountByMeasurementDefinitionAndResourceGroup in interface AlertManagerLocalpublic int getAlertCountByMeasurementDefinitionAndAutoGroup(int measurementDefinitionId,
int resourceParentId,
int resourceTypeId,
long beginDate,
long endDate)
getAlertCountByMeasurementDefinitionAndAutoGroup in interface AlertManagerLocalpublic int getAlertCountByMeasurementDefinitionAndResource(int measurementDefinitionId,
int resourceId,
long beginDate,
long endDate)
getAlertCountByMeasurementDefinitionAndResource in interface AlertManagerLocalpublic Map<Integer,Integer> getAlertCountForSchedules(long begin, long end, List<Integer> scheduleIds)
getAlertCountForSchedules in interface AlertManagerLocalpublic org.rhq.core.domain.alert.Alert fireAlert(int alertDefinitionId)
fireAlert in interface AlertManagerLocalpublic void sendAlertNotificationsNSTx(org.rhq.core.domain.alert.Alert alert)
sendAlertNotificationsNSTx in interface AlertManagerLocalalert - the fired alertpublic void addNotificationLog(int alertId,
org.rhq.core.domain.alert.notification.AlertNotificationLog notificationLog)
addNotificationLog in interface AlertManagerLocalpublic AlertSenderPluginManager getAlertPluginManager()
getAlertPluginManager in interface AlertManagerLocalpublic Collection<String> sendAlertNotificationEmails(org.rhq.core.domain.alert.Alert alert, Collection<String> emailAddresses)
sendAlertNotificationEmails in interface AlertManagerLocalpublic String prettyPrintAlertConditions(org.rhq.core.domain.alert.Alert alert, boolean shortVersion)
prettyPrintAlertConditions in interface AlertManagerLocalalert - Alert to create human readable condition descriptionshortVersion - if true the messages printed are abbreviated to save spacepublic String prettyPrintAlertURL(org.rhq.core.domain.alert.Alert alert)
prettyPrintAlertURL in interface AlertManagerLocalpublic boolean willDefinitionBeDisabled(org.rhq.core.domain.alert.Alert alert)
willDefinitionBeDisabled in interface AlertManagerLocalalert - alert to checkpublic 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)
findAlertsByCriteria in interface AlertManagerLocalfindAlertsByCriteria in interface AlertManagerRemoteCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.