pub struct Endpoints {
pub api_key: String,
pub site: ConfigValue<String>,
pub dd_url: ConfigValue<String>,
pub additional_endpoints: HashMap<String, Vec<String>>,
pub allow_arbitrary_tags: bool,
pub proxy: Proxy,
pub tls: Tls,
pub compression: Compression,
pub forwarder: Forwarder,
pub opw_intake: AltMetricsIntake,
pub vector_intake: AltMetricsIntake,
}Expand description
Primary outbound endpoints plus the forwarder, proxy, TLS, and compression settings that apply to every pipeline emitting to the intake.
Fields§
§api_key: StringAPI key for the primary intake.
site: ConfigValue<String>Base site domain for the primary intake (for example, datadoghq.com).
The Datadog schema supplies a default value when nothing sets this key. Provenance is
Explicit only when the value was explicitly configured.
dd_url: ConfigValue<String>Full primary intake URL, which overrides site when set explicitly.
The Core Agent supplies this key at its schema default even when not set by the user or
operator. Provenance is preserved so that we know when this was explicitly set and should
override site.
additional_endpoints: HashMap<String, Vec<String>>Additional dual-shipping endpoints, keyed by intake URL with their API keys.
Whether metrics may carry arbitrary tags.
proxy: ProxyOutbound HTTP proxy settings.
tls: TlsOutbound TLS client settings.
compression: CompressionPayload compression settings.
forwarder: ForwarderForwarder retry, backoff, worker, and disk-storage settings.
opw_intake: AltMetricsIntakeAlternate metrics intake for the Observability Pipelines Worker, used in place of the default intake when enabled.
vector_intake: AltMetricsIntakeAlternate metrics intake for Vector, used in place of the default intake when enabled.
Implementations§
Source§impl Endpoints
impl Endpoints
Sourcepub fn primary_endpoint(&self) -> String
pub fn primary_endpoint(&self) -> String
Returns the primary intake endpoint, as configured and without normalization.
An explicitly configured dd_url overrides site, even when
its value equals the schema default: the operator asked for that URL. Otherwise the endpoint
is derived from site. An empty site cannot produce an endpoint, so the effective dd_url
value is used instead; it already carries the source schema’s default URL.