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

Alert message not available in Problems & problem details API V2 (https://{your-environment-id}.live.dynatrace.com/api/v2/problems/{problemId})

ttripathi995
Newcomer

Alert message not available in Problems & problem details API V2 (https://{your-environment-id}.live.dynatrace.com/api/v2/problems/{problemId}). Is there a way to fetch the event message using this API.

2 REPLIES 2

ChadTurner
Leader

Do you have a screen shot of this issue? If you can see the Problem ID in the URL or so on, you can fetch the details via the API. Select Environment API V1 or V2 and select Problems. Add in your API token, Click Try it out, toss in the Problem ID and click execute.

-Chad

ttripathi995
Newcomer

I am not able to fetch the exact alert message from Dynatrace API.

In my console i get a problem with below message ;

"Disk 'C:\' has low disk space"

But when i fetch it via Problem/feed & Problem/details API , i am not getting this message

details received from problem/feed :

"problems": [ { "id": "-2811686803881532400", "startTime": 1529736420000, "endTime": -1, "displayName": "400", "impactLevel": "INFRASTRUCTURE", "status": "OPEN", "severityLevel": "RESOURCE_CONTENTION", "commentCount": 0, "tagsOfAffectedEntities": [ { "context": "CONTEXTLESS", "key": "Server" } ], "rankedImpacts": [ { "entityId": "HOST-89C67D297B4BC599", "entityName": "DXCINDAI685188.asiapac.globalcsc.net", "severityLevel": "RESOURCE_CONTENTION", "impactLevel": "INFRASTRUCTURE", "eventType": "LOW_DISK_SPACE" } ], "affectedCounts": { "INFRASTRUCTURE": 1, "SERVICE": 0, "APPLICATION": 0 }, "recoveredCounts": { "INFRASTRUCTURE": 0, "SERVICE": 0, "APPLICATION": 0 }, "hasRootCause": false },

Details received from Problem/details

result": { "id": "-2811686803881532400", "startTime": 1529736420000, "endTime": -1, "displayName": "400", "impactLevel": "INFRASTRUCTURE", "status": "OPEN", "severityLevel": "RESOURCE_CONTENTION", "commentCount": 0, "tagsOfAffectedEntities": [ { "context": "CONTEXTLESS", "key": "Server" } ], "rankedEvents": [ { "startTime": 1529736420000, "endTime": -1, "entityId": "HOST-89C67D297B4BC599", "entityName": "DXCINDAI685188.asiapac.globalcsc.net", "severityLevel": "RESOURCE_CONTENTION", "impactLevel": "INFRASTRUCTURE", "eventType": "LOW_DISK_SPACE", "status": "OPEN", "severities": [], "isRootCause": false } ], "rankedImpacts": [ { "entityId": "HOST-89C67D297B4BC599", "entityName": "DXCINDAI685188.asiapac.globalcsc.net", "severityLevel": "RESOURCE_CONTENTION", "impactLevel": "INFRASTRUCTURE", "eventType": "LOW_DISK_SPACE" } ], "affectedCounts": { "INFRASTRUCTURE": 1, "SERVICE": 0, "APPLICATION": 0 }, "recoveredCounts": { "INFRASTRUCTURE": 0, "SERVICE": 0, "APPLICATION": 0 }, "hasRootCause": false } }