Fix enums following upstream micrometer change

See gh-11575
pull/11845/head
Phillip Webb 7 years ago
parent 134628a62d
commit 5632d043ff

@ -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);
}

Loading…
Cancel
Save