verspaetung/src/main/groovy/com/github/lookout/verspaetung/metrics/HeartbeatGauge.groovy

15 lines
293 B
Groovy

package com.github.lookout.verspaetung.metrics
import com.codahale.metrics.Gauge
/**
* A simple gauge that will always just return 1 indicating that the process is
* alive
*/
class HeartbeatGauge implements Gauge<Integer> {
@Override
Integer getValue() {
return 1
}
}