Skip to content

Commit

Permalink
Update JSON Schema
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Sep 14, 2023
1 parent 27d8368 commit 73697ea
Showing 1 changed file with 85 additions and 0 deletions.
85 changes: 85 additions & 0 deletions resources/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,14 @@
"title": "Ping Probe",
"description": "Ping Probe Configuration"
},
"websocket": {
"items": {
"$ref": "#/$defs/probe_websocket_WebSocket"
},
"type": "array",
"title": "WebSocket Probe",
"description": "WebSocket Probe Configuration"
},
"notify": {
"$ref": "#/$defs/notify_Config",
"title": "Notification",
Expand Down Expand Up @@ -2356,6 +2364,83 @@
"alert",
"host"
]
},
"probe_websocket_WebSocket": {
"properties": {
"name": {
"type": "string",
"title": "Probe Name",
"description": "the name of probe must be unique"
},
"channels": {
"items": {
"type": "string"
},
"type": "array",
"title": "Probe Channels",
"description": "the channels of probe message need to send to"
},
"timeout": {
"type": "string",
"title": "Probe Timeout",
"description": "the timeout of probe"
},
"interval": {
"type": "string",
"title": "Probe Interval",
"description": "the interval of probe"
},
"labels": {
"$ref": "#/$defs/Labels",
"title": "Probe LabelMap",
"description": "the labels of probe"
},
"failure": {
"type": "integer",
"title": "Failure Threshold",
"description": "the failures threshold to change the status such as 3",
"default": 1
},
"success": {
"type": "integer",
"title": "Success Threshold",
"description": "the success threshold to change the status such as 2",
"default": 1
},
"alert": {
"$ref": "#/$defs/global_NotificationStrategySettings",
"title": "Probe Alert",
"description": "the alert strategy of probe"
},
"url": {
"type": "string",
"format": "uri",
"title": "WebSocket URL",
"description": "WebSocket URL to probe"
},
"proxy": {
"type": "string",
"title": "Proxy Server",
"description": "proxy to use for the HTTP request"
},
"headers": {
"patternProperties": {
".*": {
"type": "string"
}
},
"type": "object",
"title": "HTTP Headers",
"description": "HTTP headers for the initial HTTP request"
}
},
"additionalProperties": false,
"type": "object",
"required": [
"name",
"alert",
"url"
]
}
}
}

0 comments on commit 73697ea

Please sign in to comment.