aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_sensor_util_lib.h
diff options
context:
space:
mode:
authorOmar Tarabai <tarabai@devegypt.com>2014-08-15 18:44:06 +0000
committerOmar Tarabai <tarabai@devegypt.com>2014-08-15 18:44:06 +0000
commit34e40e006af57ec7cb7c69acf0273321550117dd (patch)
tree1f4a234675455ab8306dcdfdc8bbc98a3979c6d7 /src/include/gnunet_sensor_util_lib.h
parentfd6ca7a4a3366b3166bc7c4c5e02af6f11c917ef (diff)
downloadgnunet-34e40e006af57ec7cb7c69acf0273321550117dd.tar.gz
gnunet-34e40e006af57ec7cb7c69acf0273321550117dd.zip
sensor: test case + fixes
Diffstat (limited to 'src/include/gnunet_sensor_util_lib.h')
-rw-r--r--src/include/gnunet_sensor_util_lib.h20
1 files changed, 20 insertions, 0 deletions
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
189 189
190}; 190};
191 191
192/**
193 * Anomaly report received and stored by sensor dashboard.
194 * Sensor name and peer id are not included because they are part of the
195 * peerstore key.
196 */
197struct GNUNET_SENSOR_DashboardAnomalyEntry
198{
199
200 /**
201 * New anomaly status
202 */
203 uint16_t anomalous;
204
205 /**
206 * Percentage of neighbors reported the same anomaly
207 */
208 float anomalous_neighbors;
209
210};
211
192GNUNET_NETWORK_STRUCT_BEGIN 212GNUNET_NETWORK_STRUCT_BEGIN
193 213
194/** 214/**