Send HTTP Requests on Workflow

Chaos Mesh Workflow provides a Task node to support any workload, which function is similar to the Job in Kubernetes. To provide a better user experience, Chaos Dashboard provides a template based on Task. With this template, you can easily create HTTP requests in WebUI. This document describes how to create an HTTP request through Chaos Dashboard.

note

Chaos Mesh does NOT have the workflow node of the type HTTPRequest. This feature is based on Task node, and you can send HTTP requests more conveniently by using the feature.

note

This feature is currently an experimental feature, so it is not recommended to use this feature in the production environment. The configuration and behavior of the feature might change in the future.

Select “HTTP Request” as the task type:

Configure the followings:

  • request URL: https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX
  • request method: POST
  • request body: {"text": "Hello, world."} , then check “For JSON content”.

Click the “Submit” button to see the task in the preview window:

http-request-task-node-preview

Field description

The value of the name field of the generated task node adds the suffix http-request to the end of “name”.