1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
use std::default::Default;
use serde::{Serialize, Deserialize};
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct DataDogConfig {
pub tags: Option<String>,
pub apikey: String,
pub service: Option<String>,
pub hostname: Option<String>,
pub source: String,
pub datadog_url: String,
}
impl Default for DataDogConfig {
fn default() -> Self {
DataDogConfig {
tags: None,
apikey: "".into(),
service: None,
hostname: None,
source: "rust".into(),
datadog_url: "https://http-intake.logs.datadoghq.com/v1/input".into(),
}
}
}