Skip to content

Commit 8291637

Browse files
committed
feat(uptime): Add request{method,header,body} options
1 parent 91f022b commit 8291637

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
��subscription_id� d7629c6c82be4f679ee78a0d977856d2�url�http://sentry.io�interval_seconds�,�timeout_ms���request_method�POST�request_headers��Authorization�Bearer 12345�Content-Type�application/json�X-My-Custom-Header�example value�request_body�{"key": "value"}

schemas/uptime-configs.v1.schema.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,30 @@
2929
"url": {
3030
"description": "The actual HTTP URL to check.",
3131
"type": "string"
32+
},
33+
"request_method": {
34+
"description": "The HTTP method to use for the request.",
35+
"type": "string",
36+
"enum": [
37+
"GET",
38+
"POST",
39+
"HEAD",
40+
"PUT",
41+
"DELETE",
42+
"PATCH",
43+
"OPTIONS"
44+
]
45+
},
46+
"request_headers": {
47+
"description": "Additional HTTP headers to send with the request",
48+
"type": "object",
49+
"additionalProperties": {
50+
"type": "string"
51+
}
52+
},
53+
"request_body": {
54+
"description": "Additional HTTP headers to send with the request",
55+
"type": "string"
3256
}
3357
},
3458
"required": ["subscription_id", "interval_seconds", "timeout_ms", "url"]

0 commit comments

Comments
 (0)