Get Causes
Get causes operation lists the impacted notification caused by the requested notification.
Request body contains parameters to get list of notification that are causes by requested notification.
Show optional properties
{
"deDupKey": "Name:NOTIFICATION-KubernetesWorker_KubernetesWorker-96105fd2-1a74-46b6-ac8f-e869609e8d42_Down$Source:INCHARGE-SA-PRES$"
}
{
"deDupKey": "Name:NOTIFICATION-Router_dev-MPLSp8_Down$Source:INCHARGE-SA-PRES$",
"size": 100,
"from": 0,
"sort": [
{
"order": "desc",
"fieldName": "Severity"
}
],
"vsafilter": {
"condition": "AND",
"filterlist": [
"Filter Object"
]
},
"isLive": false
}
DeDupkey uniquely indentifies the notification across domains.
The size parameter allows you to configure the maximum amount of notifications to be returned.
The from parameter defines the offset from the first result user want to fetch.
The Sort object defines, on which field sorting has to be apply and what will be the sorting order (ASC/DESC).
The VSAFilter object defines how the filters has to be applied on queries.
Setting value to true returns the root causes for live notification, setting value to "false "will return root causes for historical notification. Default is true
OK
{
"Count": 1,
"Result": [
{
"UserDefined8": "",
"TroubleTicketID": "",
"UserDefined9": "",
"UserDefined6": "",
"Owner": "admin",
"UserDefined7": "",
"InMaintenance": false,
"SourceInfo": "INCHARGE-SA",
"IsProblem": false,
"EventType": "DURABLE",
"IsLiveNotification": true,
"ProcessedTimeStamp": 1662450274959,
"UserDefined1": "",
"InstanceDisplayName": "kube-multus-ds-amd64-gv429",
"UserDefined4": "",
"UserDefined5": "",
"UserDefined2": "",
"ElementClassName": "NetworkFunction",
"Name": "NOTIFICATION-NetworkFunction_NetworkFunction-ebf940d1-9166-4e3b-bb17-c6b8d200bdc2_Impaired",
"UserDefined3": "",
"PollingID": 1662449173275,
"EventText": "The Function is Impaired",
"ElementName": "NetworkFunction-ebf940d1-9166-4e3b-bb17-c6b8d200bdc2",
"LastChangedAt": 1662439219000,
"elementUUID": "NetworkFunction-ebf940d1-9166-4e3b-bb17-c6b8d200bdc2$NetworkFunction$INCHARGE-SA-PRES",
"Impact": 0,
"deviceType": "NetworkFunction",
"UserDefined19": "",
"UserDefined18": "",
"UserDefined17": "",
"UserDefined16": "",
"HasCauses": false,
"UserDefined15": "",
"UserDefined14": "",
"UserDefined13": "",
"OriginalSources": [],
"NotificationStates": [
{
"syncTimestamp": 1662450274959,
"source": "INCHARGE-SA-PRES",
"eventState": "ACTIVE",
"eventTimestamp": 1662439219000,
"syncId": 1662449173275
}
],
"tags": {
"location": "",
"customer": ""
},
"InstanceName": "NetworkFunction-ebf940d1-9166-4e3b-bb17-c6b8d200bdc2",
"DeDupKey": "Name:NOTIFICATION-NetworkFunction_NetworkFunction-ebf940d1-9166-4e3b-bb17-c6b8d200bdc2_Impaired$Source:INCHARGE-SA-PRES$",
"Active": true,
"LastNotifiedAt": 1660934292000,
"SourceDomainName": "INCHARGE-ESM",
"UserDefined20": "",
"Acknowledged": true,
"IsRoot": false,
"Category": "Operational",
"EventDisplayName": "Impaired",
"Certainty": 100,
"elementUUID_PM": "NetworkFunction-ebf940d1-9166-4e3b-bb17-c6b8d200bdc2$NetworkFunction$",
"Source": "INCHARGE-SA-PRES",
"UserDefined12": "",
"ClassName": "NetworkFunction",
"DisplayName": "NetworkFunction Impaired 100.0%: kube-multus-ds-amd64-gv429",
"instanceUUID": "NetworkFunction-ebf940d1-9166-4e3b-bb17-c6b8d200bdc2$NetworkFunction$INCHARGE-SA-PRES",
"UserDefined11": "",
"UserDefined10": "",
"FirstNotifiedAt": 1660934292000,
"EventState": "ACTIVE",
"Severity": 2,
"EventName": "Impaired",
"SourceSpecific": "primary",
"ClassDisplayName": "NetworkFunction",
"OccurrenceCount": 2,
"PollingState": "POLLING",
"ClearOnAcknowledge": false,
"SourceEventType": "EVENT"
}
]
}
total number of notification
An array of notfication objects.
Client must authenticate itself to get the requested response
The client does not have access rights to the content; that is, it is Client must authenticate itself to get the requested response
The server can not find the requested resource
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"deDupKey:"string"}' https://{api_host}/tcsa/api/notification-management/v1/notifications/causes