An open API service indexing awesome lists of open source software.

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

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}"
```