Polish "Add metric description and base unit to metrics endpoint"

Closes gh-13813
This commit is contained in:
Stephane Nicoll 2018-07-24 09:03:03 +02:00
parent ab1f8cf77b
commit 7176c54f5e
1 changed files with 2 additions and 1 deletions

View File

@ -54,7 +54,8 @@ public class MetricsEndpointDocumentationTests extends MockMvcEndpointDocumentat
.andExpect(status().isOk())
.andDo(document("metrics/metric", responseFields(
fieldWithPath("name").description("Name of the metric"),
fieldWithPath("description").description("Description of the metric"),
fieldWithPath("description")
.description("Description of the metric"),
fieldWithPath("baseUnit").description("Base unit of the metric"),
fieldWithPath("measurements")
.description("Measurements of the metric"),