FW.getEvents
FW.getEvents(reg, from, to, withDismissed, withHidden, severities, tags, count, filters)
Last updated
Was this helpful?
FW.getEvents(reg, from, to, withDismissed, withHidden, severities, tags, count, filters)
Last updated
Was this helpful?
requests the database for events filtered according to the parameter passed
reg
: the registration of the FWOT. if not passed, would return events for all your fleet
from
: the min date to search, moment or YYYY-MM-DDTHH:mm:ss string format
to
: the max date to search, moment or YYYY-MM-DDTHH:mm:ss string format
withDismissed
: include or not the dismissed events
showHidden
: includes or not the hidden events
severities
: an array of severities to narrow the search (OR operator). Severities are one of IGNORE, CREW, WARNING, FAULT, ERROR, INFO
. If not passed or null, takes all the severities
tags
: a list of tags to search for (OR operator).
count
: the max count for the search (throttled to 5000 elements max)
filters
: an object that will append to the query all the URL params from the
The call returns a promise that is catchable with .then(). the callback function returns a list of matching events. If an error occurs, the promise is catchable with .catch()