Package hudson.model
Class MultiStageTimeSeries
java.lang.Object
hudson.model.MultiStageTimeSeries
- All Implemented Interfaces:
Serializable
Maintains several
TimeSeries
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:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Choose which datapoint to use.static class
Represents the trend chart that consists of severalMultiStageTimeSeries
. -
Field Summary
Modifier and TypeFieldDescriptionfinal Color
Used to render a line in the trend chart.final TimeSeries
Updated every 1 hour.final TimeSeries
Updated every 1 min.final TimeSeries
Updated every 10 seconds.final org.jvnet.localizer.Localizable
Name of this data series. -
Constructor Summary
ConstructorDescriptionMultiStageTimeSeries
(float initialValue, float decay) Deprecated.since 2009-04-05.MultiStageTimeSeries
(org.jvnet.localizer.Localizable title, Color color, float initialValue, float decay) -
Method Summary
Modifier and TypeMethodDescriptioncreateTrendChart
(MultiStageTimeSeries.TimeScale scale, MultiStageTimeSeries... data) getApi()
float
getLatest
(MultiStageTimeSeries.TimeScale timeScale) Gets the most up-to-date data point value.pick
(MultiStageTimeSeries.TimeScale timeScale) Selects aTimeSeries
.void
update
(float f) Call this method every 10 sec and supply a new data point.
-
Field Details
-
title
public final org.jvnet.localizer.Localizable titleName of this data series. -
color
Used to render a line in the trend chart. -
sec10
Updated every 10 seconds. Keep data up to 6 hours. -
min
Updated every 1 min. Keep data up to 2 days. -
hour
Updated every 1 hour. Keep data up to 8 weeks.
-
-
Constructor Details
-
MultiStageTimeSeries
public MultiStageTimeSeries(org.jvnet.localizer.Localizable title, Color color, float initialValue, float decay) -
MultiStageTimeSeries
Deprecated.since 2009-04-05. UseMultiStageTimeSeries(Localizable, Color, float, float)
-
-
Method Details
-
update
public void update(float f) Call this method every 10 sec and supply a new data point. -
pick
Selects aTimeSeries
. -
getLatest
Gets the most up-to-date data point value. -
getApi
-
createTrendChart
public static MultiStageTimeSeries.TrendChart createTrendChart(MultiStageTimeSeries.TimeScale scale, MultiStageTimeSeries... data)
-