use serde::Deserialize;

#[derive(Debug, Deserialize, Clone)]
#[serde(rename_all = "kebab-case")]
pub struct Influxdb2Config {
    /// 数据库URL
    #[serde()]
    pub url: String,
    /// 组织名称
    #[serde()]
    pub org: String,
    /// 桶(数据库)
    #[serde()]
    pub bucket: String,
    /// 量度(表)
    #[serde()]
    pub measurement: Option<String>,
    /// 数据库token
    #[serde()]
    pub token: String,
}
