local config + json mod fixes
parent
3ebf40aa64
commit
5d0a362166
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"config": [
|
"config": [
|
||||||
{
|
{
|
||||||
"id":"demo_vcs_vinteo_dev_api",
|
"id":"zvks",
|
||||||
"login" : "",
|
"login" : "",
|
||||||
"pass" : "",
|
"pass" : "",
|
||||||
"api_key" : "6fe8b0db-62b4-4065-9c1e-441ec4228341.9acec20bd17d7178f332896f8c006452877a22b8627d089105ed39c5baef9711",
|
"api_key" : "6fe8b0db-62b4-4065-9c1e-441ec4228341.9acec20bd17d7178f332896f8c006452877a22b8627d089105ed39c5baef9711",
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ impl JsonParser {
|
||||||
true => JsonParser::get_sum_of_metrics_in_array(target, json),
|
true => JsonParser::get_sum_of_metrics_in_array(target, json),
|
||||||
false => JsonParser::get_metric(target, json),
|
false => JsonParser::get_metric(target, json),
|
||||||
};
|
};
|
||||||
res_vec.push(MetricOutput::new_with_slices(&target.id, &target.json_type, metric));
|
res_vec.push(MetricOutput::new_with_slices(&target.id, &target.json_type, &target.addr, metric));
|
||||||
}
|
}
|
||||||
serde_json::to_value(res_vec).unwrap_or(Value::Null)
|
serde_json::to_value(res_vec).unwrap_or(Value::Null)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue