Skip to content

Instantly share code, notes, and snippets.

@NoxArt
Created November 7, 2019 15:46
Show Gist options
  • Save NoxArt/60c9a88ab0bcb92a46766e9e051c9247 to your computer and use it in GitHub Desktop.
Save NoxArt/60c9a88ab0bcb92a46766e9e051c9247 to your computer and use it in GitHub Desktop.
NoxArt.Reactivity schema
{
"title": "NoxArt.Reactivity.AutomationDefinition",
"description": "Definition of automation task for NoxArt.Reactivity",
"type": "object",
"properties": {
"Title": {
"description": "Name of the definition for UI/logging purposes",
"type": "string",
"minLength": 1
},
"Group": {
"description": "Group of the definition for filtering + UI/logging purposes",
"type": "string",
"minLength": 1
},
"Enabled": {
"description": "Optional to disable to value",
"type": "boolean"
},
"Trigger": {
"description": "Trigger describing when to start initiating actions",
"type": "object",
"properties": {
"Type": {
"description": "Codename of the trigger",
"type": "string",
"pattern": "FileChanged(\\.[a-zA-Z]+)*$|Interval(\\.[a-zA-Z]+)*$"
},
"ThrottleTime": {
"description": "How long to wait and gather triggers since the first trigger instance before executing actions, defaults to 0",
"type": "string",
"pattern": "^\\d+(ms|s|m|h| days)$"
},
"Properties": {
"type": "object"
}
},
"required": [
"Type"
]
},
"Actions": {
"description": "Actions to be executed once triggered",
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"properties": {
"Action": {
"description": "Codename of the action",
"type": "string",
"enum": [
"CopyFile",
"DeleteFile",
"Wait",
"KillProcess",
"Run",
"WaitForProcessMissing",
"WaitForProcessPresent",
"WebRequest"
],
"minLength": 1
},
"Properties": {
"type": "object"
}
},
"required": [
"Action"
]
}
}
},
"required": [
"Title",
"Trigger",
"Actions"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment