<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: VROPS Super Metric: if then else (if clustername equal &amp;quot;ClusterName&amp;quot; then vale equal 3 in VMware Aria Operations  Discussions</title>
    <link>https://communities.vmware.com/t5/VMware-Aria-Operations/VROPS-Super-Metric-if-then-else-if-clustername-equal-quot/m-p/2902748#M19030</link>
    <description>&lt;P&gt;thanks very much for the reply, that explains why i cant get the IF statement to work with the string.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't see how i can achieve what i am trying to do with the where clause in VROPs as it look like i can only return one value using the where clause. I am trying to return a value for some cluster and a different value for another cluster.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Apr 2022 13:48:33 GMT</pubDate>
    <dc:creator>MickOToole</dc:creator>
    <dc:date>2022-04-06T13:48:33Z</dc:date>
    <item>
      <title>VROPS Super Metric: if then else (if clustername equal "ClusterName" then vale equal 3 else 4)</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Operations/VROPS-Super-Metric-if-then-else-if-clustername-equal-quot/m-p/2895928#M18997</link>
      <description>&lt;P&gt;Hi Folks, hoping someone can help me with this one.&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is done in the format:&lt;/P&gt;&lt;P&gt;expression_condition ? expression_if_true : expression_if_false.&lt;/P&gt;&lt;P&gt;I am trying:&amp;nbsp;&lt;/P&gt;&lt;P&gt;${adaptertype=VMWARE, objecttype=ClusterComputeResource, attribute=config|name, depth=1}contains"ClusterName" ? 3:4&lt;/P&gt;&lt;P&gt;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.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 08:39:13 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Operations/VROPS-Super-Metric-if-then-else-if-clustername-equal-quot/m-p/2895928#M18997</guid>
      <dc:creator>MickOToole</dc:creator>
      <dc:date>2022-03-01T08:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: VROPS Super Metric: if then else (if clustername equal "ClusterName" then vale equal 3</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Operations/VROPS-Super-Metric-if-then-else-if-clustername-equal-quot/m-p/2899887#M19014</link>
      <description>&lt;P&gt;&lt;SPAN&gt;String operators are valid in 'where' condition only. For example:&amp;nbsp;&lt;/SPAN&gt;${this, metric=summary|runtime|isIdle, where = "System Properties|resource_kind_type !contains GENERAL"}&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.vmware.com/en/vRealize-Operations/Cloud/com.vmware.vcom.config.doc/GUID-7A557E72-0FD0-4AC9-B778-2F492C121EE9.html" target="_blank" rel="noopener"&gt;https://docs.vmware.com/en/vRealize-Operations/Cloud/com.vmware.vcom.config.doc/GUID-7A557E72-0FD0-4AC9-B778-2F492C121EE9.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 13:03:43 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Operations/VROPS-Super-Metric-if-then-else-if-clustername-equal-quot/m-p/2899887#M19014</guid>
      <dc:creator>sennevanlaer</dc:creator>
      <dc:date>2022-03-22T13:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: VROPS Super Metric: if then else (if clustername equal "ClusterName" then vale equal 3</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Operations/VROPS-Super-Metric-if-then-else-if-clustername-equal-quot/m-p/2902748#M19030</link>
      <description>&lt;P&gt;thanks very much for the reply, that explains why i cant get the IF statement to work with the string.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't see how i can achieve what i am trying to do with the where clause in VROPs as it look like i can only return one value using the where clause. I am trying to return a value for some cluster and a different value for another cluster.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 13:48:33 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Operations/VROPS-Super-Metric-if-then-else-if-clustername-equal-quot/m-p/2902748#M19030</guid>
      <dc:creator>MickOToole</dc:creator>
      <dc:date>2022-04-06T13:48:33Z</dc:date>
    </item>
  </channel>
</rss>

