Get Notification History
Returns the previous records and the occurrence of notification.
The Request body contains parameters to perform filtering, sorting and pagination on reponse.
Show optional properties
{
"deDupKey": "Name:NOTIFICATION-KubernetesWorker_KubernetesWorker-96105fd2-1a74-46b6-ac8f-e869609e8d42_Down$Source:INCHARGE-SA-PRES$"
}
{
"deDupKey": "Name:NOTIFICATION-KubernetesWorker_KubernetesWorker-96105fd2-1a74-46b6-ac8f-e869609e8d42_Down$Source:INCHARGE-SA-PRES$",
"size": 100,
"from": 0,
"sort": [
{
"order": "desc",
"fieldName": "Severity"
}
],
"vsafilter": {
"condition": "AND",
"filterlist": [
"Filter Object"
]
}
}
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.
OK
{
"Count": 1,
"Result": [
{
"UserDefined8": "",
"TroubleTicketID": "",
"UserDefined9": "",
"UserDefined6": "",
"Owner": "",
"UserDefined7": "",
"InMaintenance": false,
"SourceInfo": "INCHARGE-SA",
"IsProblem": true,
"EventType": "DURABLE",
"IsLiveNotification": true,
"ProcessedTimeStamp": 1662382231244,
"UserDefined1": "",
"InstanceDisplayName": "kube-metaswitch-np1-76ddcc547d-5pp6k",
"UserDefined4": "",
"UserDefined5": "",
"UserDefined2": "",
"ElementClassName": "KubernetesWorker",
"Name": "NOTIFICATION-KubernetesWorker_KubernetesWorker-96105fd2-1a74-46b6-ac8f-e869609e8d42_Down",
"UserDefined3": "",
"LastModified": null,
"PollingID": 1662381989790,
"EventText": "Indicates that root cause is failed system.",
"ElementName": "KubernetesWorker-96105fd2-1a74-46b6-ac8f-e869609e8d42",
"LastChangedAt": 1661231881000,
"LastClearedAt": null,
"elementUUID": "KubernetesWorker-96105fd2-1a74-46b6-ac8f-e869609e8d42$KubernetesWorker$INCHARGE-SA-PRES",
"Impact": 0,
"deviceType": "KubernetesWorker",
"UserDefined19": "",
"UserDefined18": "",
"UserDefined17": "",
"UserDefined16": "",
"HasCauses": true,
"UserDefined15": "",
"UserDefined14": "",
"UserDefined13": "",
"OriginalSources": [],
"NotificationStates": [
{
"syncTimestamp": 1662382231244,
"eventState": "ACTIVE",
"source": "INCHARGE-SA-PRES",
"eventTimestamp": 1661231881000,
"syncId": 1662381989790
}
],
"tags": {
"location": "",
"customer": ""
},
"InstanceName": "KubernetesWorker-96105fd2-1a74-46b6-ac8f-e869609e8d42",
"DeDupKey": "Name:NOTIFICATION-KubernetesWorker_KubernetesWorker-96105fd2-1a74-46b6-ac8f-e869609e8d42_Down$Source:INCHARGE-SA-PRES$@1661231881000",
"Active": true,
"ToolInfo": null,
"AcknowledgmentTime": null,
"LastNotifiedAt": 1660934327000,
"State": null,
"SourceDomainName": "INCHARGE-ESM",
"UserDefined20": "",
"Acknowledged": false,
"IsRoot": true,
"Category": "Availability",
"EventDisplayName": "Down",
"Certainty": 100,
"elementUUID_PM": "KubernetesWorker-96105fd2-1a74-46b6-ac8f-e869609e8d42$KubernetesWorker$",
"Source": "INCHARGE-SA-PRES",
"UserDefined12": "",
"ClassName": "KubernetesWorker",
"DisplayName": "KubernetesWorker Down 100.0%: kube-metaswitch-np1-76ddcc547d-5pp6k",
"instanceUUID": "KubernetesWorker-96105fd2-1a74-46b6-ac8f-e869609e8d42$KubernetesWorker$INCHARGE-SA-PRES",
"UserDefined11": "",
"UserDefined10": "https://10.62.72.35/ui/index.action#/inventory/all/96105fd2-1a74-46b6-ac8f-e869609e8d42/summary",
"FirstNotifiedAt": 1660934327000,
"EventState": "ACTIVE",
"Severity": 1,
"EventName": "Down",
"SourceSpecific": "primary",
"ClassDisplayName": "KubernetesWorker",
"OccurrenceCount": 2,
"PollingState": "POLLING",
"ClearOnAcknowledge": false,
"SourceEventType": "PROBLEM"
}
]
}
total number of notification
Notification object can also have enriched custom fields, apart from the standard fields.
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/history