Skip to content

Commit

Permalink
feat(uptime): new snuba-uptime-results topic
Browse files Browse the repository at this point in the history
I wanted to avoid duplication in #359, so I wrote #360 to allow us to reference other schemas.
  • Loading branch information
wedamija committed Dec 21, 2024
1 parent b204d4c commit 697f762
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions schemas/snuba-uptime-results.v1.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "snuba_uptime_result",
"type": "object",
"allOf": [
{
"$ref": "file://uptime-results.v1.schema.json#/definitions/CheckResult"
}
],
"properties": {
"organization_id": {
"type": "integer",
"description": "The organization ID associated with this check",
"minimum": 0
},
"project_id": {
"type": "integer",
"description": "The project ID associated with this check",
"minimum": 0
},
"retention_days": {
"type": "integer",
"description": "Number of days to retain this data",
"minimum": 0,
"maximum": 65535
},
"region_slug": {
"type": ["string", "null"],
"description": "The region identifier where this check was performed"
}
},
"required": ["organization_id", "project_id", "retention_days"]
}

0 comments on commit 697f762

Please sign in to comment.