query.analytics¶
Analytics query¶
type |
object |
||
properties |
|||
|
The id of the template to use for this file |
||
type |
string |
||
|
The variables and their values to be replaced from the template |
||
type |
object |
||
additionalProperties |
|||
|
The variables files to use to replace the variables. The first file of the list will take precedence over the following one. Template variables take precedence over the contents of the files. |
||
type |
array |
||
items |
type |
string |
|
|
If the value is set to true, manual editing of this file should be avoided, as the composer will override the value in the next generation. |
||
type |
boolean |
||
|
The id of the analytics module to attach this query to |
||
type |
string |
||
|
Expression that represents the data to fetch. |
||
additionalProperties |
False |
QueryEntity¶
type |
object |
|||
properties |
||||
|
The name of the collection |
|||
type |
string |
|||
|
Time period of the query |
|||
default |
start |
value |
60 |
|
unit |
SECONDS |
|||
|
List of measurements we want to get |
|||
type |
array |
|||
items |
type |
string |
||
|
List of fields we want to get |
|||
type |
array |
|||
items |
type |
string |
||
|
Set limit number of results |
|||
|
Define a aggregation function |
|||
|
List of additional stages to add at the end of the query |
|||
type |
array |
|||
items |
type |
string |
||
additionalProperties |
False |
QueryRangeConfigurationEntity¶
type |
object |
properties |
|
|
Start |
|
End |
additionalProperties |
False |
DurationConfigurationEntity¶
type |
object |
|
properties |
||
|
The amount of time expressed with the unit |
|
type |
integer |
|
|
The unit of time expressed with the value |
|
type |
string |
|
enum |
NANOSECONDS, MICROSECONDS, MILLISECONDS, SECONDS, MINUTES, HOURS, DAYS |
|
additionalProperties |
False |
QueryLimitConfigurationEntity¶
type |
object |
|
properties |
||
|
Limit number of results |
|
type |
integer |
|
|
Offset |
|
type |
integer |
|
|
Takes the x results from the first or the last value (default value). |
|
type |
string |
|
enum |
First, Last |
|
default |
Last |
|
additionalProperties |
False |
QueryAggregateConfigurationEntity¶
type |
object |
||
properties |
|||
|
Aggregation window (default is 1h). |
||
default |
value |
1 |
|
unit |
HOURS |
||
|
Aggregation function (mean as default). |
||
type |
string |
||
enum |
count, integral, last, mean, median, min, max |
||
default |
mean |
||
additionalProperties |
False |