跳到主要内容

Web Monitoring with YAML

List of YAML parameters and examples for the "Web Monitoring" action.

YAML parameters for Web Monitoring

名称类型描述
action
必填
StringThe ID of the action.
type
必填
StringThe type of the action. Should be set to WEB.
destination
必填
StringThe target URL.
headersHeader[]The headers that will be sent with the request.
loginStringThe username required to connect to the server.
passwordStringThe password required to connect to the server.
portStringThe port for the connection.
post_dataStringThe data that will be sent.
textStringThe text that should or should not be present in the response.
text_existenceBooleanDefines whether the response should or should not contain given text. If set, the text argument is required.

YAML example for Web Monitoring

actions:
- action: "Check https://buddy.works/status status"
type: "WEB"
login: "owner@buddy.works"
password: "supersecretpassword"
headers:
- name: "User-Agent"
value: "Buddy"
- name: "Content-Type"
value: "application/json"
post_data: "{\r\n \"test\": true\r\n}"
text: "fail"
text_existence: true
destination: "https://buddy.works/status"