When I am trying to fetch problem dump via API calls or workflow, I couldn’t get ip address of the host.
1)I Tired Changing Host naming rule as Hostname with IPaddress
2) I Tired Changing Automatic tags as hostname with ip address.
In Both methods I couldn’t get ip address. help me understand why I can’t ip address in problem card or problem dump?
And Is there any other way to get ip address for a alert?
Hello @prabhavathi
I think the reliable way to get IPs into an alert is to enrich the alert after the problem is raised:
- Get the problem details with the Problems API or a workflow Problem trigger.
- Read the affectedEntities, impactedEntities, and rootCauseEntity / evidenceDetails entity stubs from the problem.
- For each relevant HOST-… entity ID, call the Monitored Entities API to fetch that host’s full properties.
- Add those IPs to your email, webhook payload, ServiceNow ticket, or workflow output. Dynatrace documents GET /api/v2/problems/{problemId} for problem details and GET /api/v2/entities/{entityId} for full entity properties.
But basically the answer is: no, Dynatrace won’t natively guarantee host IP on the problem card/problem dump just because we renamed the host or tagged it, unfortunately :confused:
I hope it helps :grinning_face: