cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Declare the ImpactedEntities variable

aebb007
Newcomer

variableduda.jpg

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! !

2 REPLIES 2

natanael_mendes
Champion

what error you got when you use "{ImpactedEntities}"?

Could you send me a sample of this text?

Dynatrace Professional Certified

radek_jasinski
DynaMight Guru
DynaMight Guru

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

Have a nice day!

Featured Posts