23 Jun 2018 08:34 AM
Hi Guys,
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
}
}
Thanks
Himanshu Mor
Solved! Go to Solution.
25 Jun 2018 06:24 AM
Yes the REST API is limited to the enumerable type of the event so far.