Skip to content

keentycs

UberSnip Developers edited this page Apr 3, 2016 · 2 revisions

Welcome to the keenio-cpp-sdk : keentycs wiki!

The objective of this community project is to build a complete analytics query language tailored to BigData processing and manipulation.

Using the KeenIO C++ SDK

Supported queries:

sum, count, average, extraction .

Queries are currently case-sensitive.

Syntax for KeenIO

<analysis_type> <collection_name>(<project_id>) <parameters, ...> <statement> <conditions>

Supported Analysis types

  • count
  • count_unique
  • sum
  • average

Example query

count pageview(<project_id>) event_collection=pageview timezone=UTC timeframe=this_100_days if keen.id>0 | path<>'//'


Setting Parameters

Setting a parameter is as simple as property=value ie: timezone=UTC would append &timezone=UTC to final querying URL.

Exporting results

Exporting json results is achieved using the .export directive.

Example usage .export=filename.json >> ...

.export=results.json >> count pageview(<project_id>) event_collection=pageview timezone=UTC timeframe=this_100_days if keen.id>0 | path<>'//'

Whatever is returned will be written to "results.json".


Read about filters. Read about Global Variables

Clone this wiki locally