Skip to content

Commit

Permalink
Version 0.8.51
Browse files Browse the repository at this point in the history
- Bumped pixl-request to v1.0.32 for new URL header substitution feature.
- Allow Web Hook URLs to include embedded request headers e.g. `[Cookie: foo=bar]`
- Fixes #346
  • Loading branch information
jhuckaby committed Nov 7, 2020
1 parent 8acbbf5 commit b46ce34
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,12 @@ While you can specify a web hook in the UI per each category and/or per each eve

Web hooks are fired at the start and the end of each job (success or fail). A JSON record is sent in the HTTP POST body, which contains all the relevant information about the job, including an `action` property, which will be set to `job_start` at the start and `job_complete` at the end of the job. See the [Web Hooks](#event-web-hook) section below for more on the data format.

To include custom HTTP request headers with your web hook, append them onto the end of the URL using this format: `[Header-Name: Header Value]`. Make sure to include a space before the opening bracket. Example URL:

```
http://myserver.com/webhook/script.php [Authorization: Bearer xoxb-your-token]
```

### web_hook_custom_data

If you need to include custom JSON data with the web hook HTTP POST, you can do so by specifying a `web_hook_custom_data` property, and any keys/values will be merged in with the event data as it is sent to the web hook URL. Example:
Expand Down Expand Up @@ -1202,6 +1208,12 @@ In addition to `job_start` and `job_complete`, there is one other special hook a

Only a small subset of the properties shown above will be included with a `job_launch_failure`, as a job object was never successfully created, so there will be no `hostname`, `pid`, `elapsed`, `log_file_size`, etc.

To include custom HTTP request headers with your web hook, append them onto the end of the URL using this format: `[Header-Name: Header Value]`. Make sure to include a space before the opening bracket. Example URL:

```
http://myserver.com/webhook/script.php [Authorization: Bearer xoxb-your-token]
```

#### Event Resource Limits

![Resource Limits Screenshot](https://pixlcore.com/software/cronicle/screenshots-new/edit-event-res-limits-new.png)
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Cronicle",
"version": "0.8.50",
"version": "0.8.51",
"description": "A simple, distributed task scheduler and runner with a web based UI.",
"author": "Joseph Huckaby <[email protected]>",
"homepage": "https://github.com/jhuckaby/Cronicle",
Expand Down Expand Up @@ -48,7 +48,7 @@
"pixl-tools": "^1.0.23",
"pixl-logger": "^1.0.14",
"pixl-json-stream": "^1.0.6",
"pixl-request": "^1.0.27",
"pixl-request": "^1.0.32",
"pixl-mail": "^1.0.8",
"pixl-perf": "^1.0.5",
"pixl-server": "^1.0.26",
Expand Down

0 comments on commit b46ce34

Please sign in to comment.