Fix enums following upstream micrometer change
See gh-11575
This commit is contained in:
parent
134628a62d
commit
5632d043ff
|
@ -46,7 +46,7 @@ public class SimpleProperties {
|
||||||
/**
|
/**
|
||||||
* Counting mode.
|
* Counting mode.
|
||||||
*/
|
*/
|
||||||
private CountingMode mode = CountingMode.Cumulative;
|
private CountingMode mode = CountingMode.CUMULATIVE;
|
||||||
|
|
||||||
public boolean getEnabled() {
|
public boolean getEnabled() {
|
||||||
return this.enabled;
|
return this.enabled;
|
||||||
|
|
|
@ -40,7 +40,7 @@ public class StatsdProperties {
|
||||||
/**
|
/**
|
||||||
* StatsD line protocol to use.
|
* StatsD line protocol to use.
|
||||||
*/
|
*/
|
||||||
private StatsdFlavor flavor = StatsdFlavor.Datadog;
|
private StatsdFlavor flavor = StatsdFlavor.DATADOG;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Host of the StatsD server to receive exported metrics.
|
* Host of the StatsD server to receive exported metrics.
|
||||||
|
|
|
@ -131,7 +131,7 @@ public class MetricsEndpointTests {
|
||||||
|
|
||||||
private Optional<Double> getCount(MetricsEndpoint.MetricResponse response) {
|
private Optional<Double> getCount(MetricsEndpoint.MetricResponse response) {
|
||||||
return response.getMeasurements().stream()
|
return response.getMeasurements().stream()
|
||||||
.filter((ms) -> ms.getStatistic().equals(Statistic.Count)).findAny()
|
.filter((ms) -> ms.getStatistic().equals(Statistic.COUNT)).findAny()
|
||||||
.map(MetricsEndpoint.Sample::getValue);
|
.map(MetricsEndpoint.Sample::getValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue