Skip to content
This repository has been archived by the owner on Dec 11, 2022. It is now read-only.

Questions for Keen.io

Dieter Adriaenssens edited this page Jan 28, 2015 · 15 revisions
  1. Can the formatting of the date/time on the X-axis be customized/localised? Fe. 2 June or 2/6 (instead of 6/2)
  2. Bug : When changing the timezone to fe. Europe/Amsterdam, this turns the date into NaN/NaN -> Solved
  3. Is it possible to define the X-axis a series with something else than date/time info? In other words, if the result of a series doesn't contain a date/timefield, can it be displayed using a linechart and not a pie diagram (like it defaults to now)?
  4. When using a linechart and there is no data for a certain interval in a timeframe, the line drops to zero and jumps up to the next value in the next interval. In some cases I would be interested in a trendline indicating the trend of different points in time, instead of a line graph connecting those points with an eventual drop to zero, or a spike to a value that's out of range.
  5. Can the result of a query (data analysis/chart generation) be cached? Or should 'saved queries' functionility be used for the purpose of optimizing query request/execution? I noticed that when I update my page and the data wasn't changed, there is a 'data not changed' return value of the API request (or is this handled by the keen.io client)
  6. Can a saved query be parameterized? Fe. I have a set of queries, but I want to change timeframe and interval. Should I create saved queries for each query n and each timeframe/interval m combination, resulting in n x m saved queries. Or could I create n saved queries, with an added parameter for the timeframe/interval?
  7. A property for a charts, setting the display style property would be convenient. Now I'm adding document.getElementById("my_chart").style["display"]= "inline-block"; after each chart generation, to display charts next to each other. -> Solved by using Keen dashboard
  8. Is it possible to use the result of one analysis as the input of another analysis.? Fe. If I want to calculate the average total duration of a build job, = average of sum of all stages of each build job :
var jobTotalBuildtime = new Keen.Metric("build_stages", {
  analysisType: "sum",
  timeframe: "last_7_days",
  targetProperty: "stage.duration",
  groupBy: "build.job"
});

and feed this result to another analysis, fe. :

var jobAverageTotalBuildtime = new Keen.Metric(jobTotalBuildtime, {
  analysisType: "average",
  targetProperty: "result",
});

or nest them :

var jobAverageTotalBuildtime = new Keen.Metric("build_stages", {
  analysisType: "average",
  targetProperty: "result",
  metric: {
    analysisType: "sum",
    timeframe: "last_7_days",
    targetProperty: "stage.duration",
    groupBy: "build.job"
  }
});

The only workaround I see so far is to insert to the result of jobTotalBuildtime as a new event collection and use that event collection as the basis for the 'average' query.

Clone this wiki locally