module Selligent::Client::Cumulio
Implements the Cumulio
endpoints
/reporting/cumulio/:organization/{datasets, query}
Public Instance Methods
cumulio_datasets()
click to toggle source
Get datasets
# File lib/selligent/client/cumulio.rb, line 10 def cumulio_datasets get "#{root_url}/reporting/cumulio/#{config.organization}/datasets" end
cumulio_query(model)
click to toggle source
Run a cumulio query
The model has the following shape:
{
"id": "string", "columns": [ { "column_id": "string", "aggregation": "none", "level": "none" } ], "filters": [ { "column_id": "string", "expression": "unknown", "value": [ "string" ] } ], "user": { "id": "string", "name": "string", "email": "string", "authorization_id": "string", "metadata": { "tenant_id": "string", "organization": "string" } }, "options": { "id": "string", "name": "string", "email": "string", "authorization_id": "string", "metadata": { "tenant_id": "string", "organization": "string" } }
}
@param model [Hash] The model
# File lib/selligent/client/cumulio.rb, line 59 def cumulio_query(model) post "#{root_url}/reporting/cumulio/#{config.organization}/query", model end