Monitors
Configure automated checks to monitor your infrastructure.
List Monitors
Retrieve all configured monitors.
HTTP Method & URL: GET /api/admin/UptimeTest
Request
- Headers
- cURL
| Name | Value | Required | Description |
|---|---|---|---|
X-API-KEY | string | Yes | Your unique API key. |
curl -X GET "https://stg.itechops.com/api/admin/UptimeTest" \
-H "X-API-KEY: your_api_key_here"
Responses
- 200 OK
- 401 Unauthorized
- 500 Server Error
Description: Success. Returns all configured monitors.
[
{
"UptimeTestId": "3fa85f64-5717-4562-b3fc-2c963f66afc1",
"Type": "HTTP",
"Name": "Home Page Check",
"Url": "https://example.com",
"Interval": 60,
"Availabilitypercentage": 100.0,
"AvgResponseTime": 150.5
}
]
Description: Authentication failed.
Description: Internal server error.
Create a Monitor
Add a new monitor.
HTTP Method & URL: POST /api/admin/UptimeTest/AddUptime
Request
- Headers
- Payload
- cURL
| Name | Value | Required | Description |
|---|---|---|---|
X-API-KEY | string | Yes | Your unique API key. |
Content-Type | application/json | Yes | Sending JSON data. |
Body: UptimeTestCreateModel
{
"Name": "API Health",
"Type": "HTTP",
"Url": "https://api.example.com/health",
"Interval": 300,
"Timeout": 10,
"HTTP_Method": "GET"
}
curl -X POST "https://stg.itechops.com/api/admin/UptimeTest/AddUptime" \
-H "X-API-KEY: your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"Name": "API Health",
"Type": "HTTP",
"Url": "https://api.example.com/health",
"Interval": 300,
"Timeout": 10,
"HTTP_Method": "GET"
}'
Responses
- 200 OK
- 400 Bad Request
- 401 Unauthorized
- 500 Server Error
Description: Success. Returns the created monitor ID.
{
"Success": true,
"Result": "3fa85f64-5717-4562-b3fc-2c963f66afc9",
"Message": "Uptime test created"
}
Description: Invalid monitor configuration.
Description: Authentication failed.
Description: Internal server error.
Advanced Operations
- PUT
/api/admin/UptimeTest: Update general test settings. - GET
/api/admin/UptimeTest/UptimeTestSummary: Get high-level summary of all tests. - GET
/api/admin/UptimeTest/{id}: Detailed test configuration. - DELETE
/api/admin/UptimeTest/{id}: Remove a test.
Actions & Alerts
- PUT
/api/admin/UptimeTest/UptimeAction: Manually trigger or pause a test action. - PUT
/api/admin/UptimeTest/UptimeAlertAdmin: Trigger a specific admin alert. - GET/PUT/DELETE
/api/admin/UptimeTest/ErrorRule: Manage custom error threshold rules.
Responses
- 200 OK
- 401 Unauthorized
- 500 Server Error
Description: Success.
Description: Authentication failed.
Description: Internal server error.
Tags & Resources
- POST/GET
/api/admin/UptimeTest/tags: Manage global uptime tags. - POST/GET
/api/admin/UptimeTest/uptime-tags: Link tags to specific tests. - GET
/api/admin/UptimeTest/getSlackDetail: Retrieve Slack notification details for a test.
Responses
- 200 OK
- 401 Unauthorized
Description: Success.
Description: Authentication failed.
