WILCO.getEventsStats
WILCO.getEventsStats(reg, req)
return event statistics on a fwot. The results can be aggregated
const stats = await WILCO.getEventsStats(FWOT.reg,
{
// severities: ["WARNING"],
tags: this.tags,
from: this.momentWindow[0].format('YYYY-MM-DDTHH:mm:ss'),
to: this.momentWindow[1].format('YYYY-MM-DDTHH:mm:ss'),
dismissed: false,
aggregates: [{
kind: "TAG"
}]
}
);Here are an example of requests and responses to the new API endpoint :
Job ALL-COUNT : count all events
Job DATE-RANGE : count all events between two dates
Job AFTER : count all events after a date
Job BEFORE : count all events before a date
Job KNOWN-REG: count all the events of reg FW-LUC
Job KNOWN-TAG: count all the events tagged REP2
Job SEVERITY-INFO: count all the events with the severity INFO
Job AGGR-REG: count all the events, aggregate results by reg
Job AGGR-TAG: count all the events, aggregate results by tags
Job AGGR-SEV: count all the events, aggregate results by severity
Job AGGR-REG-TAG: count all the events, aggregate results by reg and tag
Job COMBINED: count all the events between two dates that have the severity INFO and are tagged FLYING, aggregate results by reg
Client request:
Server response:
Last updated
Was this helpful?