Created
August 15, 2016 20:31
-
-
Save lpichler/f0f335c17faa25a305db5e5e15d91467 to your computer and use it in GitHub Desktop.
Example MiqExpression
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
``` | |
{ | |
"or" => [ | |
[0] { | |
"=" => { | |
"field" => "Vm-virtual_custom_attribute_ATTR_Name_1_5", | |
"value" => "XXXX" | |
} | |
}, | |
[1] { | |
"and" => [ | |
[0] { | |
"=" => { | |
"field" => "Vm-virtual_custom_attribute_ATTR_Name_1_6", | |
"value" => "Some string you want to add" | |
} | |
}, | |
[1] { | |
"or" => [ | |
[0] { | |
"=" => { | |
"count" => "Vm.advanced_settings", | |
"value" => "0" | |
} | |
}, | |
[1] { | |
"CONTAINS" => { | |
"tag" => "Vm.managed-prov_max_cpu", | |
"value" => "1" | |
} | |
}, | |
[2] { | |
"and" => [ | |
[0] { | |
"IS EMPTY" => { | |
"field" => "Vm-virtual_custom_attribute_ATTR_Name_1_5", | |
"value" => "" | |
} | |
}, | |
[1] { | |
"FIND" => { | |
"search" => { | |
"IS" => { | |
"field" => "Vm.advanced_settings-created_on", | |
"value" => "4 Years Ago" | |
} | |
}, | |
"checkany" => { | |
"IS" => { | |
"field" => "Vm.advanced_settings-updated_on", | |
"value" => "4 Years Ago" | |
} | |
} | |
} | |
}, | |
[2] { | |
"IS NOT EMPTY" => { | |
"field" => "Vm-virtual_custom_attribute_ATTR_Name_2_5", | |
"value" => "" | |
} | |
} | |
] | |
} | |
] | |
} | |
] | |
} | |
] | |
} | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment