LoginSignup
40

More than 5 years have passed since last update.

Re:dash のグラフを画面キャプチャして投稿してくれる slack bot を書いたよ!

Last updated at Posted at 2016-09-12

こんな感じで動きます。

screenshot.png

メッセージのフォーマットは、@botname <visualization URL>という形式。
例: @redashbot https://your-redash-server.example.com/queries/1#2

【Slack×Re:dash】リアルタイムKPI通知をコード0行で実現する

上の画像でもやってますが、上記記事に書いてある、Slack の reminder 機能との組み合わせでも動作します。

公式インテグレーションと機能は重複するのですが、以下のモチベーションで書きました。

  • 公式とはいえ、外部になんでもできる API Key を預けるのは微妙
  • Private な環境に立っている re:dash とも連携できる
  • Heroku でさくっと動かせる (Hobby プラン以上が必要なのでお金がかかります)
  • 複数の re:dash にも対応できる(予定) 対応しました! https://github.com/hakobera/redashbot/pull/1 Thanks @yuya_takeyama

早速使ってますが、便利です。

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
40