Skip to main content

Documentation 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.

When you call this endpoint, OpsMind iterates over every monitor stored in the database and fires a real-time HTTP GET request to each registered URL — no cached results are served. Each probe is executed sequentially using checker.js, which enforces a 5-second per-request timeout. The raw HTTP result is then fed into the trend analyzer (analyzer.js), which computes a state and a trend by comparing the current check against the last persisted log entry for that monitor. The final per-monitor snapshot is written to the Log table before being included in the response, so calling this endpoint also advances each monitor’s historical record.

Endpoint

GET /api/v1/monitors/status/all
Authorization
string
required
A valid JWT issued by the /api/v1/auth/login endpoint.
Format: Bearer <token>

Request

This endpoint takes no query parameters, path parameters, or request body.

Example

curl -X GET https://opsmind-e07b.onrender.com/api/v1/monitors/status/all \
  -H "Authorization: Bearer <token>"

Response

200 — Success

Returns a JSON object with a success flag and a data array. Each element represents one registered monitor after its live health check has been executed.
{
  "success": true,
  "data": [ ... ]
}
success
boolean
Always true on a successful response.
data
array
Array of status result objects — one entry per registered monitor.

Sample Response

{
  "success": true,
  "data": [
    {
      "id": 1,
      "name": "Payments API",
      "url": "https://payments.internal.example.com/health",
      "status": 200,
      "message": "OK - Service Operational",
      "trend": "STABLE",
      "state": "UP"
    },
    {
      "id": 2,
      "name": "Auth Service",
      "url": "https://auth.internal.example.com/ping",
      "status": 500,
      "message": "Internal Server Error",
      "trend": "DROP_DETECTED",
      "state": "DOWN"
    },
    {
      "id": 3,
      "name": "Notification Worker",
      "url": "https://notify.internal.example.com/status",
      "status": 0,
      "message": "No Response",
      "trend": "OFFLINE",
      "state": "DOWN"
    }
  ]
}
Each call to this endpoint runs live HTTP probes sequentially — one after another, not in parallel. Total response time therefore scales with the number of registered monitors multiplied by their individual latencies. A deployment with 20 monitors each averaging 300 ms will take roughly 6 seconds to complete. Plan polling intervals and client timeouts accordingly.

Error Responses

401 — Unauthorized

Returned when the Authorization header is missing, malformed, or contains an expired or invalid JWT.
{
  "success": false,
  "error": "Unauthorized"
}

500 — Internal Server Error

Returned when an unexpected error occurs during the health check execution loop or database interaction.
{
  "success": false,
  "error": "Internal server error"
}

Build docs developers (and LLMs) love