|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MeasurementDataManagerLocal
A manager for MeasurementDatas.
| Method Summary | |
|---|---|
void |
addNumericData(java.util.Set<MeasurementDataNumeric> data)
|
void |
addTraitData(java.util.Set<MeasurementDataTrait> data)
|
java.util.List<MeasurementDataTrait> |
findCurrentTraitsForResource(Subject subject,
int resourceId,
DisplayType displayType)
|
java.util.List<java.util.List<MeasurementDataNumericHighLowComposite>> |
findDataForAutoGroup(Subject subject,
int autoGroupParentResourceId,
int autoGroupChildResourceTypeId,
int measurementDefinitionId,
long beginTime,
long endTime,
int numberOfDataPoints,
boolean aggregateOverAutoGroup)
Returns a list of numeric data point lists for the given auto group - one per specified measurement definition. |
java.util.List<java.util.List<MeasurementDataNumericHighLowComposite>> |
findDataForCompatibleGroup(Subject subject,
int groupId,
int definitionId,
long beginTime,
long endTime,
int numPoints,
boolean groupAggregateOnly)
Returns a list of numeric data point lists for the given compatible group - one per specified measurement definition. |
java.util.List<java.util.List<MeasurementDataNumericHighLowComposite>> |
findDataForResource(Subject subject,
int resourceId,
int[] definitionIds,
long beginTime,
long endTime,
int numPoints)
|
java.util.List<java.util.List<MeasurementDataNumericHighLowComposite>> |
findDataForSiblingResources(Subject subject,
int[] resourceIds,
int measurementDefinitionId,
long beginTime,
long endTime,
int numberOfdataPoints)
Returns a list of numeric data point lists for the given measurement definition - one per specified resource. |
java.util.Set<MeasurementData> |
findLiveData(Subject subject,
int resourceId,
int[] definitionIds)
Get live metrics for a given MeasurementSchedule |
java.util.Map<java.lang.Integer,java.util.List<MetricDisplaySummary>> |
findNarrowedMetricDisplaySummariesForCompatibleResources(Subject subject,
java.util.Collection<Resource> resources,
long beginTime,
long endTime)
Get the MetricDisplaySummarys for the resources passed in, that all need to be of the same
ResourceType. |
java.util.Map<java.lang.Integer,java.util.List<MetricDisplaySummary>> |
findNarrowedMetricDisplaySummariesForResourcesAndParent(Subject subject,
int resourceTypeId,
int parentId,
java.util.List<java.lang.Integer> resourceIds,
long begin,
long end)
Return a map of <resource id, List<MetricDisplaySummary>>, where the list contains the MetricDisplaySummary for the (enabled) schedules of the resource |
java.util.Map<java.lang.Integer,java.util.List<MetricDisplaySummary>> |
findNarrowedMetricsDisplaySummariesForAutoGroup(Subject subject,
int parentId,
int cType,
long beginTime,
long endTime)
|
java.util.Map<java.lang.Integer,java.util.List<MetricDisplaySummary>> |
findNarrowedMetricsDisplaySummariesForCompGroup(Subject subject,
ResourceGroup group,
long beginTime,
long endTime)
Get metric display summaries for the resources of the passed compatible group, where the MetricDisplaySummary only contains the metric name and number of alerts. |
java.util.List<MeasurementDataTrait> |
findTraits(Subject subject,
int resourceId,
int definitionId)
Return all known trait data for the passed schedule, defined by resourceId and definitionId |
MeasurementAggregate |
getAggregate(Subject subject,
int groupId,
int definitionId,
long startTime,
long endTime)
|
MeasurementAggregate |
getAggregate(Subject subject,
int scheduleId,
long startTime,
long endTime)
Get the aggregate values of the numerical values for a given schedule. |
MeasurementDataNumeric |
getCurrentNumericForSchedule(int scheduleId)
Return the current numeric value for the passed schedule |
MeasurementDataTrait |
getCurrentTraitForSchedule(int scheduleId)
Return the current trait value for the passed schedule |
void |
mergeMeasurementReport(MeasurementReport report)
|
int |
purgeTraits(long oldest)
|
| Method Detail |
|---|
int purgeTraits(long oldest)
void mergeMeasurementReport(MeasurementReport report)
void addNumericData(java.util.Set<MeasurementDataNumeric> data)
void addTraitData(java.util.Set<MeasurementDataTrait> data)
java.util.List<java.util.List<MeasurementDataNumericHighLowComposite>> findDataForSiblingResources(Subject subject,
int[] resourceIds,
int measurementDefinitionId,
long beginTime,
long endTime,
int numberOfdataPoints)
subject - resourceIds - measurementDefinitionId - measurement definition id for a numeric metric associated with the given sibling
resourcesbeginTime - endTime - numberOfdataPoints -
java.util.List<java.util.List<MeasurementDataNumericHighLowComposite>> findDataForAutoGroup(Subject subject,
int autoGroupParentResourceId,
int autoGroupChildResourceTypeId,
int measurementDefinitionId,
long beginTime,
long endTime,
int numberOfDataPoints,
boolean aggregateOverAutoGroup)
subject - autoGroupParentResourceId - autoGroupChildResourceTypeId - measurementDefinitionId - measurement definition id of numeric metrics associated with the given auto
groupbeginTime - endTime - numberOfDataPoints - aggregateOverAutoGroup - TODO
MeasurementDataTrait getCurrentTraitForSchedule(int scheduleId)
scheduleId - id of a MeasurementSchedule that 'points' to a Trait
MeasurementDataNumeric getCurrentNumericForSchedule(int scheduleId)
scheduleId - id of a MeasurementSchedule that 'points' to a MeasurementDataNumeric record
java.util.Map<java.lang.Integer,java.util.List<MetricDisplaySummary>> findNarrowedMetricsDisplaySummariesForCompGroup(Subject subject,
ResourceGroup group,
long beginTime,
long endTime)
MetricDisplaySummary only contains the metric name and number of alerts. All other fields
are not set.
subject - subject of the callergroup - compatible group
java.util.Map<java.lang.Integer,java.util.List<MetricDisplaySummary>> findNarrowedMetricDisplaySummariesForCompatibleResources(Subject subject,
java.util.Collection<Resource> resources,
long beginTime,
long endTime)
MetricDisplaySummarys for the resources passed in, that all need to be of the same
ResourceType. Summaries only contain a basic selection of fields for the purpose of filling the Child
resource popups.
java.util.Map<java.lang.Integer,java.util.List<MetricDisplaySummary>> findNarrowedMetricsDisplaySummariesForAutoGroup(Subject subject,
int parentId,
int cType,
long beginTime,
long endTime)
java.util.Map<java.lang.Integer,java.util.List<MetricDisplaySummary>> findNarrowedMetricDisplaySummariesForResourcesAndParent(Subject subject,
int resourceTypeId,
int parentId,
java.util.List<java.lang.Integer> resourceIds,
long begin,
long end)
MetricDisplaySummary for the (enabled) schedules of the resource
subject - Subject of the callerresourceTypeId - ResourceTypeId of the child resourcesparentId - ID of the common parent resourceresourceIds - List of primary keys of the resources we are interested inbegin - begin timeend - end time
MeasurementAggregate getAggregate(Subject subject,
int scheduleId,
long startTime,
long endTime)
subject - the user requesting the aggregatescheduleId - the id of the MeasurementSchedule for which this aggregate is being requestedstart - the start timeend - the end time
FetchException - if the schedule does not reference numerical data or if the user is not allowed to view
the Resource corresponding to this scheduleId
MeasurementAggregate getAggregate(Subject subject,
int groupId,
int definitionId,
long startTime,
long endTime)
java.util.List<MeasurementDataTrait> findTraits(Subject subject,
int resourceId,
int definitionId)
resourceId - PK of a ResourcedefinitionId - PK of a MeasurementDefinition
MeasurementDataTrait objects.
java.util.List<MeasurementDataTrait> findCurrentTraitsForResource(Subject subject,
int resourceId,
DisplayType displayType)
java.util.Set<MeasurementData> findLiveData(Subject subject,
int resourceId,
int[] definitionIds)
sched - MeasurementSchedule to obtain the data for
java.util.List<java.util.List<MeasurementDataNumericHighLowComposite>> findDataForCompatibleGroup(Subject subject,
int groupId,
int definitionId,
long beginTime,
long endTime,
int numPoints,
boolean groupAggregateOnly)
subject - compatibleGroupId - measurementDefinitionId - measurement definition id for numeric metric associated with the given compatible
groupbeginTime - endTime - numberOfDataPoints - aggregateOverGroup - TODO
java.util.List<java.util.List<MeasurementDataNumericHighLowComposite>> findDataForResource(Subject subject,
int resourceId,
int[] definitionIds,
long beginTime,
long endTime,
int numPoints)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||