pub struct Domain {
pub enabled: bool,
pub metric_mirroring: MetricMirroring,
pub api_key: Option<String>,
pub site: Option<String>,
pub dd_url: Option<String>,
}Expand description
Resolved Multi-Region Failover configuration.
Fields§
§enabled: boolWhether multi-region failover is active.
Defaults to false. The failover pipeline is wired when the topology is built, so turning this on takes a
restart, and it takes a reachable failover region as well: an api_key, plus either a
site or a dd_url. Without those, the pipeline is not wired at all.
metric_mirroring: MetricMirroringWhich metrics are mirrored to the failover region.
api_key: Option<String>API key used to authenticate to the failover region.
site: Option<String>Datadog site of the failover region.
dd_url: Option<String>Explicit intake URL for the failover region, overriding the site.
Implementations§
Source§impl Domain
impl Domain
Sourcepub fn metrics_endpoint_url(&self) -> Option<String>
pub fn metrics_endpoint_url(&self) -> Option<String>
Returns the failover-region metrics intake URL, if the region is addressable.
dd_url takes precedence and is used as provided. When only
site is set, the Datadog failover metrics intake is derived from it. Neither
setting has a default, so a failover region that is configured with neither has no endpoint.