44f678c7a6
Change-Id: I7155e797fecf18b867eeb7c63ebbcb35d3cbb9c3 Co-Authored-By: dparalen <vetrisko@gmail.com> Depends-On: Ibf0c73aa6795aaa52e945fd6baa821de20a599e7 Depends-On: I067504e49f68929298c91e61819aa9a61169fe52
26 lines
756 B
JSON
26 lines
756 B
JSON
[
|
|
{
|
|
"description": "Successful Rule",
|
|
"conditions": [
|
|
{"op": "ge", "field": "memory_mb", "value": 256},
|
|
{"op": "ge", "field": "local_gb", "value": 1}
|
|
],
|
|
"actions": [
|
|
{"action": "set-attribute", "path": "/extra/rule_success",
|
|
"value": "yes"}
|
|
]
|
|
},
|
|
{
|
|
"description": "Failing Rule",
|
|
"conditions": [
|
|
{"op": "lt", "field": "memory_mb", "value": 42},
|
|
{"op": "eq", "field": "local_gb", "value": 0}
|
|
],
|
|
"actions": [
|
|
{"action": "set-attribute", "path": "/extra/rule_success",
|
|
"value": "no"},
|
|
{"action": "fail", "message": "This rule should not have run"}
|
|
]
|
|
}
|
|
]
|