https://github.com/is2ei/alerty-plugin-typetalk
Alerty plugin for Typetalk
https://github.com/is2ei/alerty-plugin-typetalk
Last synced: over 1 year ago
JSON representation
Alerty plugin for Typetalk
- Host: GitHub
- URL: https://github.com/is2ei/alerty-plugin-typetalk
- Owner: is2ei
- License: mit
- Created: 2019-01-21T01:16:59.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-24T01:04:13.000Z (over 7 years ago)
- Last Synced: 2025-01-12T05:28:46.745Z (over 1 year ago)
- Language: Ruby
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Alerty::Plugin::Typetalk
===
[Alerty](https://github.com/sonots/alerty) plugin for [Typetalk](https://www.typetalk.com/)
## Installation
```
$ gem install alerty-plugin-typetalk
```
## Type
`typetalk`
## Configuration
`token`: Typetalk token
`topic_id`: Typetalk topic id
`template`: Template text. You can use placeholders listed below.
## Placeholders
`${hostname}`: hostname which rans the command
`${command}`: a given command
`${exitstatus}`: exitstatus of the executed command
`${output}`: output of the executed command
## Example configuration
```yaml
log_path: STDOUT
log_level: debug
plugins:
- type: typetalk
token: xxxxxxxxxxxxxxxxxxxx
topic_id: 12345
template: "FAILURE: [${hostname}] ${command}\n${output}"
```