|
1 | 1 | { |
2 | | - "$schema": "http://json-schema.org/draft-07/schema#", |
3 | | - "title": "snuba_uptime_result", |
4 | | - "definitions": { |
5 | | - "CheckStatus": { |
6 | | - "$ref": "uptime-results.v1.schema.json#/definitions/CheckStatus" |
7 | | - }, |
8 | | - "CheckStatusReason": { |
9 | | - "$ref": "uptime-results.v1.schema.json#/definitions/CheckStatusReason" |
10 | | - }, |
11 | | - "CheckStatusReasonType": { |
12 | | - "$ref": "uptime-results.v1.schema.json#/definitions/CheckStatusReasonType" |
| 2 | + "$schema": "http://json-schema.org/draft-07/schema#", |
| 3 | + "title": "snuba_uptime_result", |
| 4 | + "definitions": { |
| 5 | + "CheckStatus": { |
| 6 | + "$ref": "uptime-results.v1.schema.json#/definitions/CheckStatus" |
| 7 | + }, |
| 8 | + "CheckStatusReason": { |
| 9 | + "$ref": "uptime-results.v1.schema.json#/definitions/CheckStatusReason" |
| 10 | + }, |
| 11 | + "CheckStatusReasonType": { |
| 12 | + "$ref": "uptime-results.v1.schema.json#/definitions/CheckStatusReasonType" |
| 13 | + }, |
| 14 | + "RequestInfo": { |
| 15 | + "$ref": "uptime-results.v1.schema.json#/definitions/RequestInfo" |
| 16 | + }, |
| 17 | + "RequestType": { |
| 18 | + "$ref": "uptime-results.v1.schema.json#/definitions/RequestType" |
| 19 | + } |
| 20 | + }, |
| 21 | + "allOf": [ |
| 22 | + { |
| 23 | + "$ref": "uptime-results.v1.schema.json#/definitions/CheckResult" |
| 24 | + }, |
| 25 | + { |
| 26 | + "type": "object", |
| 27 | + "properties": { |
| 28 | + "organization_id": { |
| 29 | + "type": "integer", |
| 30 | + "description": "The organization ID associated with this check", |
| 31 | + "minimum": 0 |
13 | 32 | }, |
14 | | - "RequestInfo": { |
15 | | - "$ref": "uptime-results.v1.schema.json#/definitions/RequestInfo" |
| 33 | + "project_id": { |
| 34 | + "type": "integer", |
| 35 | + "description": "The project ID associated with this check", |
| 36 | + "minimum": 0 |
16 | 37 | }, |
17 | | - "RequestType": { |
18 | | - "$ref": "uptime-results.v1.schema.json#/definitions/RequestType" |
19 | | - } |
20 | | - }, |
21 | | - "allOf": [ |
22 | | - { |
23 | | - "$ref": "uptime-results.v1.schema.json#/definitions/CheckResult" |
| 38 | + "retention_days": { |
| 39 | + "type": "integer", |
| 40 | + "description": "Number of days to retain this data", |
| 41 | + "minimum": 0, |
| 42 | + "maximum": 65535 |
24 | 43 | }, |
25 | | - { |
26 | | - "type": "object", |
27 | | - "properties": { |
28 | | - "organization_id": { |
29 | | - "type": "integer", |
30 | | - "description": "The organization ID associated with this check", |
31 | | - "minimum": 0 |
32 | | - }, |
33 | | - "project_id": { |
34 | | - "type": "integer", |
35 | | - "description": "The project ID associated with this check", |
36 | | - "minimum": 0 |
37 | | - }, |
38 | | - "retention_days": { |
39 | | - "type": "integer", |
40 | | - "description": "Number of days to retain this data", |
41 | | - "minimum": 0, |
42 | | - "maximum": 65535 |
43 | | - }, |
44 | | - "region_slug": { |
45 | | - "type": ["string", "null"], |
46 | | - "description": "The region identifier where this check was performed" |
47 | | - } |
48 | | - }, |
49 | | - "required": [ |
50 | | - "organization_id", |
51 | | - "project_id", |
52 | | - "retention_days" |
53 | | - ] |
| 44 | + "region_slug": { |
| 45 | + "type": ["string", "null"], |
| 46 | + "description": "The region identifier where this check was performed" |
54 | 47 | } |
55 | | - ], |
56 | | - "description": "A message containing the result of the uptime check for Snuba ingestion." |
| 48 | + }, |
| 49 | + "required": ["organization_id", "project_id", "retention_days"] |
| 50 | + } |
| 51 | + ], |
| 52 | + "description": "A message containing the result of the uptime check for Snuba ingestion." |
57 | 53 | } |
0 commit comments