public interface MeasurementOOBManagerLocal
MeasurementOOBManagerBean| Modifier and Type | Method and Description |
|---|---|
int |
calculateOOB(AggregateNumericMetric metric,
org.rhq.core.domain.measurement.MeasurementBaseline baseline)
Determines and calculates an OOB if necessary, If an OOB is generated, this method
saves it to the database.
|
void |
computeOOBsForLastHour(org.rhq.core.domain.auth.Subject subject,
Iterable<AggregateNumericMetric> metrics)
Computes OOBs using the provided 1 hr data which should be the most recent 1 hr
aggregates.
|
void |
computeOOBsFromHourBeginingAt(org.rhq.core.domain.auth.Subject subject,
long begin)
Compute oobs from the values in the 1h measurement table that just got added.
|
void |
computeOOBsFromLastHour(org.rhq.core.domain.auth.Subject subject)
Computes the OOBs for the last hour.
|
org.rhq.core.domain.util.PageList<org.rhq.core.domain.measurement.composite.MeasurementOOBComposite> |
getHighestNOOBsForGroup(org.rhq.core.domain.auth.Subject subject,
int groupId,
int n)
Returns the highest n OOBs for the passed group id within the last 72h
|
org.rhq.core.domain.util.PageList<org.rhq.core.domain.measurement.composite.MeasurementOOBComposite> |
getHighestNOOBsForResource(org.rhq.core.domain.auth.Subject subject,
int resourceId,
int n)
Returns the highest n OOBs for the passed resource id within the last 72h
|
org.rhq.core.domain.util.PageList<org.rhq.core.domain.measurement.composite.MeasurementOOBComposite> |
getSchedulesWithOOBs(org.rhq.core.domain.auth.Subject subject,
String metricNameFilter,
String resourceNameFilter,
String parentNameFilter,
org.rhq.core.domain.util.PageControl pc)
Return OOB Composites that contain all information about the OOBs in a given time as aggregates.
|
void |
removeOOBsForGroupAndDefinition(org.rhq.core.domain.auth.Subject subject,
int resourceGroupId,
int measurementDefinitionId) |
void |
removeOOBsForSchedule(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.measurement.MeasurementSchedule sched)
Remove all OOB data for the passed schedule
|
void computeOOBsFromHourBeginingAt(org.rhq.core.domain.auth.Subject subject,
long begin)
subject - Subject of the callerbegin - Start time of the 1h entries to look atvoid computeOOBsForLastHour(org.rhq.core.domain.auth.Subject subject,
Iterable<AggregateNumericMetric> metrics)
subject - metrics - The most recent 1 hr aggregatesint calculateOOB(AggregateNumericMetric metric, org.rhq.core.domain.measurement.MeasurementBaseline baseline)
metric - The 1 hr metric that is used to determine whether or not an OOB should
be generatedorg.rhq.core.domain.util.PageList<org.rhq.core.domain.measurement.composite.MeasurementOOBComposite> getSchedulesWithOOBs(org.rhq.core.domain.auth.Subject subject,
String metricNameFilter,
String resourceNameFilter,
String parentNameFilter,
org.rhq.core.domain.util.PageControl pc)
subject - The callermetricNameFilter - resourceNameFilter - a resource name to filter forparentNameFilter - a parent resource name to filter for @return List of schedules with the corresponing oob aggregatespc - PageControl to do paginationvoid computeOOBsFromLastHour(org.rhq.core.domain.auth.Subject subject)
subject - callervoid removeOOBsForSchedule(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.measurement.MeasurementSchedule sched)
subject - Callersched - the schedule for which we want to clean out the datavoid removeOOBsForGroupAndDefinition(org.rhq.core.domain.auth.Subject subject,
int resourceGroupId,
int measurementDefinitionId)
org.rhq.core.domain.util.PageList<org.rhq.core.domain.measurement.composite.MeasurementOOBComposite> getHighestNOOBsForResource(org.rhq.core.domain.auth.Subject subject,
int resourceId,
int n)
subject - callerresourceId - the resource we are interested inn - max number of entries wantedorg.rhq.core.domain.util.PageList<org.rhq.core.domain.measurement.composite.MeasurementOOBComposite> getHighestNOOBsForGroup(org.rhq.core.domain.auth.Subject subject,
int groupId,
int n)
subject - callergroupId - the resource we are interested inn - max number of entries wantedCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.