http.md 1.5 KB
Newer Older
1 2 3 4 5 6
# HTTP

If you need to use `Http script` for alerting, create an alert instance in the alert instance management and select the `Http` plugin.

## Parameter Configuration

7 8 9 10 11 12 13
| **Parameter** |                                           **Description**                                           |
|---------------|-----------------------------------------------------------------------------------------------------|
| URL           | The `Http` request URL needs to contain protocol, host, path and parameters if the method is `GET`. |
| Request Type  | Select the request type from `POST` or `GET`.                                                       |
| Headers       | The headers of the `Http` request in JSON format.                                                   |
| Body          | The request body of the `Http` request in JSON format, when using `POST` method to alert.           |
| Content Field | The field name to place the alert information.                                                      |
14 15 16 17 18

## Send Type

Using `POST` and `GET` method to send `Http` request in the `Request Type`.

19
### GET HTTP
20 21 22 23

Send alert information by `Http` GET method.
The following shows the `GET` configuration example:

24
![enterprise-wechat-app-msg-config](../../../../img/alert/http-get-example.png)
25

26
### POST HTTP
27 28 29 30

Send alert information inside `Http` body by `Http` POST method.
The following shows the `POST` configuration example:

31
![enterprise-wechat-app-msg-config](../../../../img/alert/http-post-example.png)