agent_data_plane_config/domains/multi_region_failover.rs
1//! Multi-Region Failover domain. Self-contained: it carries its own failover endpoint (`api_key`,
2//! `site`, `dd_url`), distinct from the primary forwarder endpoint in `shared.endpoints`.
3
4use serde::Serialize;
5
6/// Resolved Multi-Region Failover configuration.
7#[derive(Clone, Debug, Default, PartialEq, Serialize)]
8pub struct Domain {
9 /// Whether multi-region failover is active.
10 pub enabled: bool,
11
12 /// Whether metrics are mirrored to the failover region.
13 pub failover_metrics: bool,
14
15 /// Metrics permitted to be sent to the failover region.
16 pub metric_allowlist: Vec<String>,
17
18 /// API key used to authenticate to the failover region.
19 pub api_key: Option<String>,
20
21 /// Datadog site of the failover region.
22 pub site: Option<String>,
23
24 /// Explicit intake URL for the failover region, overriding the site.
25 pub dd_url: Option<String>,
26}