View Source GoogleApi.Domains.V1alpha2.Model.PrimaryBackupPolicy (google_api_domains v0.12.2)

Configures a RRSetRoutingPolicy such that all queries are responded with the primary_targets if they are healthy. And if all of them are unhealthy, then we fallback to a geo localized policy.

Attributes

  • backupGeoTargets (type: GoogleApi.Domains.V1alpha2.Model.GeoPolicy.t, default: nil) - Backup targets provide a regional failover policy for the otherwise global primary targets. If serving state is set to BACKUP, this policy essentially becomes a geo routing policy.
  • primaryTargets (type: GoogleApi.Domains.V1alpha2.Model.HealthCheckTargets.t, default: nil) - Endpoints that are health checked before making the routing decision. Unhealthy endpoints are omitted from the results. If all endpoints are unhealthy, we serve a response based on the backup_geo_targets.
  • trickleTraffic (type: float(), default: nil) - When serving state is PRIMARY, this field provides the option of sending a small percentage of the traffic to the backup targets.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

t()

@type t() :: %GoogleApi.Domains.V1alpha2.Model.PrimaryBackupPolicy{
  backupGeoTargets: GoogleApi.Domains.V1alpha2.Model.GeoPolicy.t() | nil,
  primaryTargets: GoogleApi.Domains.V1alpha2.Model.HealthCheckTargets.t() | nil,
  trickleTraffic: float() | nil
}

Functions

decode(value, options)

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

Unwrap a decoded JSON object into its complex fields.