From 22d187a38c640e61fa2d3dfd03e52c73fe499f8e Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Mon, 16 May 2022 16:33:22 +0200 Subject: [PATCH] Polish "Add missing configuration properties for Statsd" See gh-30898 --- .../metrics/export/statsd/StatsdProperties.java | 7 +++---- .../export/statsd/StatsdPropertiesConfigAdapter.java | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/export/statsd/StatsdProperties.java b/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/export/statsd/StatsdProperties.java index 4924bf37a4..0ee91dd807 100644 --- a/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/export/statsd/StatsdProperties.java +++ b/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/export/statsd/StatsdProperties.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2020 the original author or authors. + * Copyright 2012-2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -72,9 +72,8 @@ public class StatsdProperties { private Duration pollingFrequency = Duration.ofSeconds(10); /** - * The step size to use in computing windowed statistics like max. The default is 1 - * minute. To get the most out of these statistics, align the step interval to be - * close to your scrape interval. + * Step size to use in computing windowed statistics like max. To get the most out of + * these statistics, align the step interval to be close to your scrape interval. */ private Duration step = Duration.ofMinutes(1); diff --git a/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/export/statsd/StatsdPropertiesConfigAdapter.java b/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/export/statsd/StatsdPropertiesConfigAdapter.java index 1cb671294a..b6990a7846 100644 --- a/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/export/statsd/StatsdPropertiesConfigAdapter.java +++ b/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/export/statsd/StatsdPropertiesConfigAdapter.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2020 the original author or authors. + * Copyright 2012-2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.