×
Back to Opsview FAQ
Internal documentation only
This page has been marked as draft.
How to pull Event data within a time range via the API
Sometimes, you might prefer retrieving Event data from the API rather than Notification data. One primary reason for this preference is that, by default, in most checks, three consecutive failures are required before a Notification is generated Copied
There are specific scenarios where opting for Event data proves advantageous, especially if you prioritize precise availability reporting. In such cases, individuals often favor utilizing Events over Notifications. To accomplish this, you can utilize the following API call Copied
/opt/opsview/coreutils/bin/opsview_rest --username admin --password '<AccountPassword>' --data-format=json GET /rest/event?startTime=<desired date> | jq '.'
The date for your query should adhere to the following format:
2023-12-07+12:00:00
For further details on this query, refer to the following link to explore all available parameters:
API Events Listing Documentation
["Geneos"]
["FAQ"]