Anomalies
Get Anomalies For Project
GET
apiKeyAuthheader
x-api-key<token>FastStats API key. Pass it in the x-api-key header or as a Bearer token in the Authorization header.
idOrSlug*stringgrain?|nullat?string|nullSuccess
application/json- response
grain*stringValue in
"hour""day"from*number|to*number|baselineFrom*number|minHistory*number|seriesScanned*number|health*array<>incidents*array<>suppressed*number|newEvents*array<>curl -X GET 'https://api.faststats.dev/v0/projects/string/anomalies'Example Response
{ "grain": "hour", "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, "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, "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 } ]}curl -X GET 'https://api.faststats.dev/v0/projects/string/anomalies'{
"grain": "hour",
"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,
"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,
"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
}
]
}