|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AlertManagerLocal
| Method Summary | |
|---|---|
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)
|
org.rhq.core.domain.alert.Alert |
createAlert(org.rhq.core.domain.alert.Alert alert)
|
int |
deleteAlerts(long beginTime,
long endTime)
|
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)
|
void |
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 |
sendAlertNotifications(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 |
| Method Detail |
|---|
org.rhq.core.domain.alert.Alert createAlert(org.rhq.core.domain.alert.Alert alert)
int deleteAlerts(long beginTime,
long endTime)
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)
void fireAlert(int alertDefinitionId)
void sendAlertNotifications(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()
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 space
boolean willDefinitionBeDisabled(org.rhq.core.domain.alert.Alert alert)
alert - alert to check
Collection<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 ack
int deleteAlerts(org.rhq.core.domain.auth.Subject user,
int[] ids)
user - callerids - primary keys of the alerts to delete
int 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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||