|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MeasurementBaselineManagerLocal
A manager for MeasurementBaselines.
| Method Summary | |
|---|---|
int |
_calculateAutoBaselinesDELETE(long olderThanTime)
Deletes baselines that are older than the time specified |
int |
_calculateAutoBaselinesINSERT(long amountOfData)
Inserts baselines "as appropriate" for measurements that have at least amountOfData |
MeasurementBaseline |
calculateAutoBaseline(Subject subject,
java.lang.Integer measurementScheduleId,
long startDate,
long endDate,
boolean save)
Calculate a baseline value for the given metric based on the specified date range, optionally setting the metric's baseline to the calculated value. |
MeasurementBaseline |
calculateAutoBaseline(Subject subject,
int groupId,
int definitionId,
long startDate,
long endDate,
boolean save)
|
void |
calculateAutoBaselines()
This is the entry point which calls out to all other *calculateAutoBaselines* methods seen in this interface. |
long |
calculateAutoBaselines(long amountOfData,
long olderThanTime)
Calculates baselines for all scheduled measurements. |
void |
enableAutoBaselineCalculation(Subject subject,
java.lang.Integer[] resourceIds,
java.lang.Integer[] definitionIds)
Unset the user-entered property in baselines so that we can
do autobaselines on it again. |
MeasurementBaseline |
findBaselineForResourceAndMeasurementDefinition(Subject subject,
java.lang.Integer resource,
java.lang.Integer measurementDefinitionId)
Returns the baseline for a measurement identified by its measurement definition and the resource whose measurement it is. |
java.util.List<MeasurementBaseline> |
findBaselinesForResource(Subject subject,
int resourceId)
Return a list of MeasurementBaseline objects for the Resource represented by the given id. |
MeasurementBaseline |
getBaselineIfEqual(Subject subject,
int groupId,
int definitionId)
|
| Method Detail |
|---|
void calculateAutoBaselines()
long calculateAutoBaselines(long amountOfData,
long olderThanTime)
amountOfData - will use amountOfData to compute new min/max/mean for baselines as appropriateolderThanTime - deletes baselines older than the time specified
int _calculateAutoBaselinesDELETE(long olderThanTime)
throws java.lang.Exception
olderThanTime - deletes baselines older than the time specified
java.lang.Exception
int _calculateAutoBaselinesINSERT(long amountOfData)
throws java.lang.Exception
amountOfData - will use amountOfData to compute new min/max/mean for baselines as appropriate
java.lang.Exception
MeasurementBaseline getBaselineIfEqual(Subject subject,
int groupId,
int definitionId)
MeasurementBaseline calculateAutoBaseline(Subject subject,
java.lang.Integer measurementScheduleId,
long startDate,
long endDate,
boolean save)
throws BaselineCreationException,
MeasurementNotFoundException
subject - measurementScheduleId - measurement id to recalc.startDate - begin date rangeendDate - end date rangesave - whether or not to save the recalculated baseline
BaselineCreationException
MeasurementNotFoundException
MeasurementBaseline calculateAutoBaseline(Subject subject,
int groupId,
int definitionId,
long startDate,
long endDate,
boolean save)
throws BaselineCreationException,
MeasurementNotFoundException
BaselineCreationException
MeasurementNotFoundException
void enableAutoBaselineCalculation(Subject subject,
java.lang.Integer[] resourceIds,
java.lang.Integer[] definitionIds)
user-entered property in baselines so that we can
do autobaselines on it again.
subject - resourceIds - definitionIds - measurement definition IDs
MeasurementBaseline findBaselineForResourceAndMeasurementDefinition(Subject subject,
java.lang.Integer resource,
java.lang.Integer measurementDefinitionId)
subject - resource - measurementDefinitionId -
java.util.List<MeasurementBaseline> findBaselinesForResource(Subject subject,
int resourceId)
MeasurementBaseline objects for the Resource represented by the given id.
subject - the user request to view the baseline history for the given resourceresourceId - the id of the resource whose baselines are to be returned
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||