This repository has been archived by the owner on Dec 11, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Questions for Keen.io
Dieter Adriaenssens edited this page Jan 28, 2015
·
15 revisions
- Can the formatting of the date/time on the X-axis be customized/localised? Fe.
2 June
or2/6
(instead of6/2
) -
Bug : When changing the timezone to fe.-> SolvedEurope/Amsterdam
, this turns the date into NaN/NaN - 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)?
- 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.
- 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)
- 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/intervalm
combination, resulting inn x m
saved queries. Or could I createn
saved queries, with an added parameter for the timeframe/interval? -
A property for a charts, setting the display style property would be convenient. Now I'm adding-> Solved by using Keen dashboarddocument.getElementById("my_chart").style["display"]= "inline-block";
after each chart generation, to display charts next to each other. - 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.