generator.reports
Generator file
type |
object |
||
properties |
|||
|
Define a map of sources to gather the necessary data the template expects. The key value represent the key used by the template to access the data and the value represent the source of this data. A source can be from three type:
Each one of the defined sources will be accessible from the associated key. For example: {
"alarms": {
"type": "Alarm",
"filterId": "root.alarms.filter"
}
}
will be accessible from the template as |
||
type |
object |
||
additionalProperties |
oneOf |
||
|
Name of the playbook that generated this file. If present, the file is managed by the Composer and may be overwritten on regeneration. Used for selective clean. Do not edit or set manually. |
||
type |
string |
||
|
The id of the reports module |
||
type |
string |
||
|
The Item Id to the template that reports will be generated from by this generator |
||
type |
string |
||
|
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 |
|
additionalProperties |
False |
||
Alarm
type |
object |
|
properties |
||
|
type |
string |
enum |
Alarm |
|
default |
Alarm |
|
|
The reference to the filter to link with this source |
|
type |
string |
|
|
Range (start <-> end) to get the data from. Both parts can be left undefined, meaning the range will be start <-> now, now <-> end or now <-> now. |
|
|
The reference to the view to link with this source |
|
type |
string |
|
additionalProperties |
False |
|
SourceRange
type |
object |
|
properties |
||
|
End of the range. Defined by a End of the range is calculate by getting NOW as nanoseconds and adding End is either in the past or the future depending if value is negative or positive. For example:
If null, end of range will be |
|
|
Field name of the collection schema to compare the range with. Must be a number field. Default value depends on type of the source.
|
|
type |
string |
|
|
Start of the range. Defined by a Start of the range is calculate by getting NOW as nanoseconds and adding Start is either in the past or the future depending if value is negative or positive. For example:
If null, start of range will be |
|
additionalProperties |
False |
|
SourceRangeDuration
type |
object |
|
properties |
||
|
The unit of time expressed with the value. The available units are :
|
|
type |
string |
|
enum |
SECONDS, MINUTES, HOURS, DAYS, WEEKS, MONTHS, YEARS |
|
|
The amount of time expressed with the unit.
|
|
type |
integer |
|
additionalProperties |
False |
|
Analytics
type |
object |
|
properties |
||
|
type |
string |
enum |
Analytics |
|
default |
Analytics |
|
|
The reference to the query to link with this source |
|
type |
string |
|
additionalProperties |
False |
|
Collection
type |
object |
|
properties |
||
|
type |
string |
enum |
Collection |
|
default |
Collection |
|
|
The id to the filter to link with this source |
|
type |
string |
|
|
Range (start <-> end) to get the data from. Both parts can be left undefined, meaning the range will be start <-> now, now <-> end or now <-> now. |
|
|
The reference to the schema to link with this source |
|
type |
string |
|
|
The id to the view to link with this source |
|
type |
string |
|
additionalProperties |
False |
|
Values
type |
object |
||
properties |
|||
|
type |
string |
|
enum |
Values |
||
default |
Values |
||
|
The list of values associated at this source. Final object given to the template will be a map with keys representing the id of one of the values and the value as a whole associated to this key. For example, a source as: {
"myValues": {
"type": "Values",
"accessedValues": [
"root.values.one",
"root.values.two"
]
}
}
will generate the following map: {
"myValues": {
"root.values.one": {
"name": "Value One"
"type": "TEXT",
"content": "example",
"error": ""
},
"root.values.two": {
"name": "Value Two"
"type": "DECIMAL",
"content": 10.0,
"error": ""
}
}
}
The wildcard ‘*’ can be used to match multiple value (For example, ‘root.*.test’ will match ‘root.device.1.test’, ‘root.server.test’). |
||
type |
array |
||
items |
type |
string |
|
additionalProperties |
False |
||