跳到主要内容

TCP Monitoring with YAML

List of YAML parameters and examples for the "TCP Monitoring" action

YAML parameters for TCP Monitoring

名称类型描述
action
必填
StringThe ID of the action.
type
必填
StringThe type of the action. Should be set to TCP.
destination
必填
StringThe target URL.
port
必填
StringThe port for the connection.
post_dataStringThe data that will be sent.
textStringText that should or should not be present in the response.

YAML example for TCP Monitoring

actions:
- action: "Check site status"
type: "TCP"
port: "4567"
post_data: "test"
text: "ok"
destination: "$site"
variables:
- key: "site"
value: "app.buddy.works"