View Source GoogleApi.TrafficDirector.V3.Model.Locality (google_api_traffic_director v0.2.0)

Identifies location of where either Envoy runs or where upstream hosts run.

Attributes

  • region (type: String.t, default: nil) - Region this :ref:zone belongs to.
  • subZone (type: String.t, default: nil) - When used for locality of upstream hosts, this field further splits zone into smaller chunks of sub-zones so they can be load balanced independently.
  • zone (type: String.t, default: nil) - Defines the local service zone where Envoy is running. Though optional, it should be set if discovery service routing is used and the discovery service exposes :ref:zone data, either in this message or via :option:--service-zone. The meaning of zone is context dependent, e.g. Availability Zone (AZ) on AWS, Zone on GCP, etc.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.TrafficDirector.V3.Model.Locality{
  region: String.t() | nil,
  subZone: String.t() | nil,
  zone: String.t() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.