pub struct V3ApiSettings {
pub beta_route: String,
pub shadow_sample_rate: f64,
pub shadow_sites: Vec<String>,
pub endpoints: Vec<String>,
pub max_compressed_payload_size: usize,
pub max_uncompressed_payload_size: usize,
pub max_points_per_payload: usize,
}Expand description
V3 sketches intake settings.
Fields§
§beta_route: StringRoute for sampled V3 sketch copies, used for intake validation.
Defaults to /api/intake/metrics/v3beta/sketches. This does not change the authoritative route.
shadow_sample_rate: f64Probability of shadowing each eligible V2 sketch batch, independently for each destination.
Defaults to 0.001 (0.1%). Zero or negative values disable sampling; values at least 1 sample every batch.
shadow_sites: Vec<String>Sites eligible for sketch shadow sampling, matched against the resolved V2 destination.
Defaults to ["datadoghq.com"]. An empty list disables shadowing for every site.
endpoints: Vec<String>Endpoints enabled for the V3 intake.
max_compressed_payload_size: usizeMaximum compressed V3 sketch payload size, in bytes.
Defaults to serializer_max_payload_size (2,621,440 bytes).
max_uncompressed_payload_size: usizeMaximum uncompressed V3 sketch payload size, in bytes.
Defaults to serializer_max_uncompressed_payload_size (4,194,304 bytes).
max_points_per_payload: usizeMaximum number of sketch points per V3 payload.
Defaults to unlimited (usize::MAX).
Trait Implementations§
Source§impl Clone for V3ApiSettings
impl Clone for V3ApiSettings
Source§fn clone(&self) -> V3ApiSettings
fn clone(&self) -> V3ApiSettings
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more