Skip to main content
POST
/
v1
/
anomalies
/
detect
Run anomaly detection
curl --request POST \
  --url https://grantex-auth-dd4mtrt2gq-uc.a.run.app/v1/anomalies/detect \
  --header 'Authorization: Bearer <token>'
{
  "detectedAt": "2023-11-07T05:31:56Z",
  "total": 123,
  "anomalies": [
    {
      "id": "<string>",
      "type": "rate_spike",
      "severity": "low",
      "agentId": "<string>",
      "principalId": "<string>",
      "description": "<string>",
      "metadata": {},
      "detectedAt": "2023-11-07T05:31:56Z",
      "acknowledgedAt": "2023-11-07T05:31:56Z"
    }
  ]
}

Authorizations

Authorization
string
header
required

Developer API key

Response

200 - application/json

Detection results

detectedAt
string<date-time>
total
integer
anomalies
object[]