Skip to content

Commit 3c321c3

Browse files
committed
Fixed not including pserver stats version entry in schema doc despite promises from last commit message!
Added version entry to provDB entries and updated schema doc
1 parent 482a25f commit 3c321c3

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

sphinx/source/io_schema/provdb_schema.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Function execution "events" in Chimbuko are labeled by a unique (for each proces
1818

1919
| { *start of schema*
2020
| **"__id"**: *Record index assigned by Sonata*,
21+
| **"version"**: *The schema version*,
2122
| **"call_stack"**: *Function execution call stack (starting with anomalous function execution)*,
2223
| [
2324
| {

sphinx/source/io_schema/pserver_schema.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ The full parameter server data packet JSON object has the following schema:
3030
---------------------
3131

3232
| {
33+
| **'version'**: *The schema version*
3334
| **'created_at'**: *UNIX timestamp given in milliseconds relative to epoch*
3435
| **'anomaly_stats'**: *Statistics of anomalies (object with schema given below). This field will not appear if no data has been received from the AD instances since the last send*
3536
| **'anomaly_metrics'** : *Statistics of anomaly metrics by pid/rid/fid (array of objects with schema below).*

src/ad/ADAnomalyProvenance.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ nlohmann::json ADAnomalyProvenance::getEventProvenance(const ExecData_t &call,
167167
const unsigned long first_event_ts,
168168
const unsigned long last_event_ts) const{
169169
nlohmann::json out = {
170+
{"version", 2},
170171
{"pid", call.get_pid()},
171172
{"rid", call.get_rid()},
172173
{"tid", call.get_tid()},

0 commit comments

Comments
 (0)