Treasure Agent on Heroku

by treasure-data

README.md

Treasure Agent on Heroku

This repository contains everything to run Treasure Agent on Heroku. HTTP plugin is used to receive the streaming logs. For further information, please look at this documentation.

Setup

There is no step 1. Just click on the Heroku Deploy button here.

By default, a new Treasure Data account is created. If you already have an account with a Treasure Data API key, fill out the "TREASURE_DATA_API_KEY_OVERRIDE" field.

Testing

# debug
$ curl "http://<YOUR_APP_NAME>.herokuapp.com/debug.test?json=%7B%22json%22%3A%22message%22%7D"

# import
$ curl "http://<YOUR_APP_NAME>.herokuapp.com/td.sample_db.sample_table?json=%7B%22json%22%3A%22message%22%7D"