aboutsummaryrefslogtreecommitdiff
path: root/schema
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2022-10-16 23:02:52 +0200
committerToni Uhlig <matzeton@googlemail.com>2022-10-17 06:36:30 +0200
commit49352698a031d5816d04b802ad8e0386a8a73e30 (patch)
tree2e6bdaa874d7ffb084cc8b44530b72967e8bd08b /schema
parent6292102f93086d2d61de874640f0b87c89c02b44 (diff)
nDPId: Added error event threshold to prevent event spamming which may be abused.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'schema')
1 files changed, 23 insertions, 0 deletions
diff --git a/schema/error_event_schema.json b/schema/error_event_schema.json
index ebeb695fa..b81140eab 100644
--- a/schema/error_event_schema.json
+++ b/schema/error_event_schema.json
@@ -7,6 +7,10 @@
"error_event_id",
"error_event_name",
"datalink",
+ "threshold_n",
+ "threshold_n_max",
+ "threshold_time",
+ "threshold_ts_usec",
"global_ts_usec"
],
@@ -115,6 +119,25 @@
"maximum": 292
},
+ "threshold_n": {
+ "type": "number",
+ "minimum": 1
+ },
+
+ "threshold_n_max": {
+ "type": "number",
+ "minimum": 1,
+ "maximum": 65535
+ },
+
+ "threshold_time": {
+ "type": "number"
+ },
+
+ "threshold_ts_usec": {
+ "type": "number"
+ },
+
"layer_type": {
"type": "number",
"minimum": 0