Package hudson.model
Class MultiStageTimeSeries
- java.lang.Object
-
- hudson.model.MultiStageTimeSeries
-
- All Implemented Interfaces:
Serializable
@ExportedBean public class MultiStageTimeSeries extends Object implements Serializable
Maintains severalTimeSeries
with different update frequencies to satisfy three goals; (1) retain data over long timespan, (2) save memory, and (3) retain accurate data for the recent past.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MultiStageTimeSeries.TimeScale
Choose which datapoint to use.static class
MultiStageTimeSeries.TrendChart
Represents the trend chart that consists of severalMultiStageTimeSeries
.
-
Field Summary
Fields Modifier and Type Field Description Color
color
Used to render a line in the trend chart.TimeSeries
hour
Updated every 1 hour.TimeSeries
min
Updated every 1 min.TimeSeries
sec10
Updated every 10 seconds.org.jvnet.localizer.Localizable
title
Name of this data series.
-
Constructor Summary
Constructors Constructor Description MultiStageTimeSeries(float initialValue, float decay)
Deprecated.since 2009-04-05.MultiStageTimeSeries(org.jvnet.localizer.Localizable title, Color color, float initialValue, float decay)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MultiStageTimeSeries.TrendChart
createTrendChart(MultiStageTimeSeries.TimeScale scale, MultiStageTimeSeries... data)
Api
getApi()
float
getLatest(MultiStageTimeSeries.TimeScale timeScale)
Gets the most up-to-date data point value.TimeSeries
pick(MultiStageTimeSeries.TimeScale timeScale)
Selects aTimeSeries
.void
update(float f)
Call this method every 10 sec and supply a new data point.
-
-
-
Field Detail
-
title
public final org.jvnet.localizer.Localizable title
Name of this data series.
-
color
public final Color color
Used to render a line in the trend chart.
-
sec10
@Exported public final TimeSeries sec10
Updated every 10 seconds. Keep data up to 6 hours.
-
min
@Exported public final TimeSeries min
Updated every 1 min. Keep data up to 2 days.
-
hour
@Exported public final TimeSeries hour
Updated every 1 hour. Keep data up to 8 weeks.
-
-
Constructor Detail
-
MultiStageTimeSeries
public MultiStageTimeSeries(org.jvnet.localizer.Localizable title, Color color, float initialValue, float decay)
-
MultiStageTimeSeries
@Deprecated public MultiStageTimeSeries(float initialValue, float decay)
Deprecated.since 2009-04-05. UseMultiStageTimeSeries(Localizable, Color, float, float)
-
-
Method Detail
-
update
public void update(float f)
Call this method every 10 sec and supply a new data point.
-
pick
public TimeSeries pick(MultiStageTimeSeries.TimeScale timeScale)
Selects aTimeSeries
.
-
getLatest
public float getLatest(MultiStageTimeSeries.TimeScale timeScale)
Gets the most up-to-date data point value.
-
getApi
public Api getApi()
-
createTrendChart
public static MultiStageTimeSeries.TrendChart createTrendChart(MultiStageTimeSeries.TimeScale scale, MultiStageTimeSeries... data)
-
-