Rules Syntax

The rules object may contain any number of rule objects. A rule object is made up of:
Attribute Type Example Required Notes
name String
"name": "ruleName"
Yes
condition String
"condition": "${Variables.foo == "Yes"}"
No Use freemarker conditions to apply the rule (same syntax as conditions used in template-info.json)
appliesTo Array
{
    "type": "dashboard",
    "name": "dashboardOne"
}
Yes Use "type": "*" to apply to all JSON assets. Other valid values are "dashboard" , "lens", "workflow", "schema", and "xmd"

The "name" string allows specific JSON assets to be referenced

The "name" can take "*" as well, to apply to all of one asset type or a group of one asset type

Note

NOTE: for workflow type, name has to be "*"
label String
actions Array
{ 
    "action": "set",
    "description" : "A desc",
    "path": "$.json.path",
    "value": "setValue"
}
Yes 4 actions types: add, put, set, and delete

Can have as many actions as needed in array