Ecwid / consul-api

Java client for Consul HTTP API
Apache License 2.0
416 stars 177 forks source link

Support new (1.7+) NodeChecks and ServiceChecks fields on sessions #219

Open dantheoptimist opened 3 years ago

dantheoptimist commented 3 years ago

As of Consul 1.7, the checks field has been deprecated and replaced with separate fields for node checks and service checks as per https://www.consul.io/api-docs/session

To support using these fields, these should be added to both the new session object and the session object for calls that return sessions with such checks present.