From 49352698a031d5816d04b802ad8e0386a8a73e30 Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Sun, 16 Oct 2022 23:02:52 +0200 Subject: nDPId: Added error event threshold to prevent event spamming which may be abused. Signed-off-by: Toni Uhlig --- schema/error_event_schema.json | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'schema/error_event_schema.json') 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 -- cgit v1.2.3