datadog_agent_config_overlay_model/
smoke_test_support.rs1use serde::{Deserialize, Serialize};
5
6#[derive(Copy, Clone, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Deserialize, Serialize)]
11pub enum ConfigurationStruct {
12 AggregateConfiguration,
13 ContainerdConfiguration,
14 DatadogEventsConfiguration,
15 DatadogLogsConfiguration,
16 DatadogServiceChecksConfiguration,
17 DogStatsDConfiguration,
18 DogStatsDDebugLogConfiguration,
19 DogStatsDMapperConfiguration,
20 DogStatsDPrefixFilterConfiguration,
21 RemoteAgentClientConfiguration,
22
23 TypedConfigSystem,
25
26 #[serde(rename = "get_typed")]
28 GetTyped,
29
30 #[serde(rename = "NO_SMOKE")]
36 NoSmoke,
37}
38
39impl ConfigurationStruct {
40 pub fn as_smoke_test_const(&self) -> &'static str {
43 match self {
44 ConfigurationStruct::AggregateConfiguration => "AGGREGATE_CONFIGURATION",
45 ConfigurationStruct::ContainerdConfiguration => "CONTAINERD_CONFIGURATION",
46 ConfigurationStruct::DatadogEventsConfiguration => "DATADOG_EVENTS_CONFIGURATION",
47 ConfigurationStruct::DatadogLogsConfiguration => "DATADOG_LOGS_CONFIGURATION",
48 ConfigurationStruct::DatadogServiceChecksConfiguration => "DATADOG_SERVICE_CHECKS_CONFIGURATION",
49 ConfigurationStruct::DogStatsDConfiguration => "DOGSTATSD_CONFIGURATION",
50 ConfigurationStruct::DogStatsDDebugLogConfiguration => "DOGSTATSD_DEBUG_LOG_CONFIGURATION",
51 ConfigurationStruct::DogStatsDMapperConfiguration => "DOGSTATSD_MAPPER_CONFIGURATION",
52 ConfigurationStruct::DogStatsDPrefixFilterConfiguration => "DOGSTATSD_PREFIX_FILTER_CONFIGURATION",
53 ConfigurationStruct::RemoteAgentClientConfiguration => "REMOTE_AGENT_CLIENT_CONFIGURATION",
54 ConfigurationStruct::TypedConfigSystem => "TYPED_CONFIG_SYSTEM",
55 ConfigurationStruct::GetTyped => "GET_TYPED",
56 ConfigurationStruct::NoSmoke => "NO_SMOKE",
57 }
58 }
59}