See gh-11575
@ -46,7 +46,7 @@ public class SimpleProperties {
/**
* Counting mode.
*/
private CountingMode mode = CountingMode.Cumulative;
private CountingMode mode = CountingMode.CUMULATIVE;
public boolean getEnabled() {
return this.enabled;
@ -40,7 +40,7 @@ public class StatsdProperties {
* StatsD line protocol to use.
private StatsdFlavor flavor = StatsdFlavor.Datadog;
private StatsdFlavor flavor = StatsdFlavor.DATADOG;
* Host of the StatsD server to receive exported metrics.
@ -131,7 +131,7 @@ public class MetricsEndpointTests {
private Optional<Double> getCount(MetricsEndpoint.MetricResponse response) {
return response.getMeasurements().stream()
.filter((ms) -> ms.getStatistic().equals(Statistic.Count)).findAny()
.filter((ms) -> ms.getStatistic().equals(Statistic.COUNT)).findAny()
.map(MetricsEndpoint.Sample::getValue);
}