Skip to content

Commit

Permalink
feat(uptime): Add request{method,header,body} options
Browse files Browse the repository at this point in the history
  • Loading branch information
evanpurkhiser committed Sep 13, 2024
1 parent 91f022b commit 9fa59ef
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/uptime-configs/1/example-post.msgpack
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��subscription_id� d7629c6c82be4f679ee78a0d977856d2�url�http://sentry.io�interval_seconds�,�timeout_ms���request_method�POST�request_headers��Authorization�Beareer 12345�Content-Type�application/json�X-My-Custom-Header�example value�request_body�{"key": "value"}
24 changes: 24 additions & 0 deletions schemas/uptime-configs.v1.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,30 @@
"url": {
"description": "The actual HTTP URL to check.",
"type": "string"
},
"request_method": {
"description": "The HTTP method to use for the request.",
"type": "string",
"enum": [
"GET",
"POST",
"HEAD",
"PUT",
"DELETE",
"PATCH",
"OPTIONS"
]
},
"request_headers": {
"description": "Additional HTTP headers to send with the request",
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"request_body": {
"description": "Additional HTTP headers to send with the request",
"type": "string"
}
},
"required": ["subscription_id", "interval_seconds", "timeout_ms", "url"]
Expand Down

0 comments on commit 9fa59ef

Please sign in to comment.