Skip to main content

HTTP Runbook

An HTTP runbook issues an HTTP or HTTPS request to a URL, parses the response, and shows the parsed values on the result screen.

When to Use​

Use HTTP for REST API checks, web endpoint availability, webhook validation, token refresh calls, and any task that is already exposed over HTTP.

Fields​

FieldWhat to enter
Runbook NameA short, unique name.
DescriptionOne line on what the runbook returns.
Runbook CategoryDiagnostics, Performance Monitoring, Troubleshooting, System Management, Log Collection, Network Config, or Integration.
MonitorPick by Group, Tag, IP/Host, or Monitors.
Credential ProfileThe HTTP credential (Basic, Bearer, or custom header set). Click Create Credential Profile if none fits.
PortHTTP or HTTPS port. Defaults to 80 or 443.
TimeoutSeconds to wait before marking the run Failed.
URL TypeHTTP or HTTPS.
URL MethodGET or POST.
JSON URLNo or Yes. Yes sends the body as JSON.
URL ContentThe request body. Shown when URL Method is POST.
URL EndpointThe path portion of the URL that is appended to the monitor's host.
ParametersQuery string parameters. Click Add Parameter to add a row of key and value.
HeadersRequest headers. Click Add Header to add a row of name and value.
Script LanguageGO or Python, for the parsing script.
Parsing ScriptTurns the HTTP response into the result values.
Add VariablePrompts the user for a value at run time. Reference it as $$$variable.name$$$ in the parsing script and in URL Endpoint, URL Content, parameters, or headers.

The right-side Sample Parsing Script > HTTP availability panel shows a working parser you can copy and adjust.

Steps​

  1. Open Settings > Plugin Library > Runbook and click Create Runbook Plugin.
  2. Pick HTTP from the top menu.
  3. Pick URL Type and URL Method, and fill URL Endpoint.
  4. Add Parameters and Headers if the endpoint needs them.
  5. Fill the parsing script.
  6. Click Test to issue the request once and show the response and parsed values.
  7. Click Save.