30 Oct 2023 03:06 PM - last edited on 23 Nov 2023 03:17 PM by Michal_Gebacki
How do you declare the ImpactedEntities variable??, since I have written it this way and I get the error "{ImpactedEntities}", I declare it with arrays [ImpactedEntities] and it does not read the variable either, if you could give me an example, thank you! !
Solved! Go to Solution.
31 Oct 2023 02:46 AM
what error you got when you use "{ImpactedEntities}"?
Could you send me a sample of this text?
31 Oct 2023 07:16 AM
Hi,
below you can find an example:
{
"ImpactedEntities": [
{"type": "HOST", "name": "MyHost1", "entity": "HOST-XXXXXXXXXXXXX" },
{"type": "SERVICE", "name": "MyService1", "entity": "SERVICE-XXXXXXXXXXXXX"}
],
"ImpactedEntity": "MyHost1, MyService1",
"PID": "99999",
"ProblemDetailsHTML": "<h1>Dynatrace problem notification test run details</h1>",
"ProblemDetailsJSON":
{"ID" : "99999" }
,
"ProblemID": "999",
"ProblemImpact": "INFRASTRUCTURE",
"ProblemTitle": "Dynatrace problem notification test run",
"Problem URL": "https://example.com",
"State": "OPEN",
"Tags": "testtag1, testtag2"
}
*{ImpactedEntities} and {ProblemDetailsJSON} are JSON data types and must not have quotes around them.
Here you have more information:
https://docs.dynatrace.com/docs/shortlink/webhook#example-json-with-placeholders