Use JSON path expressions for JSON payload support

This commit is contained in:
2021-08-30 23:41:02 -07:00
parent 2984561a9a
commit 45a3bb3c50
5 changed files with 231 additions and 61 deletions

View File

@ -59,8 +59,8 @@ pub struct InfluxDBConfig {
pub enum Payload {
#[serde(rename_all = "camelCase")]
json {
value_field_name: String,
timestamp_field_name: Option<String>,
value_field_path: String,
timestamp_field_path: Option<String>,
},
}