use serde::{Deserialize, Serialize};
use std::collections::HashMap;
use std::path::PathBuf;
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(tag = "type")]
pub enum ForwardDestination {
Syslog {
host: String,
port: u16,
protocol: SyslogProtocol,
},
Webhook {
url: String,
headers: HashMap<String, String>,
},
S3 {
bucket: String,
prefix: String,
region: String,
},
File { path: PathBuf },
}
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "lowercase")]
pub enum SyslogProtocol {
Udp,
Tcp,
Tls,
}