bin/handler-hangouts-chat.rb
After installation, you have to set up a pipe type handler, like so:
{
"handlers": {
"hangouts_chat": {
"type": "pipe",
"command": "handler-hangouts-chat.rb"
}
}
}
This gem also expects a JSON configuration file with the following contents:
{
"hangouts_chat": {
"webhook_url": "YOUR_WEBHOOK_URL",
}
}
cat <<EOF | bundle exec bin/handler-hangouts-chat.rb -u "WEBHOOK_URL"
{
"client": {
"name": "client"
},
"check": {
"status": 1,
"name": "name",
"source": "source",
"output": "Hello, warning"
}
}
EOF