2015-02-06 16:18:12 +00:00
|
|
|
package com.github.lookout.verspaetung.metrics
|
|
|
|
|
2015-09-01 22:50:31 +00:00
|
|
|
import com.codahale.metrics.Gauge
|
2015-02-06 16:18:12 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 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
|
|
|
|
}
|
|
|
|
}
|