Every time OpsMind runs a health check — whether triggered by a background cron job or by a direct call to one of the real-time status endpoints — the result is persisted as a row in theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/LENINMORENO13/OpsMind/llms.txt
Use this file to discover all available pages before exploring further.
Log table. This endpoint retrieves the 10 most recent of those persisted records for a specific monitor, ordered by timestamp descending (newest first). The log entries expose the raw HTTP status code, response time in milliseconds, operational state, trend direction, and any network error string that was captured during the probe. This makes the history endpoint the primary tool for spotting patterns such as recurring degradation windows, flapping services, or prolonged outages.
Endpoint
A valid JWT issued by the
Format:
/api/v1/auth/login endpoint.Format:
Bearer <token>Path Parameters
The numeric primary-key identifier of the monitor whose log history you want to retrieve. Must be a valid integer — the server calls
parseInt() and returns 400 if the result is NaN. You can discover monitor IDs from the GET /api/v1/monitors list endpoint.Request
This endpoint takes no query parameters or request body.Example
Response
200 — Success
Returns a JSON object with asuccess flag and a data array of up to 10 Log records, ordered by timestamp descending.
Always
true on a successful response.Array of up to 10
Log table records for the requested monitor, newest first.Sample Response
The following example shows three consecutive log entries illustrating a drop, an extended outage, and then a recovery:Log entries are written by two sources: the background cron scheduler (which probes every monitor at its configured
checkInterval, defaulting to every 5 minutes) and any direct call to the real-time status endpoints (GET /status/all or GET /status/:site). Both paths run executeMonitorCheck, which always persists a new Log row before returning. Keep this in mind when interpreting timestamps — gaps smaller than the cron interval indicate manual status checks were made.Error Responses
400 — Invalid ID Format
Returned when the:id path segment cannot be parsed as an integer (e.g., GET /api/v1/monitors/abc/history).
404 — Monitor Not Found
Returned when the provided integer ID does not match any monitor in the database.401 — Unauthorized
Returned when theAuthorization header is missing, malformed, or contains an expired or invalid JWT.
500 — Internal Server Error
Returned when an unexpected error occurs while querying theLog table.