2019-11-05 07:07:16
| Required parameters | Description |
| Name | Enter a unique name for your UbiHTTP request. |
| API Key | API key generated automatically for UbiHTTP requests. |
| Url | Enter the web site address where the data is requested or written, starting with http:// or https://. |
| Method | Select one of the following HTTP request methods to access the web site url: GET,POST,PUT,DELETE. |
| Optional parameters | Description |
| HTTP authorized user name | If your URL requires authentication, enter an authentication user name to access a private channel or website. |
| HTTP authentication password | If your URL needs authentication, enter the authentication password to access the private channel or website. |
| Content type | Enter the MIME or form type of the requested content. For example, application/x-www-form-ubibot. |
| Host | If your ThingHTTP request requires a host address, enter the domain name. For example, webapi.ubibot.cn. |
| Content | Enter the message you want to include in the request. If you want to include variables in the message content, the following types of substitution characters are currently supported: %%trigger_subject%% Subject of Alert Message eg: Alert Reminder - The channel id XXXX (C-xxxx) is out of alert range %%trigger_body%% Full Contents of Alert Message eg: Alert Reminder - The channel id XXXX (C-xxxx) is out of alert range. Sensor:field1 (temperature),trigger value:1 (rule name:high temperature warning). The trigger ID is 2692595. You can log in the console to check it. %%trigger_field%% Trigger_field Value eg: field1 (temperature) %%channel_id%% Channel ID %%name%% Channel Name %%trigger_type%% Trigger Type %%sampled_at%% Data acquisition time (return timestamp) eg: 1603263103 %%rule_type%% Mode of Alert (numeric- Sensor Alert | no_data_check- Offline Alert | status_field- USB Down Alert) eg: numeric %%rule_name%% Rule Name %%rule_condition%% Threshold Value of the Rule %%action_frequency%% (change_only - Once-only Alert | change_only_delayed- Delayed Once-only Alert | always- Continuous Alert | always_delayed- Delayed Continuous Alert) %%frequency%% The delay time set when the alert is Delayed Alert ( unit:s ) eg: 120 %%criteria%% Condition of Alert eg: > %%trigger_id%% Trigger ID eg: 2692622 %%trigger%% Trigger Value eg: 1 |