feat: added standby occurred to logged data

Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
This commit is contained in:
Louis Vallat 2022-07-08 09:53:05 +02:00
parent 11bd6e3858
commit cef4088f6b
No known key found for this signature in database
GPG Key ID: 0C87282F76E61283

View File

@ -84,6 +84,8 @@ async fn status_to_datapoints(status: &Status, hostname: &String) -> Vec<DataPoi
.field("upgrade_occurred", status.upgrade_occurred).build().unwrap(), .field("upgrade_occurred", status.upgrade_occurred).build().unwrap(),
DataPoint::builder("status").tag("hostname", hostname) DataPoint::builder("status").tag("hostname", hostname)
.field("reset_occurred", status.reset_occurred.clone()).build().unwrap(), .field("reset_occurred", status.reset_occurred.clone()).build().unwrap(),
DataPoint::builder("status").tag("hostname", hostname)
.field("standby_occurred", status.standby_occurred.clone()).build().unwrap(),
DataPoint::builder("status").tag("hostname", hostname) DataPoint::builder("status").tag("hostname", hostname)
.field("base_mac", status.base_mac.clone()).build().unwrap(), .field("base_mac", status.base_mac.clone()).build().unwrap(),
]; ];