owner.scripts
Scripts owner
type |
object |
||
properties |
|||
|
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’. The value with retention FIRE_AND_FORGET will be ignored because they cannot be stored in cache and cannot be provided to a script. Their can only be used as a script trigger. Default value is [[]] |
||
type |
array |
||
default |
|||
items |
type |
string |
|
|
Defines what happens when a new execution arrives and the in-flight limit is reached (i.e. Running executions are never interrupted only pending (queued) executions can be dropped.
This setting is ignored when Default value is [“DROP_OLDEST”] |
||
type |
string |
||
enum |
DROP_OLDEST, DROP_LATEST |
||
default |
DROP_OLDEST |
||
|
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 |
||
|
Maximum number of executions of this script that can be in flight simultaneously, counting both pending (queued) and currently running executions.
A new execution is accepted only when Three modes are available:
Example: with
Default value is [-1] |
||
type |
integer |
||
minimum |
-1 |
||
default |
-1 |
||
|
The ItemId of the module script ID who own (ex: modules.scripts.scripts-1) |
||
type |
string |
||
|
Scheduling priority of this script relative to other scripts sharing the same execution pipeline. Lower values are scheduled first. Priority only determines the order in which different scripts compete for execution slots. Default value is [50] |
||
type |
integer |
||
minimum |
1 |
||
default |
50 |
||
|
The list of cron expression ↗️ to schedule the script execution. The expected format is For example, the following expression schedule one execution every:
The The The Default value is [[]] |
||
type |
array |
||
default |
|||
items |
type |
string |
|
|
The raw source code of the script. This is exclusive with the |
||
type |
string |
||
|
The path to the script file to use when an execution is triggered. It should be a relative path to root/scripts/scripts.js. Note: The file is included through this configuration, so it does not need to be declared as a resource in the module.resource file. This is mutually exclusive with the sourceCode field. |
||
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 |
|||
|
Maximum age of a pending execution. If an execution has been waiting in the queue longer than this duration, it is silently dropped when the scheduler attempts to run it. This prevents stale executions from running after a backlog has built up (e.g. after a pause or burst of triggers). If not set, pending executions never expire and will always be executed regardless of how long they have been waiting in the queue. |
||
|
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 |
||
oneOf |
allOf |
not |
|
allOf |
not |
||
DurationConfigurationEntity
type |
object |
|
properties |
||
|
The unit of time expressed |
|
type |
string |
|
enum |
NANOSECONDS, MICROSECONDS, MILLISECONDS, SECONDS, MINUTES, HOURS, DAYS |
|
|
The amount of time expressed with the unit |
|
type |
integer |
|
additionalProperties |
False |
|