1. 29 Sep, 2019 16 commits
  2. 27 Sep, 2019 20 commits
  3. 26 Sep, 2019 4 commits
    • Phillip Webb's avatar
      Add health endpoint 'show-components' support · a94ab673
      Phillip Webb authored
      Add a `show-components` property under `management.endpoint.health` and
      `management.endpoint.health.group.<name>` that can be used to change
      when components are displayed.
      
      Prior to this commit it was only possible to set `show-details` which
      offered an "all or nothing" approach to the resulting JSON. The new
      switch allows component information to be displayed whilst still hiding
      potentially sensitive details returned from the actual `HealthIndicator`.
      
      Closes gh-15076
      a94ab673
    • Phillip Webb's avatar
      Rename health JSON 'details' to 'components' in v3 · 69c561a6
      Phillip Webb authored
      Update the health endpoint so the nested components are now exposed
      under `components` rather than `details` when v3 of the actuator
      REST API is being used.
      
      This distinction helps to clarify the difference between composite
      health (health composed of other health components) and health
      details (technology specific information gathered by the indicator).
      
      Since this is a breaking change for the REST API, it is only returned
      for v3 payloads. Requests made accepting only a v2 response will have
      JSON provided in the original form.
      
      Closes gh-17929
      69c561a6
    • Phillip Webb's avatar
      Test v3 actuator API with loggers endpoint · cd1b7c1a
      Phillip Webb authored
      Update `LoggersEndpointWebIntegrationTests` to ensure that the new
      v3 media type can be used.
      
      See gh-17929
      cd1b7c1a
    • Phillip Webb's avatar
      Add Actuator ApiVersion support and bump version · deb9d67c
      Phillip Webb authored
      Add `ApiVersion` enum that can be injected into actuator endpoints if
      they need to support more than one API revision.
      
      Spring MVC, WebFlux and Jersey integrations now detect the API version
      based on the HTTP accept header. If the request explicitly accepts a
      `application/vnd.spring-boot.actuator.v` media type then the version
      is set from the header. If no explicit Spring Boot media type is
      accepted then the latest `ApiVersion` is assumed.
      
      A new v3 API revision has also been introduced to allow upcoming health
      endpoint format changes. By default all endpoints now consume and
      can produce v3, v2 and `application/json` media types.
      
      See gh-17929
      deb9d67c