public class AnomalyMetrics extends Object
Constructor and Description |
---|
AnomalyMetrics(Map<AnomalyType,Double> meanTimeBetweenAnomaliesMs,
double meanTimeToStartFixMs,
long numSelfHealingStarted,
long ongoingAnomalyDurationMs)
Mean time between anomalies: The mean time between detected anomalies, while there is no ongoing execution.
Mean time to start fix: Mean time between the detection of earliest ongoing anomaly and start of a proposal
execution.
|
Modifier and Type | Method and Description |
---|---|
Map<AnomalyType,Double> |
meanTimeBetweenAnomaliesMs() |
double |
meanTimeToStartFixMs() |
long |
numSelfHealingStarted() |
long |
ongoingAnomalyDurationMs() |
String |
toString() |
public AnomalyMetrics(Map<AnomalyType,Double> meanTimeBetweenAnomaliesMs, double meanTimeToStartFixMs, long numSelfHealingStarted, long ongoingAnomalyDurationMs)
meanTimeBetweenAnomaliesMs
- Mean time between anomalies by the corresponding type.meanTimeToStartFixMs
- Mean time to start fix for any anomaly.numSelfHealingStarted
- Number of fixes started by the anomaly detector as a result of self healing.ongoingAnomalyDurationMs
- The duration of the ongoing (unfixed/unfixable) anomaly if there is any, 0 otherwise.public double meanTimeToStartFixMs()
public Map<AnomalyType,Double> meanTimeBetweenAnomaliesMs()
public long numSelfHealingStarted()
public long ongoingAnomalyDurationMs()