POST
/
cases
/
stats
/
severity
Get case statistics by severity
curl --request POST \
  --url https://api.wirespeed.co/cases/stats/severity \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "days": 123
}'
[
  {
    "severity": "INFORMATIONAL",
    "count": 123,
    "percentage": 123
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
days
number
required

Number of days for chart data (30, 60, or 90)

Response

200 - application/json

Returns case counts grouped by severity

severity
enum<string>
required

Case severity level

Available options:
INFORMATIONAL,
LOW,
MEDIUM,
HIGH,
CRITICAL
count
number
required

Number of cases with this severity

percentage
number
required

Percentage change from previous period