detached.scripts

Scripts detached

type

object

properties

  • templateId

The id of the template to use for this file

type

string

  • templateVariables

The variables and their values to be replaced from the template

type

object

additionalProperties

  • variablesFiles

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

  • isTemplateGeneratedByOspComposer

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

  • moduleId

The module ID who own this item

type

string

  • sourceCode

Raw script source code

type

string

  • sourceFile

File containing script source code

type

string

  • accessedValues

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

  • scheduledExecutions

The list of scheduled executions of the script represented by cron expressions

type

array

default

items

type

string

  • maxPendingScriptsNumber

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

  • backpressureStrategy

How script execution are drop when the buffer is full

type

string

enum

DROP_OLDEST, DROP_LATEST

default

DROP_OLDEST

  • maxConcurrentExecutions

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