public class DownTimeGauge extends Object implements Gauge<Long>
For jobs that have never run (new not yet scheduled jobs) or jobs that have run again after failing, this gauge returns , and for jobs that are not running any more, it returns .
Modifier and Type | Field and Description |
---|---|
static String |
METRIC_NAME |
Constructor and Description |
---|
DownTimeGauge(JobStatusProvider jobStatusProvider) |
Modifier and Type | Method and Description |
---|---|
Long |
getValue()
Calculates and returns the measured value.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMetricType
public static final String METRIC_NAME
public DownTimeGauge(JobStatusProvider jobStatusProvider)
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.