<?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: MetricSelector for Properties Attribute in Dynatrace API</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-API/MetricSelector-for-Properties-Attribute/m-p/226348#M2722</link>
    <description>&lt;P&gt;Correct, the expected/documentation vs actual results does not match.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please see attached Dynatrace2.png&lt;/P&gt;</description>
    <pubDate>Tue, 24 Oct 2023 06:42:10 GMT</pubDate>
    <dc:creator>abnerlusung</dc:creator>
    <dc:date>2023-10-24T06:42:10Z</dc:date>
    <item>
      <title>MetricSelector for Properties Attribute</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/MetricSelector-for-Properties-Attribute/m-p/225926#M2716</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;Need help for creating Metric Selectors to select this service and lookup the publicCloudId.&lt;/P&gt;&lt;P&gt;This is the JSON.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
  "entityId": "SERVICE-ABCDEF",
  "type": "SERVICE",
  "displayName": "demo-name in ap-southeast-1",
  "firstSeenTms": 1695795958177,
  "lastSeenTms": 1697695446317,
  "properties": {
    "serviceType": "RPC_SERVICE",
    "detectedName": "demo-name in ap-southeast-1",
    "isExternalService": false,
    "publicCloudRegion": "ap-southeast-1",
    "publicCloudId": "arn‌‌lambda:ap-southeast-1:123456789:function:demo-name",
    "softwareTechnologies": [
      {
        "type": "NODE_JS"
      },
      {
        "type": "AWS_LAMBDA"
      }
    ],
    "agentTechnologyType": "N/A"
  },
  "tags": [],
  "managementZones": [
    {
      "id": "987654321",
      "name": "demoMZ"
    }
  ],
  "icon": {
    "primaryIconType": "aws-lambda"
  },
  "fromRelationships": {
    "runsOn": [
      {
        "id": "AWS_LAMBDA_FUNCTION-ABC123",
        "type": "AWS_LAMBDA_FUNCTION"
      }
    ],
    "calls": [
      {
        "id": "SERVICE-ABC123",
        "type": "SERVICE"
      },
      {
        "id": "SERVICE-ABC1234",
        "type": "SERVICE"
      },
      {
        "id": "SERVICE-ABC12345",
        "type": "SERVICE"
      }
    ]
  },
  "toRelationships": {
    "isGroupOf": [
      {
        "id": "SERVICE_METHOD_GROUP-ABC123",
        "type": "SERVICE_METHOD_GROUP"
      }
    ]
  }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Cannot use the following:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;"message"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"Unknown predicate name publicCloudId"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Abner&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2023 07:37:54 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/MetricSelector-for-Properties-Attribute/m-p/225926#M2716</guid>
      <dc:creator>abnerlusung</dc:creator>
      <dc:date>2023-10-19T07:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: MetricSelector for Properties Attribute</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/MetricSelector-for-Properties-Attribute/m-p/225948#M2717</link>
      <description>&lt;P&gt;Can you please elaborate more on your question and provide some more screenshots/data?&lt;/P&gt;&lt;P&gt;From what I see in the question, you're trying to use a metric selector that uses an entity's property, in this case the&amp;nbsp;&lt;STRONG&gt;publicCloudId&lt;/STRONG&gt;. In order to do that, you need to use an&amp;nbsp;&lt;A href="https://www.dynatrace.com/support/help/dynatrace-api/environment-api/entity-v2/entity-selector" target="_blank" rel="noopener"&gt;entity selector&lt;/A&gt; insice the &lt;A href="https://www.dynatrace.com/support/help/dynatrace-api/environment-api/metric-v2/metric-selector#data-filtering" target="_blank" rel="noopener"&gt;metric selector&lt;/A&gt;. However, there is a limited set of properties you can use from each entity type in an entity selector, as decribed &lt;A href="https://www.dynatrace.com/support/help/shortlink/api-entities-v2-selector#attribute" target="_blank" rel="noopener"&gt;here&lt;/A&gt;. You will need to call the &lt;A href="https://www.dynatrace.com/support/help/dynatrace-api/environment-api/entity-v2/get-entity-type" target="_blank" rel="noopener"&gt;GET entity type API&lt;/A&gt; for, in this case, the SERVICE entity type, and check the&amp;nbsp;&lt;STRONG&gt;properties&lt;/STRONG&gt; field. If the&amp;nbsp;&lt;STRONG&gt;publicCloudId&lt;/STRONG&gt; is in there, you can use it. If not, you will have to find a workaround with tags or something else to filter your metric selector by your service.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2023 10:43:52 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/MetricSelector-for-Properties-Attribute/m-p/225948#M2717</guid>
      <dc:creator>victor_balbuena</dc:creator>
      <dc:date>2023-10-19T10:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: MetricSelector for Properties Attribute</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/MetricSelector-for-Properties-Attribute/m-p/226042#M2718</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/3978"&gt;@victor_balbuena&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The JSON above is from the Get Entity Type API.&lt;/P&gt;&lt;P&gt;As you saw, it has the publicCloudId property but cannot use. Why?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abner&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2023 02:25:48 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/MetricSelector-for-Properties-Attribute/m-p/226042#M2718</guid>
      <dc:creator>abnerlusung</dc:creator>
      <dc:date>2023-10-20T02:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: MetricSelector for Properties Attribute</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/MetricSelector-for-Properties-Attribute/m-p/226168#M2719</link>
      <description>&lt;P&gt;The &lt;A href="https://www.dynatrace.com/support/help/dynatrace-api/environment-api/entity-v2" target="_blank" rel="noopener"&gt;entities API&lt;/A&gt; and the &lt;A href="https://www.dynatrace.com/support/help/dynatrace-api/environment-api/entity-v2/get-all-entity-types" target="_blank" rel="noopener"&gt;entities type API&lt;/A&gt; are different APIs. You're using the first one and it's the second one to tell you if you can use the property or not.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2023 06:47:39 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/MetricSelector-for-Properties-Attribute/m-p/226168#M2719</guid>
      <dc:creator>victor_balbuena</dc:creator>
      <dc:date>2023-10-23T06:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: MetricSelector for Properties Attribute</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/MetricSelector-for-Properties-Attribute/m-p/226345#M2720</link>
      <description>&lt;P&gt;I tried the entities type API, it returned the property&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;publicCloudId&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See screenshot Dynatrace.png&lt;/P&gt;&lt;P&gt;It means, I can use the property? But why right now, it's returning an error?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2023 06:25:47 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/MetricSelector-for-Properties-Attribute/m-p/226345#M2720</guid>
      <dc:creator>abnerlusung</dc:creator>
      <dc:date>2023-10-24T06:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: MetricSelector for Properties Attribute</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/MetricSelector-for-Properties-Attribute/m-p/226346#M2721</link>
      <description>&lt;P&gt;As per the documentation, yes. The problem is probably on the metric selector or the entity selector, mind sharing that too?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2023 06:29:53 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/MetricSelector-for-Properties-Attribute/m-p/226346#M2721</guid>
      <dc:creator>victor_balbuena</dc:creator>
      <dc:date>2023-10-24T06:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: MetricSelector for Properties Attribute</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/MetricSelector-for-Properties-Attribute/m-p/226348#M2722</link>
      <description>&lt;P&gt;Correct, the expected/documentation vs actual results does not match.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please see attached Dynatrace2.png&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2023 06:42:10 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/MetricSelector-for-Properties-Attribute/m-p/226348#M2722</guid>
      <dc:creator>abnerlusung</dc:creator>
      <dc:date>2023-10-24T06:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: MetricSelector for Properties Attribute</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/MetricSelector-for-Properties-Attribute/m-p/226349#M2723</link>
      <description>&lt;P&gt;You're right, as per the documentation, that&amp;nbsp;&lt;STRONG&gt;entitySelector&lt;/STRONG&gt; should work and it doesn't. I guess the best course of action at this point is a Dynatrace support ticket, as this is potentially a bug, or some kind of exception tht's not documented.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2023 07:03:32 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/MetricSelector-for-Properties-Attribute/m-p/226349#M2723</guid>
      <dc:creator>victor_balbuena</dc:creator>
      <dc:date>2023-10-24T07:03:32Z</dc:date>
    </item>
  </channel>
</rss>

