Skip to content

Commit d671183

Browse files
feat(uptime): Add additional "incident_status" to snuba results (#386)
1 parent 9bd9c26 commit d671183

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

examples/snuba-uptime-results/1/failure.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,6 @@
1919
"project_id": 456,
2020
"retention_days": 90,
2121
"region": "us-east-1",
22-
"environment": "production"
22+
"environment": "production",
23+
"incident_status": 1
2324
}

examples/snuba-uptime-results/1/success.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@
1616
"project_id": 456,
1717
"retention_days": 90,
1818
"region": "us-east-1",
19-
"environment": "production"
19+
"environment": "production",
20+
"incident_status": 0
2021
}

examples/snuba-uptime-results/1/timeout.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,6 @@
1717
},
1818
"organization_id": 123,
1919
"project_id": 456,
20-
"retention_days": 90
20+
"retention_days": 90,
21+
"incident_status": 0
2122
}

schemas/snuba-uptime-results.v1.schema.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@
2727
"environment": {
2828
"type": "string",
2929
"description": "The environment associated with this check"
30+
},
31+
"incident_status": {
32+
"type": "integer",
33+
"description": "Indicates this results is part of a detected incident",
34+
"minimum": 0,
35+
"maximum": 1
3036
}
3137
},
3238
"required": ["organization_id", "project_id", "retention_days"]

0 commit comments

Comments
 (0)