public class RestartTimeGauge extends Object implements Gauge<Long>
Restarting time is the time between JobStatus.RESTARTING
and JobStatus.RUNNING
, or a terminal state if JobStatus.RUNNING
was not reached.
If the job has not yet reached either of these states, then the time is measured since
reaching JobStatus.RESTARTING
. If it is still the initial job execution, then the gauge
will return 0.
Modifier and Type | Field and Description |
---|---|
static String |
METRIC_NAME |
Constructor and Description |
---|
RestartTimeGauge(JobStatusProvider jobStatusProvider) |
public static final String METRIC_NAME
public RestartTimeGauge(JobStatusProvider jobStatusProvider)
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.