Fail build on missing configuration property descriptions
Closes gh-31916
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2019 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.
|
||||
@@ -30,10 +30,19 @@ import org.springframework.boot.actuate.metrics.AutoTimer;
|
||||
*/
|
||||
public final class AutoTimeProperties implements AutoTimer {
|
||||
|
||||
/**
|
||||
* Whether to enable auto-timing.
|
||||
*/
|
||||
private boolean enabled = true;
|
||||
|
||||
/**
|
||||
* Whether to publish percentile histrograms.
|
||||
*/
|
||||
private boolean percentilesHistogram;
|
||||
|
||||
/**
|
||||
* Percentiles for which additional time series should be published.
|
||||
*/
|
||||
private double[] percentiles;
|
||||
|
||||
/**
|
||||
|
||||
@@ -97,10 +97,20 @@ public class WavefrontProperties extends PushRegistryProperties {
|
||||
|
||||
public static class Sender {
|
||||
|
||||
/**
|
||||
* Maximum queue size of the in-memory buffer.
|
||||
*/
|
||||
private int maxQueueSize = 50000;
|
||||
|
||||
/**
|
||||
* Interval at which points are flushed to the Wavefront server.
|
||||
*/
|
||||
private Duration flushInterval = Duration.ofSeconds(1);
|
||||
|
||||
/**
|
||||
* Maximum message size, such that each batch is reported as one or more messages
|
||||
* where no message exceeds the specified size.
|
||||
*/
|
||||
private DataSize messageSize = DataSize.ofBytes(Integer.MAX_VALUE);
|
||||
|
||||
public int getMaxQueueSize() {
|
||||
|
||||
@@ -243,15 +243,6 @@
|
||||
"description": "Whether to enable Solr health check.",
|
||||
"defaultValue": true
|
||||
},
|
||||
{
|
||||
"name": "management.health.status.order",
|
||||
"defaultValue": [
|
||||
"DOWN",
|
||||
"OUT_OF_SERVICE",
|
||||
"UP",
|
||||
"UNKNOWN"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "management.info.build.enabled",
|
||||
"type": "java.lang.Boolean",
|
||||
|
||||
@@ -123,7 +123,7 @@ class HealthEndpointAutoConfigurationTests {
|
||||
@Test
|
||||
void runWhenHasHttpCodeStatusMapperBeanIgnoresProperties() {
|
||||
this.contextRunner.withUserConfiguration(HttpCodeStatusMapperConfiguration.class)
|
||||
.withPropertyValues("management.health.status.http-mapping.up=123").run((context) -> {
|
||||
.withPropertyValues("management.endpoint.health.status.http-mapping.up=123").run((context) -> {
|
||||
HttpCodeStatusMapper mapper = context.getBean(HttpCodeStatusMapper.class);
|
||||
assertThat(mapper.getStatusCode(Status.UP)).isEqualTo(456);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user