NodeRegistration

consul4s.model.catalog.NodeRegistration
final case class NodeRegistration(Node: String, Address: String, Service: Option[NewCatalogService], Check: Option[NewHealthCheck], Checks: Option[List[NewHealthCheck]], ID: Option[String], Datacenter: Option[String], TaggedAddresses: Option[Map[String, String]], NodeMeta: Option[Map[String, String]], SkipNodeUpdate: Boolean)

Value parameters

Address
  • Specifies the address to register.
Check(s)
  • Specifies to register a check. The register API manipulates the health check entry in the Catalog, but it does not setup the script, TTL, or HTTP check to monitor the node's health. To truly enable a new health check, the check must either be provided in agent configuration or set via the agent endpoint. The CheckID can be omitted and will default to the value of Name. As with Service.ID, the CheckID must be unique on this node. Notes is an opaque field that is meant to hold human-readable text. If a ServiceID is provided that matches the ID of a service on that node, the check is treated as a service level health check, instead of a node level health check. The Status must be one of passing, warning, or critical. The Definition field can be provided with details for a TCP or HTTP health check. For more information, see the Health Checks page. Multiple checks can be provided by replacing Check with Checks and sending an array of Check objects.
Datacenter
  • Specifies the datacenter, which defaults to the agent's datacenter if not provided.
ID
  • An optional UUID to assign to the node. This must be a 36-character UUID-formatted string.
Node
  • Specifies the node ID to register.
NodeMeta
  • Specifies arbitrary KV metadata pairs for filtering purposes.
Service
  • Specifies to register a service. If ID is not provided, it will be defaulted to the value of the Service.Service property. Only one service with a given ID may be present per node. We recommend using valid DNS labels for service definition names for compatibility with external DNS. The service Tags, Address, Meta, and Port fields are all optional.
SkipNodeUpdate
  • Specifies whether to skip updating the node's information in the registration. This is useful in the case where only a health check or service entry on a node needs to be updated or when a register request is intended to update a service entry or health check. In both use cases, node information will not be overwritten, if the node is already registered. Note, if the parameter is enabled for a node that doesn't exist, it will still be created.
TaggedAddresses
  • Specifies the tagged addresses.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product