-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
uptime-results.v1.schema.json
126 lines (126 loc) · 3.72 KB
/
uptime-results.v1.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "uptime_result",
"$ref": "#/definitions/CheckResult",
"definitions": {
"CheckStatus": {
"title": "check_status",
"description": "The status of the check",
"type": "string",
"enum": ["success", "failure", "missed_window"]
},
"CheckStatusReasonType": {
"title": "check_status_reason_type",
"description": "The type of the status reason",
"type": "string",
"enum": ["timeout", "dns_error", "failure"]
},
"RequestType": {
"title": "request_type",
"description": "The type of HTTP method used for the check",
"type": "string",
"enum": ["GET", "POST", "HEAD", "PUT", "DELETE", "PATCH", "OPTIONS"]
},
"CheckStatusReason": {
"title": "check_status_reason",
"description": "Reason for the status, primairly used for failure",
"type": "object",
"properties": {
"type": {
"$ref": "#/definitions/CheckStatusReasonType"
},
"description": {
"description": "A human readable description of the status reason",
"type": "string"
}
},
"required": ["type", "description"]
},
"RequestInfo": {
"title": "request_info",
"description": "Additional information about the request made",
"type": "object",
"properties": {
"request_type": {
"$ref": "#/definitions/RequestType"
},
"http_status_code": {
"description": "Status code of the successful check-in",
"type": ["number", "null"]
}
},
"required": ["request_type", "http_status_code"]
},
"CheckResult": {
"title": "check_result",
"description": "A message containing the result of the uptime check.",
"type": "object",
"additionalProperties": true,
"properties": {
"guid": {
"description": "Unique identifier of the uptime check",
"type": "string"
},
"subscription_id": {
"description": "Identifier of the subscription that this check was run for",
"type": "string"
},
"status": {
"$ref": "#/definitions/CheckStatus"
},
"status_reason": {
"oneOf": [
{
"$ref": "#/definitions/CheckStatusReason"
},
{
"type": "null"
}
]
},
"trace_id": {
"description": "Trace ID associated with the check-in made",
"type": "string"
},
"span_id": {
"description": "Span ID associated with the check-in made. This is a phantom span generated by the uptime-checker, no real span is ingested.",
"type": "string"
},
"scheduled_check_time_ms": {
"description": "Timestamp in milliseconds of when the check was schedule to run",
"type": "number"
},
"actual_check_time_ms": {
"description": "Timestamp in milliseconds of when the check was actually ran",
"type": "number"
},
"duration_ms": {
"description": "Duration of the check in ms. Will be null when the status is missed_window",
"type": ["number", "null"]
},
"request_info": {
"oneOf": [
{
"$ref": "#/definitions/RequestInfo"
},
{
"type": "null"
}
]
}
},
"required": [
"guid",
"subscription_id",
"status",
"status_reason",
"trace_id",
"span_id",
"scheduled_check_time_ms",
"actual_check_time_ms",
"duration_ms",
"request_info"
]
}
}
}