Skip to Content
Anomalies

Get Anomalies For Project

GET
/v0/projects/{idOrSlug}/anomalies

Authorization

apiKeyAuth
headerx-api-key<token>

FastStats API key. Pass it in the x-api-key header or as a Bearer token in the Authorization header.

Path Parameters

idOrSlug*string

Query Parameters

grain?string
Value in"hour""day"
at?string

Response Body

Success

application/json
  1. response
grain*string
Value in"hour""day"
timeZone*string
from*number|
to*number|
baselineFrom*number|
minHistory*number|
seriesScanned*number|
health*array<>
incidents*array<>
suppressed*number|
newEvents*array<>
Example Request
curl -X GET 'https://api.faststats.dev/v0/projects/string/anomalies'
Example Response
{
  "grain": "hour",
  "timeZone": "string",
  "from": 0,
  "to": 0,
  "baselineFrom": 0,
  "minHistory": 0,
  "seriesScanned": 0,
  "health": [
    {
      "metric": "string",
      "label": "string",
      "unit": "count",
      "polarity": 1,
      "current": 0,
      "expected": 0,
      "status": "normal",
      "chart": {
        "from": 0,
        "bucketSeconds": 0,
        "timeZone": "string",
        "values": [
          0
        ],
        "expected": [
          0
        ],
        "lower": [
          0
        ],
        "upper": [
          0
        ]
      }
    }
  ],
  "incidents": [
    {
      "id": "string",
      "kind": "anomaly",
      "severity": "critical",
      "title": "string",
      "start": 0,
      "end": 0,
      "ongoing": true,
      "findings": [
        {
          "id": "string",
          "metric": "string",
          "label": "string",
          "unit": "count",
          "polarity": 1,
          "dimension": "string",
          "value": "string",
          "direction": "increase",
          "kind": "anomaly",
          "start": 0,
          "end": 0,
          "ongoing": true,
          "observed": 0,
          "expected": 0,
          "change": 0,
          "peakScore": 0,
          "contribution": 0,
          "chart": {
            "from": 0,
            "bucketSeconds": 0,
            "timeZone": "string",
            "values": [
              0
            ],
            "expected": [
              0
            ],
            "lower": [
              0
            ],
            "upper": [
              0
            ]
          }
        }
      ],
      "absorbed": 0,
      "causes": [
        {
          "type": "deploy",
          "title": "string",
          "detail": "string",
          "at": 0,
          "reference": "string"
        }
      ]
    }
  ],
  "suppressed": 0,
  "newEvents": [
    {
      "name": "string",
      "firstSeen": 0,
      "events": 0
    }
  ]
}