Skip to content

Commit af07f35

Browse files
committed
feat(uptime): new snuba-uptime-results topic
I wanted to avoid duplication in #359, so I wrote #360 to allow us to reference other schemas.
1 parent ba6598f commit af07f35

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"title": "snuba_uptime_result",
4+
"type": "object",
5+
"allOf": [
6+
{
7+
"$ref": "file://uptime-results.v1.schema.json#/definitions/CheckResult"
8+
}
9+
],
10+
"properties": {
11+
"organization_id": {
12+
"type": "integer",
13+
"description": "The organization ID associated with this check",
14+
"minimum": 0
15+
},
16+
"project_id": {
17+
"type": "integer",
18+
"description": "The project ID associated with this check",
19+
"minimum": 0
20+
},
21+
"retention_days": {
22+
"type": "integer",
23+
"description": "Number of days to retain this data",
24+
"minimum": 0,
25+
"maximum": 65535
26+
},
27+
"region_slug": {
28+
"type": ["string", "null"],
29+
"description": "The region identifier where this check was performed"
30+
}
31+
},
32+
"required": ["organization_id", "project_id", "retention_days"]
33+
}

0 commit comments

Comments
 (0)