You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
Nightmare TL;DR Slack + Hubot + Nightmare + CircleCI ãå©ç¨ãã¦Slackã«NewRelicã®ã¡ããªã¯ã¹ã°ã©ããBIã¬ãã¼ããæããããã«ãã Slackãªã©ãã£ãããã¼ã«ã¨ã®integrationãç¡ããã¼ã«ã§ãã°ã©ããæ稿åºæ¥ãããã«ãã ä¼ç¤¾ã®KPIããµã¼ãã¹ã®ç¶æ ãSlackä¸ããhubotãå©ç¨ãã¦èª°ã§ãç°¡åã«ç¢ºèªãåºæ¥ãããã«ãªã£ã ä»çµã¿ Slackä¸ã§Hubotãå¼ã³åºã(hubot-cronã§èªåã§ç¨¼åãã) HubotãCircleCIã®APIãå©ãã¦ãrebuid CircleCIä¸ã§Nightmareãå©ç¨ããNewRelicãBIãã¼ã«ã®ã¹ã¯ãªã¼ã³ã·ã§ãããåå¾ããs3ã«ã¢ãããã¼ã Slackã®Incoming webhooksãå©ç¨ãã¦ã°ã©ããæ稿ãã NewRelicã«ãã°ã¤ã³ãã¦ã¹ã¯ãªã¼ã³ã·ã§ãããåãã¹
Raspberry PI 㨠Hubot ã使ã£ã¦ãSlack ãã観èæ¤ç©ã®æ°´ãããå®è¡ã§ããè£ ç½®ãä½ãã¾ããã ææ Raspberry Pi Type A 256MB GPIO æ¡å¼µãã¼ã ã¸ã£ã³ãã¯ã¤ã¤ ã¹ãã¼ã«ã¼ã±ã¼ãã« ã¨ããã·æ¥çå¤ ç¯æ²¹ç¼¶ ã¢ã«ãç· S8050 ãã©ã³ã¸ã¹ã¿ (è©°åãã§è³¼å ¥) ç¯æ²¹ãã³ã ãã¥ã¼ãã¸ã§ã¤ã³ã ã·ãªã³ã³ãã¥ã¼ã (4mm x 6mm) ã³ã«ã¯æ åè·¯ ç¯æ²¹ãã³ã ã«ç´æ¥ã¯ãã ä»ããã¦ã+- 極ãã¹ãã¼ã«ã¼ã±ã¼ãã«ã§ãã¬ãããã¼ãã«å¼ã£å¼µã£ã¦ãã¦ãRaspberry Pi ãã 5V é»æºãä¾çµ¦ãã¾ãã S8050 ãã©ã³ã¸ã¹ã¿ã«ã¯ããããã E (ã¨ããã¿ã¼): Raspberry Pi GND B (ãã¼ã¹): Raspberry Pi GPIO 0 C (ã³ã¬ã¯ã¿ã¼): ç¯æ²¹ãã³ãã®ã- 極 ãæ¥ç¶ããã¦ãã¾ãã ãã¤ãã®åé æ¤ç©ã¸ã®æ°´ã®
slackã§hubotã«é ¼ãã¨ãã¢ããã¦ãããããã«ãªã£ããhubotã¯ããã¦ä½¿ã£ãã å¢äºç ã¯ã¤ã³ãã¢æ´¾ãªã®ã§ãããã¼ã¯ã¼ã«ãããããã«ãã¢ãéããã ãã¨é¨å±ãæå®ãã¦ã¹ãã¼ã«ã¼ããmacã®sayãæµããã iBeaconã§ä½ç½®ãã¯ãã£ã¦ã誰ãè¿ã¥ããã¨ãéç¥ãããã 試é¨çã«ãè¿ã¥ããããã¢åæã«éãããã«ãã¦ã¿ãã é»æ°ã¤ãããã¨ããããããã»ã³ãµã¼å¤ã®å¤§ããªå¤åãéç¥ãããã hubotãslackã«ã¤ãªãã£ã¦ã¦ãã³ãã³ããå¾ ã¡åããããã¦ããã»ã³ãµã¼ã¨ãå®ä¸çç³»ã®æä½ã¯node-lindaã«æãã¦ãã node-lindaã®ä¸ã«ã¯raspberry pi+arduino+ã»ã³ãµããµã¼ãã¢ã¼ã¿è²ã ã®ã»ããã¨ããdockerã³ã³ããã¨ããããããã¶ãä¸ãã£ã¦ã¦ãè²ã å¦çãã¦ãã ãã®ãã¡ããããæ¸ãç¾½ç®ã«ãªãã¨æã
ã¦ãã®ä¼ç¤¾ã§ã¯Hipchatã¨GitHubãéçºã®ã³ãã¥ãã±ã¼ã·ã§ã³ã®ä¸å¿ã«ãã¦ããã ã ãã ã人ãå¢ãã¦ããã¨ã以åãããã«ãªã¯ã®æ°ãããã ãå¢ãã¦ãã¬ãã¥ã¼ã§1æ¥çµãã£ã¦ãã¾ã人ãã§ã¦ããã æããä»æ§ãç¥ã£ã¦ãã人ã«ã¬ãã¥ã¼ãæããããã¡ã§éä¸ããããã¨ãã¯ä»ã®ä¼ç¤¾ã§ããããã話ãã ã¨æãã ã¬ãã¥ã¼ã¯èªåã®ã¿ã¹ã¯ã¨åæ§ã«å¤§äºã ãã©ãããã§èªåã®ã¿ã¹ã¯ãå ¨ãã§ããªããªã£ãããæ°ããå ¥ã£ã¦ãã人ãã¬ãã¥ã¼ããæ©ä¼ã失ãã®ã¯ãã¾ããããªãã ã¨ããã®ããã£ã¦ãHubotãç«ã¦ã¦ã¿ã¦ãã«ãªã¯ã®ã¬ãã¥ã¢ã¼ãã©ã³ãã ã§æ¯ããããã«ãã¦ã¿ãã Hubotã¨ããã®ã¯ãåç¥Hipchatã®botã¨ãã¦åãããã°ã©ã ã§ãbotã«ã³ãã³ããæå®ãã¦ãªã¢ã¼ãå®è¡ãããããç¹å®ã®æååã«åå¿ããããã¨ãããã¨ãHipchatä¸ã§ã§ããã CoffeeScriptã§ã¹ã¯ãªããæ¸ããã®ã§ã¨ã¦ããæ軽ã sush
ååã®è¨äºã§ã¯Hubotã®ã¤ã³ã¹ãã¼ã«ãåºæ¬çãªä½¿ãæ¹ãScriptã®ä½æãHerokuã¸ã®ãããã¤ã®æ¹æ³ãç´¹ä»ãã¾ããã æ¬è¨äºã§ã¯Idobataã¨ãããã£ãããµã¼ãã¹ã¨Hubotãå¤é¨ãµã¼ãã¹ãé£æºãããã¼ã éçºãåæ»ã«ããç°å¢ãæ§ç¯ãã¦ããã¾ãã ã¾ãã¯å°å ¥å¾ã®éçºç°å¢ã®å ¨ä½å³ã示ãã¾ããæçµçã«Idobataã§GitHubãTravis CIãNew Relicãªã©ã®ãµã¼ãã¹ããã®éç¥ãåãåããIdobataä¸ã§ã³ãã³ããå®è¡ãããã¨ã§Hubotãéãã¦å¤é¨ãµã¼ãã¹ã®æ å ±ã表示ãããã¨ãåºæ¥ãããã«ãªãã¾ãã ä»åã®ç°å¢ã¯ãWebã¢ããªã±ã¼ã·ã§ã³ããã¼ã ã§éçºããã·ã¼ã³ãæ³å®ãã¦æ§ç¯ãã¦ã¿ã¾ããã(è¨äºä¸ã§ã¯1人ã§ãã...) Webã¢ããªã±ã¼ã·ã§ã³ã¯ãSinatraã§ä½æããã¢ããªã±ã¼ã·ã§ã³ãHerokuã«ãããã¤ãã¦ãã¾ããã¾ããååã¨åæ§ãHubotã¯Herokuã«ããã
ã¯ããã« æè¿chatworkãtypetalkã¨ãã£ãã³ãã¥ãã±ã¼ã·ã§ã³ãã¼ã«ã®hubot adapterãä½ã£ãããã¦ã¾ãã akiomik/hubot-chatwork · GitHub akiomik/hubot-typetalk · GitHub ã©ã¡ããã¾ã éçºéä¸ã§ãããããã¾ã§ã«å¾ãç¥è¦ãæ®ãã¦ãããã¨æãã¾ãã ééã£ãæ å ±ããã£ããã³ã¡ã³ãçã§ãææããã ããã°å¬ããã§ãã hubotã¨ã¯ hubotã¯github社ãéçºãã¦ããchatç¨ã®botãã¬ã¼ã ã¯ã¼ã¯ã§ãã http://hubot.github.com/ é常ã®botã¨ã©ãéãã®ãã¨ããã¨ãbotã®ãã¸ãã¯ã¨chatã¨ã®å¦çé¨åãåé¢ãã¦ãæ§ã ãªãµã¼ãã¹ã¸å¿ç¨ã§ããããã«ãã¦ããã¨ããã§ãã åè ã®botã®ãã¸ãã¯é¨åãhubot scriptã¨å¼ã³ãå¾è ã®chatã¨ã®å¦çé¨åãhubot adapterã¨
ä¿®æ£: 2/10 node-cronã使ã£ãã³ã¼ãã®ä¾ãééã£ã¦ããã®ã§ä¿®æ£ã github社製ã®ããããã¬ã¼ã ã¯ã¼ã¯ãhubotãIRCãããã¨ãã¦å°å ¥ãã話ã ã¤ã³ã¹ãã¼ã« hubotã¯node.jsã¨coffescriptã§æ¸ãããgithub社製ã®ããããã¬ã¼ã ã¯ã¼ã¯ãIRCã«éãããcampfireãtwitterãªã©ããã¤ãã®ã¢ããã¿ã«å¯¾å¿ãã¦ããããããã§ã¯IRCã§å©ç¨ããããã®å°å ¥æé ãè¨ãã ãããããnode.jsã¨npmãã¤ã³ã¹ãã¼ã«ãã¦ããã¦ãhubotãã¤ã³ã¹ãã¼ã«ããã $ git clone git://github.com/github/hubot.git $ cd hubot $ npm installhubotã¯ãããããæ±ããã¼ã¿ãæ°¸ç¶åããããã«redisã¨ããKVSãå©ç¨ãããredisãå ¥ã£ã¦ããªãæã¯ã¨ã©ã¼ã«ãªãã®ã§åããåã«ã¤ã³ã¹ãã¼ã«ããã
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}