detached.scripts¶
Scripts detached¶
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 module ID who own this item |
||
type |
string |
||
|
Raw script source code |
||
type |
string |
||
|
File containing script source code |
||
type |
string |
||
|
The list of values read by the script, in addition to triggers. The wildcard ‘*’ can be used to match multiple value (For example, ‘root.*.test’ will match ‘root.device.1.test’, ‘root.server.test’). |
||
type |
array |
||
default |
|||
items |
type |
string |
|
|
The list of scheduled executions of the script represented by cron expressions |
||
type |
array |
||
default |
|||
items |
type |
string |
|
|
The maximum of script execution kept in memory, see the documentation of OnSphere for more details about the scheduling of scripts. When this value is reached the backpressure strategy is applied |
||
type |
integer |
||
minimum |
1 |
||
default |
100 |
||
|
How script execution are drop when the buffer is full |
||
type |
string |
||
enum |
DROP_OLDEST, DROP_LATEST |
||
default |
DROP_OLDEST |
||
|
The maximum simultaneous execution. Be careful when using a value other than 1 and executing tasks on external device. The script can be executed two times in simultaneous, this means the external service can receive any action from the source script in any order. |
||
type |
integer |
||
minimum |
1 |
||
default |
1 |
||
additionalProperties |
False |
||
oneOf |
allOf |
not |
|
allOf |
not |