Skip to content

Commit ff31733

Browse files
committed
Merge pull request #21110 from izeye
* pr/21110: Polish Closes gh-21110
2 parents 5077943 + ef56738 commit ff31733

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ void whenThereIsNoProducerFactoryAutoConfigurationBacksOff() {
4646
}
4747

4848
@Test
49-
void whenThereIsAnAProducerFactoryKafkaClientMetricsIsConfigured() {
49+
void whenThereIsAProducerFactoryKafkaClientMetricsIsConfigured() {
5050
this.contextRunner.withConfiguration(AutoConfigurations.of(KafkaAutoConfiguration.class))
5151
.run((context) -> assertThat(context).hasSingleBean(KafkaClientMetrics.class));
5252
}

spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/metrics/export/appoptics/AppOpticsPropertiesConfigAdapterTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ void whenPropertiesHostTagIsSetAdapterHostTagReturnsIt() {
6262
}
6363

6464
@Test
65-
void whenPropertiesFloorTimesIsSetAdapterHostTagReturnsIt() {
65+
void whenPropertiesFloorTimesIsSetAdapterFloorTimesReturnsIt() {
6666
AppOpticsProperties properties = createProperties();
6767
properties.setFloorTimes(true);
6868
assertThat(createConfigAdapter(properties).floorTimes()).isTrue();

spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/metrics/export/elastic/ElasticPropertiesConfigAdapterTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ void whenPropertiesIndexDateFormatIsSetAdapterIndexDateFormatReturnsIt() {
4949
}
5050

5151
@Test
52-
void whenPropertiesIndexDateSeparatorIsSetAdapterIndexDateFormatReturnsIt() {
52+
void whenPropertiesIndexDateSeparatorIsSetAdapterIndexDateSeparatorReturnsIt() {
5353
ElasticProperties properties = new ElasticProperties();
5454
properties.setIndexDateSeparator("*");
5555
assertThat(new ElasticPropertiesConfigAdapter(properties).indexDateSeparator()).isEqualTo("*");
@@ -84,7 +84,7 @@ void whenPropertiesPasswordIsSetAdapterPasswordReturnsIt() {
8484
}
8585

8686
@Test
87-
void whenPropertiesPipelineIsSetAdapterPasswordReturnsIt() {
87+
void whenPropertiesPipelineIsSetAdapterPipelineReturnsIt() {
8888
ElasticProperties properties = new ElasticProperties();
8989
properties.setPipeline("testPipeline");
9090
assertThat(new ElasticPropertiesConfigAdapter(properties).pipeline()).isEqualTo("testPipeline");

spring-boot-project/spring-boot-docs/src/docs/asciidoc/howto.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2233,10 +2233,10 @@ If any of the keys to sanitize are URI format (i.e. `<scheme>://<username>:<pass
22332233
=== Map Health Indicators to Micrometer Metrics
22342234
Spring Boot health indicators return a `Status` type to indicate the overall system health.
22352235
If you want to monitor or alert on levels of health for a particular application, you can export these statuses as metrics via Micrometer.
2236-
By default, the status codes "`up`", "`down`", "`out of service`" and "`unknown`" are used by Spring Boot.
2236+
By default, the status codes "`UP`", "`DOWN`", "`OUT_OF_SERVICE`" and "`UNKNOWN`" are used by Spring Boot.
22372237
To export these, you'll need to convert these states to some set of numbers so that they can be used with a Micrometer `Gauge`.
22382238

2239-
The follow example shows one way to write such an exporter:
2239+
The following example shows one way to write such an exporter:
22402240

22412241
[source,java,indent=0,subs="verbatim,quotes,attributes"]
22422242
----

spring-boot-project/spring-boot-docs/src/test/java/org/springframework/boot/docs/actuate/metrics/MetricsHealthMicrometerExportExampleTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
* @author Phillip Webb
4242
*/
4343
@SpringBootTest
44-
public class MetricsHealthMicrometerExportExampleTests {
44+
class MetricsHealthMicrometerExportExampleTests {
4545

4646
@Autowired
4747
private MeterRegistry registry;

0 commit comments

Comments
 (0)