Skip to content

Commit 5632d04

Browse files
committed
Fix enums following upstream micrometer change
See gh-11575
1 parent 134628a commit 5632d04

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/export/simple/SimpleProperties.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public class SimpleProperties {
4646
/**
4747
* Counting mode.
4848
*/
49-
private CountingMode mode = CountingMode.Cumulative;
49+
private CountingMode mode = CountingMode.CUMULATIVE;
5050

5151
public boolean getEnabled() {
5252
return this.enabled;

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/export/statsd/StatsdProperties.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public class StatsdProperties {
4040
/**
4141
* StatsD line protocol to use.
4242
*/
43-
private StatsdFlavor flavor = StatsdFlavor.Datadog;
43+
private StatsdFlavor flavor = StatsdFlavor.DATADOG;
4444

4545
/**
4646
* Host of the StatsD server to receive exported metrics.

spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/metrics/MetricsEndpointTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public void nonExistentMetric() {
131131

132132
private Optional<Double> getCount(MetricsEndpoint.MetricResponse response) {
133133
return response.getMeasurements().stream()
134-
.filter((ms) -> ms.getStatistic().equals(Statistic.Count)).findAny()
134+
.filter((ms) -> ms.getStatistic().equals(Statistic.COUNT)).findAny()
135135
.map(MetricsEndpoint.Sample::getValue);
136136
}
137137

0 commit comments

Comments
 (0)