Skip to main content
The error-count endpoint returns the number of events per day where the error field is non-null and non-empty. Use this to monitor your agent’s failure rate over time and quickly spot days with elevated error activity. Combined with the path-timeseries endpoint, you can calculate the error rate per path to identify which specific endpoints are most prone to failures.
To calculate error rate per path, divide each day’s error_count from this endpoint by the corresponding day’s total event count from the path-timeseries endpoint.

Request

string
required
JWT identifying the authenticated user.
string
required
UUID of the agent to retrieve error data for.
string
required
UUID of the project the agent belongs to.

Query parameters

string
required
Start of the date range, inclusive. Must be in YYYY-MM-DD format.
string
required
End of the date range, inclusive. Must be in YYYY-MM-DD format and must not be before start_date.

Response

number
required
1 on success.
string
required
The agent UUID from the request headers.
string
required
The project UUID from the request headers.
object[]
required
Daily error count entries, ordered by date ascending.
Only dates with at least one error event are included. Days where every event succeeded (i.e. error is null or "" for all events) are omitted from the response. An event is counted as an error when error IS NOT NULL AND error != ''.

Errors