Get Stats
curl --request GET \
--url https://rts-senthrex.slayers.tech/stats \
--header 'Authorization: Bearer <token>'import requests
url = "https://rts-senthrex.slayers.tech/stats"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://rts-senthrex.slayers.tech/stats', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"total_scans": 123,
"active_scans": 123,
"max_concurrent_scans": 123,
"status_breakdown": {},
"disk_usage": {
"total_size_bytes": 123,
"total_size_mb": 123,
"scan_directories": 123
}
}API Reference
Get stats
Retrieve aggregate statistics.
GET
/
stats
Get Stats
curl --request GET \
--url https://rts-senthrex.slayers.tech/stats \
--header 'Authorization: Bearer <token>'import requests
url = "https://rts-senthrex.slayers.tech/stats"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://rts-senthrex.slayers.tech/stats', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"total_scans": 123,
"active_scans": 123,
"max_concurrent_scans": 123,
"status_breakdown": {},
"disk_usage": {
"total_size_bytes": 123,
"total_size_mb": 123,
"scan_directories": 123
}
}Get stats
Returns aggregated service metrics, including status breakdowns and disk usage totals.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Response
200 - application/json
Successful Response
API statistics response.
Attributes: total_scans: Total number of scans tracked. active_scans: Number of pending or running scans. max_concurrent_scans: Configured concurrency limit. status_breakdown: Counts keyed by scan status. disk_usage: Storage consumption summary.
Show child attributes
Show child attributes
Disk usage breakdown for scan storage.
Attributes: total_size_bytes: Total size in bytes. total_size_mb: Total size in megabytes. scan_directories: Number of scan directories on disk.
Show child attributes
Show child attributes
