Insights v0.0.1

Modules summary

Insights

Wrapper for sending and data capture for keen.io or others adapters

Insights.Adapter

This module specifies the adapter API that an adapter is required to implement

Insights.Adapters.Base

Behaviour and implementation for adapters

Insights.Adapters.Base.Sandbox

Start a pool with a single sandboxed Base connection

Insights.Adapters.Connection

Behaviour for adapters that rely on connections

Insights.Adapters.Keenex

Adapter module for Keen.io. It uses keenex for communicating to the service

Insights.Adapters.Keenex.Api
Insights.Adapters.Keenex.Query
Insights.Adapters.Keenex.Query.Filters
Insights.Model

Provides convenience functions for defining and working with models

Insights.Server

Defines a adapter. A adapter maps to an underlying data store, controlled by the adapter. For example, Insights ships with a Keen adapter that stores data into a PostgreSQL database. When used, the adapter expects the :otp_app as option. The :otp_app should point to an OTP application that has the adapter configuration. For example, the adapter:

defmodule Insight do
  use Insights.Server, otp_app: :my_app
end

Could be configured with:

config :my_app, Insight,
  adapter: Insights.Adapters.Keenex,
  credentials: %{
    project_id: System.get_env("KEEN_PROJECT_ID"),
    write_key:  System.get_env("KEEN_WRITE_KEY"),
    read_key:   System.get_env("KEEN_READ_KEY"),
  }