ex_gecko v0.1.0 Mix.Tasks.Gecko.Load

This will run specific adapters to populate your geckoboard with the right dataset

Examples

export GECKO_API_KEY=<key>

# load data from papertrail into your dataset
mix gecko.load -t papertrail -d mydataset

# setup dataset (will erease all the previous data) using the right schema
mix gecko.load -d mydataset -r reqs

# load data from papertrail (pt) into your dataset with specific arguments.  Default values for "search" and "time" will be applied
mix gecko.load -t pt -d mydataset -a "time=24 hours ago,search=My Search"

Command Line Options

  • --dataset / -d - the dataset you want to load
  • --widget / -w - the widget you want to update (will ignore dataset)
  • --type / -t - type of data you want to retrieve and load, currently ‘papertrail’, ‘herkou’ and ‘runscope’ are supported
  • --reset / -r - this will recreate the dataset using the specific schema
  • --args / -a - arguments to be passed to the adapter (comma-separated)

Summary

Functions

log(msg)
put_data(dataset, events)
reset_dataset(schema, dataset)
update_data(dataset, events)