Package jline.inference.lang
Class SampledMetric
-
- All Implemented Interfaces:
-
java.io.Serializable,jline.lang.Copyable
public final class SampledMetric implements Copyable
Observed data for a metric.
Represents observed measurement data that can be used for parameter inference. Supports both time-series format (periodic observations) and trace format (per-request observations).
-
-
Field Summary
Fields Modifier and Type Field Description private final ConditionEventcondprivate final SampledFormatformatprivate final MetricTypetypeprivate DoubleArraytprivate DoubleArraydataprivate final Nodenodeprivate final JobClassjobClass
-
Constructor Summary
Constructors Constructor Description SampledMetric(MetricType type, DoubleArray t, DoubleArray data, Node node, JobClass jobClass)
-
Method Summary
Modifier and Type Method Description final ConditionEventgetCond()conditioning event for conditional metrics final SampledFormatgetFormat()data format: TIMESERIES or TRACE final MetricTypegetType()the metric type (e.g. final DoubleArraygetT()timestamps for the observations final UnitsetT(DoubleArray t)timestamps for the observations final DoubleArraygetData()observed values corresponding to each timestamp final UnitsetData(DoubleArray data)observed values corresponding to each timestamp final NodegetNode()the network node where the observation was taken final JobClassgetJobClass()the job class for per-class metrics, or null for aggregate final UnitsetConditional(ConditionEvent event)Set a conditioning event on this metric. final UnitsetTrace()Switch the data format to trace (per-request). final BooleanisAggregate()Check if this metric applies to all classes (aggregate). final BooleanisConditional()Check if this metric has a conditioning event. final BooleanisTrace()Check if this metric is in trace format. <T extends Copyable> Tcopy()Creates a deep copy of this object using serialization. -
-
Constructor Detail
-
SampledMetric
SampledMetric(MetricType type, DoubleArray t, DoubleArray data, Node node, JobClass jobClass)
-
-
Method Detail
-
getCond
final ConditionEvent getCond()
conditioning event for conditional metrics
-
getFormat
final SampledFormat getFormat()
data format: TIMESERIES or TRACE
-
getType
final MetricType getType()
the metric type (e.g., ArvR, RespT, Util, QLen, Tput)
-
getT
final DoubleArray getT()
timestamps for the observations
-
setT
final Unit setT(DoubleArray t)
timestamps for the observations
-
getData
final DoubleArray getData()
observed values corresponding to each timestamp
-
setData
final Unit setData(DoubleArray data)
observed values corresponding to each timestamp
-
getJobClass
final JobClass getJobClass()
the job class for per-class metrics, or null for aggregate
-
setConditional
final Unit setConditional(ConditionEvent event)
Set a conditioning event on this metric.
-
isAggregate
final Boolean isAggregate()
Check if this metric applies to all classes (aggregate).
-
isConditional
final Boolean isConditional()
Check if this metric has a conditioning event.
-
-
-
-