- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
VROPS Super Metric: if then else (if clustername equal "ClusterName" then vale equal 3 else 4)
Hi Folks, hoping someone can help me with this one.
I am trying to do a if then else in a VROPs super metric. Effectively what i am trying to do is to check if the name of the cluster matches a string and if it does the value is equal to 3 and if not the value is equal to 4.
This is done in the format:
expression_condition ? expression_if_true : expression_if_false.
I am trying:
${adaptertype=VMWARE, objecttype=ClusterComputeResource, attribute=config|name, depth=1}contains"ClusterName" ? 3:4
has anyone achieve something similar. i have tried a few different variations of the above but no joy. I have seen similar stuff done with numeric metrics but not with string values.