org.rhq.enterprise.server.rest.domain
Class MetricAggregate

java.lang.Object
  extended by org.rhq.enterprise.server.rest.domain.MetricAggregate

public class MetricAggregate
extends Object

Raw data that could be used to draw a chart

Author:
Heiko W. Rupp

Nested Class Summary
static class MetricAggregate.DataPoint
           
 
Constructor Summary
MetricAggregate()
           
MetricAggregate(Integer scheduleId, double min, double avg, double max)
           
 
Method Summary
 void addDataPoint(MetricAggregate.DataPoint point)
           
 double getAvg()
           
 List<MetricAggregate.DataPoint> getDataPoints()
           
 double getMax()
           
 long getMaxTimeStamp()
           
 double getMin()
           
 long getMinTimeStamp()
           
 int getNumDataPoints()
           
 Integer getScheduleId()
           
 void setAvg(double avg)
           
 void setDataPoints(List<MetricAggregate.DataPoint> dataPoints)
           
 void setMax(double max)
           
 void setMaxTimeStamp(long maxTimeStamp)
           
 void setMin(double min)
           
 void setMinTimeStamp(long minTimeStamp)
           
 void setNumDataPoints(int numDataPoints)
           
 void setScheduleId(Integer scheduleId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetricAggregate

public MetricAggregate()

MetricAggregate

public MetricAggregate(Integer scheduleId,
                       double min,
                       double avg,
                       double max)
Method Detail

getDataPoints

public List<MetricAggregate.DataPoint> getDataPoints()

addDataPoint

public void addDataPoint(MetricAggregate.DataPoint point)

setDataPoints

public void setDataPoints(List<MetricAggregate.DataPoint> dataPoints)

getMin

public double getMin()

getAvg

public double getAvg()

getMax

public double getMax()

setMin

public void setMin(double min)

setAvg

public void setAvg(double avg)

setMax

public void setMax(double max)

getNumDataPoints

public int getNumDataPoints()

setNumDataPoints

public void setNumDataPoints(int numDataPoints)

getScheduleId

public Integer getScheduleId()

setScheduleId

public void setScheduleId(Integer scheduleId)

getMinTimeStamp

public long getMinTimeStamp()

setMinTimeStamp

public void setMinTimeStamp(long minTimeStamp)

getMaxTimeStamp

public long getMaxTimeStamp()

setMaxTimeStamp

public void setMaxTimeStamp(long maxTimeStamp)


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.