Download OpenAPI specification:Download
API for monitoring and managing service pollers in the ServiceRadar system
[- {
- "first_seen": "string",
- "is_healthy": true,
- "last_update": "string",
- "metrics": [
- {
- "response_time": 42,
- "service_name": "postgres",
- "timestamp": "2025-04-24T14:15:22Z"
}
], - "poller_id": "string",
- "services": [
- {
- "available": true,
- "details": [
- 0
], - "message": "string",
- "name": "string",
- "type": "string"
}
], - "uptime": "string"
}
]Retrieves detailed information about a specific poller
| id required | string Poller ID |
{- "first_seen": "string",
- "is_healthy": true,
- "last_update": "string",
- "metrics": [
- {
- "response_time": 42,
- "service_name": "postgres",
- "timestamp": "2025-04-24T14:15:22Z"
}
], - "poller_id": "string",
- "services": [
- {
- "available": true,
- "details": [
- 0
], - "message": "string",
- "name": "string",
- "type": "string"
}
], - "uptime": "string"
}Retrieves detailed information about a specific service monitored by a poller
| id required | string Poller ID |
| service required | string Service name |
{- "available": true,
- "details": [
- 0
], - "message": "string",
- "name": "string",
- "type": "string"
}Retrieves SNMP metrics data for a specific poller within the given time range
| id required | string Poller ID |
| start required | string Start time in RFC3339 format |
| end required | string End time in RFC3339 format |
[- {
- "is_delta": true,
- "oid_name": "string",
- "scale": 0,
- "timestamp": "string",
- "value": null,
- "value_type": "string"
}
]Executes a ServiceRadar Query Language (SRQL) query against the database
SRQL query string
| query | string |
{- "query": "show devices where ip = '192.168.1.1'"
}{- "error": "string",
- "results": [
- { }
]
}Logs in a user with username and password and returns authentication tokens
User credentials
| password | string Password for authentication |
| username | string Username for authentication |
{- "password": "password123",
- "username": "admin"
}{- "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
- "expires_at": "2025-04-25T12:00:00Z",
- "refresh_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}Refreshes an expired authentication token
Refresh token
| refresh_token | string Refresh token from previous authentication |
{- "refresh_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}{- "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
- "expires_at": "2025-04-25T12:00:00Z",
- "refresh_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}Completes OAuth authentication flow and returns authentication tokens
| provider required | string OAuth provider (e.g., 'google', 'github') |
{- "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
- "expires_at": "2025-04-25T12:00:00Z",
- "refresh_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}Retrieves network performance metrics measured by rperf for a specific poller within a time range
| id required | string Poller ID |
| start | string Start time in RFC3339 format (default: 24h ago) |
| end | string End time in RFC3339 format (default: now) |
[- {
- "bits_per_second": 943215000,
- "bytes_received": 12582912,
- "bytes_sent": 12582912,
- "duration": 10.05,
- "error": "connection refused",
- "jitter_ms": 0.85,
- "loss_percent": 0.02,
- "name": "rperf_tcp_test",
- "packets_lost": 2,
- "packets_received": 9998,
- "packets_sent": 10000,
- "success": true,
- "target": "192.168.1.1",
- "timestamp": "2025-04-24T14:15:22Z"
}
]Retrieves CPU usage metrics for a specific poller within a time range
| id required | string Poller ID |
| start | string Start time in RFC3339 format (default: 24h ago) |
| end | string End time in RFC3339 format (default: now) |
[- {
- "core_id": 0,
- "timestamp": "2025-04-24T14:15:22Z",
- "usage_percent": 45.2
}
]Retrieves disk usage metrics for a specific poller within a time range
| id required | string Poller ID |
| mount_point | string Filter by specific mount point |
| start | string Start time in RFC3339 format (default: 24h ago) |
| end | string End time in RFC3339 format (default: now) |
[- {
- "disks": [
- {
- "mount_point": "/var",
- "timestamp": "2025-04-24T14:15:22Z",
- "total_bytes": 107374182400,
- "used_bytes": 10737418240
}
], - "timestamp": "string"
}
]Retrieves memory usage metrics for a specific poller within a time range
| id required | string Poller ID |
| start | string Start time in RFC3339 format (default: 24h ago) |
| end | string End time in RFC3339 format (default: now) |
[- {
- "memory": {
- "timestamp": "2025-04-24T14:15:22Z",
- "total_bytes": 17179869184,
- "used_bytes": 4294967296
}, - "timestamp": "string"
}
]