enh(generic-snmp): all the new json files pass. Now the plugin must do its job

This commit is contained in:
David Boucher 2025-03-28 09:54:31 +01:00
parent 968922478e
commit 0d7f99043a

View File

@ -45,6 +45,7 @@ fn worst(a: Status, b: Status) -> Status {
#[derive(Deserialize, Debug)] #[derive(Deserialize, Debug)]
enum QueryType { enum QueryType {
Get,
Walk, Walk,
} }
@ -60,7 +61,7 @@ struct Metric {
#[derive(Deserialize, Debug)] #[derive(Deserialize, Debug)]
pub struct Compute { pub struct Compute {
metrics: Vec<Metric>, metrics: Vec<Metric>,
aggregations: Vec<Metric>, aggregations: Option<Vec<Metric>>,
} }
#[derive(Deserialize, Debug)] #[derive(Deserialize, Debug)]