agent_data_plane_config/domains/checks.rs
1//! Checks domain. Carries the checks IPC endpoint; the checks metrics-encoding settings live in
2//! `shared.metrics_encoding`.
3// TODO: add the rest of the checks pipeline configuration as the checks pipeline is migrated.
4
5use serde::Serialize;
6
7use crate::defaults::DEFAULT_CHECKS_IPC_ENDPOINT;
8
9// TODO: better name than Domain? Pipeline? Topology? BlueprintConfig?
10/// Resolved checks configuration.
11#[derive(Clone, Debug, PartialEq, Serialize)]
12pub struct Domain {
13 /// Address the checks pipeline exposes for IPC with the core Agent.
14 ///
15 /// This is a Saluki-only field, seeded from the Saluki-only source. It is absent from the
16 /// Datadog Agent config schema. Defaults to `tcp://0.0.0.0:5105`.
17 pub ipc_endpoint: String,
18}
19
20impl Default for Domain {
21 fn default() -> Self {
22 Self {
23 ipc_endpoint: DEFAULT_CHECKS_IPC_ENDPOINT.to_string(),
24 }
25 }
26}