From 34e40e006af57ec7cb7c69acf0273321550117dd Mon Sep 17 00:00:00 2001 From: Omar Tarabai Date: Fri, 15 Aug 2014 18:44:06 +0000 Subject: sensor: test case + fixes --- src/include/gnunet_sensor_util_lib.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'src/include/gnunet_sensor_util_lib.h') diff --git a/src/include/gnunet_sensor_util_lib.h b/src/include/gnunet_sensor_util_lib.h index 87ae564fa..897fbbaad 100644 --- a/src/include/gnunet_sensor_util_lib.h +++ b/src/include/gnunet_sensor_util_lib.h @@ -189,6 +189,26 @@ struct GNUNET_SENSOR_SensorInfo }; +/** + * Anomaly report received and stored by sensor dashboard. + * Sensor name and peer id are not included because they are part of the + * peerstore key. + */ +struct GNUNET_SENSOR_DashboardAnomalyEntry +{ + + /** + * New anomaly status + */ + uint16_t anomalous; + + /** + * Percentage of neighbors reported the same anomaly + */ + float anomalous_neighbors; + +}; + GNUNET_NETWORK_STRUCT_BEGIN /** -- cgit v1.2.3