Slackboard is a proxy server for Slack. It accepts a HTTP request.
Slackboard has some APIs.
Accepts a HTTP request for notification to Slack.
The JSON below is a request-body example.
{
"tag": "random",
"host": "localhost",
"text": "notification text",
"sync": false
}
name | type | description | required | note |
---|---|---|---|---|
tag | string | tag for selecting channel | o | |
host | string | hostname(client) | - | |
text | string | notification text | o | |
level | string | message/info/warn/crit | - | default: message |
title | string | message title | - | |
sync | bool | synchronous notification | - | default: false |
The JSON below is a response-body example from Slackboard. In this case, a status is 200(OK).
{
"message" : "ok",
}
When Slackboard receives an invalid request(for example, malformed body is included), a status of response it returns is 400(Bad Request).
Accepts a HTTP request for notification to Slack.
The JSON below is a request-body example.
{
"payload": {
"channel": "random",
"username": "slackboard",
"icon_emoji": ":clipboard:",
"text": "notification text",
"parse": "full",
"attachments": [...]
},
"sync": false
}
name | type | description | required | note |
---|---|---|---|---|
payload | object | payload object | o | |
payload.channel | string | channel name | o | |
payload.username | string | user name | - | default: slackboard |
payload.icon_emoji | string | icon emoji | - | default: 📋 |
payload.text | string | notification text | o | |
payload.parse | string | parsing mode | - | default: full |
payload.attachments | object | attachments | - | see https://api.slack.com/docs/attachments |
sync | bool | synchronous notification | - | default: false |
The JSON below is a response-body example from Slackboard. In this case, a status is 200(OK).
{
"message" : "ok",
}
When Slackboard receives an invalid request(for example, malformed body is included), a status of response it returns is 400(Bad Request).
Returns a statictics for golang-runtime. See golang-stats-api-handler about details.