<?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: Expression Builder issue for Selecting a Host by Multiple Labels in ArcGIS Monitor 2023.2 in ArcGIS Monitor Questions</title>
    <link>https://community.esri.com/t5/arcgis-monitor-questions/expression-builder-issue-for-selecting-a-host-by/m-p/1361997#M1496</link>
    <description>&lt;P&gt;I have been fighting this as well, I ended up using the component name for the system/service that I wanted to monitor to get it to work.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Pat_Gallagher_0-1702910222238.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/89345iE764F7CDD9ED8AB3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Pat_Gallagher_0-1702910222238.png" alt="Pat_Gallagher_0-1702910222238.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Dec 2023 14:37:31 GMT</pubDate>
    <dc:creator>Pat_Gallagher</dc:creator>
    <dc:date>2023-12-18T14:37:31Z</dc:date>
    <item>
      <title>Expression Builder issue for Selecting a Host by Multiple Labels in ArcGIS Monitor 2023.2</title>
      <link>https://community.esri.com/t5/arcgis-monitor-questions/expression-builder-issue-for-selecting-a-host-by/m-p/1361544#M1491</link>
      <description>&lt;P&gt;Using ArcGIS Monitor 2023.2 I have two host (one for Server VM Host and one for Portal VM host ) registered and labeled as below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BHK_3-1702664440348.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/89224i3A6B223427D85BB7/image-size/large?v=v2&amp;amp;px=999" role="button" title="BHK_3-1702664440348.png" alt="BHK_3-1702664440348.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now in Expression Builder when I try to select the specific HOST with 3 labels like below&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
  "resource": "components",
  "where": "components.type = 'host'",
  "having": [
    {
      "resource": "labels",
      "where": "labels.name = 'DEV' AND labels.name = 'STAFF' AND labels.name = 'VMHOST'"
    }
  ],
  "join": [
    {
      "resource": "metrics",
      "where": "metrics.r_id = 'cpu_utilized'"
    }
  ]
}&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BHK_1-1702664128911.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/89221i3523B09418A214B2/image-size/large?v=v2&amp;amp;px=999" role="button" title="BHK_1-1702664128911.png" alt="BHK_1-1702664128911.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Test is not returning anything for Metrics.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BHK_2-1702664281252.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/89223i2EF9C4C5FA238986/image-size/large?v=v2&amp;amp;px=999" role="button" title="BHK_2-1702664281252.png" alt="BHK_2-1702664281252.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please let me know why this is happening and how to fix it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Dec 2023 18:21:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-monitor-questions/expression-builder-issue-for-selecting-a-host-by/m-p/1361544#M1491</guid>
      <dc:creator>BHK</dc:creator>
      <dc:date>2023-12-15T18:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Builder issue for Selecting a Host by Multiple Labels in ArcGIS Monitor 2023.2</title>
      <link>https://community.esri.com/t5/arcgis-monitor-questions/expression-builder-issue-for-selecting-a-host-by/m-p/1361997#M1496</link>
      <description>&lt;P&gt;I have been fighting this as well, I ended up using the component name for the system/service that I wanted to monitor to get it to work.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Pat_Gallagher_0-1702910222238.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/89345iE764F7CDD9ED8AB3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Pat_Gallagher_0-1702910222238.png" alt="Pat_Gallagher_0-1702910222238.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2023 14:37:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-monitor-questions/expression-builder-issue-for-selecting-a-host-by/m-p/1361997#M1496</guid>
      <dc:creator>Pat_Gallagher</dc:creator>
      <dc:date>2023-12-18T14:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Builder issue for Selecting a Host by Multiple Labels in ArcGIS Monitor 2023.2</title>
      <link>https://community.esri.com/t5/arcgis-monitor-questions/expression-builder-issue-for-selecting-a-host-by/m-p/1367638#M1557</link>
      <description>&lt;P&gt;Your query is asking for components attached to a &lt;EM&gt;single&lt;/EM&gt; label that is named DEV &lt;EM&gt;and also&lt;/EM&gt; named STAFF &lt;EM&gt;and also&lt;/EM&gt; named VMHOST, which of course isn't possible because labels can only have one name.&lt;/P&gt;&lt;P&gt;What you need is multiple HAVING clauses which &lt;A href="https://support.esri.com/en-us/patches-updates/2023/arcgis-monitor-2023-3-release-notes?rsource=https%3A%2F%2Fesriurl.com%2Farcgis-monitor-2023-3-release-notes#:~:text=ENH%2D000158215%3A%20Expression%20builder%20now%20supports%20multiple%20having%20clauses" target="_self"&gt;wasn't possible until 2023.3&lt;/A&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TristanMcHardie_1-1704752426774.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/90896i7E7413A1B99AF549/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TristanMcHardie_1-1704752426774.png" alt="TristanMcHardie_1-1704752426774.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2024 22:31:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-monitor-questions/expression-builder-issue-for-selecting-a-host-by/m-p/1367638#M1557</guid>
      <dc:creator>TristanMcHardie</dc:creator>
      <dc:date>2024-01-08T22:31:12Z</dc:date>
    </item>
  </channel>
</rss>

