[{"label":"Latest (2.0.1)","version":"latest"}]
telco-cloud-service-assurance

Get Notification History

Description

Returns the previous records and the occurrence of notification.

Request

Request

URL

URL


post
https://{api_host}tcsa.host.com/tcsa/api/notification-management/v1/notifications/history
Copy

Request Body

Request Body

NotificationHistoryRequest of mimetype application/json Required

The Request body contains parameters to perform filtering, sorting and pagination on reponse.

{
    "deDupKey": "Name:NOTIFICATION-KubernetesWorker_KubernetesWorker-96105fd2-1a74-46b6-ac8f-e869609e8d42_Down$Source:INCHARGE-SA-PRES$"
}
string
deDupKey Required

DeDupkey uniquely indentifies the notification across domains.


integer as int32
from Optional

The from parameter defines the offset from the first result user want to fetch.


integer as int32
size Optional

The size parameter allows you to configure the maximum amount of notifications to be returned.


array of Sort
sort Optional

The Sort object defines, on which field sorting has to be apply and what will be the sorting order (ASC/DESC).


vsafilter Optional

The VSAFilter object defines how the filters has to be applied on queries.

Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

Response Body

Response Body

200 OK

Returns HistoryResponse of type application/json
{
	"Count": 1,
	"Result": [
		{
			"Acknowledged": false,
			"AcknowledgmentTime": null,
			"Active": true,
			"Category": "Availability",
			"Certainty": 100,
			"ClassDisplayName": "KubernetesWorker",
			"ClassName": "KubernetesWorker",
			"ClearOnAcknowledge": false,
			"DeDupKey": "Name:NOTIFICATION-KubernetesWorker_KubernetesWorker-96105fd2-1a74-46b6-ac8f-e869609e8d42_Down$Source:INCHARGE-SA-PRES$@1661231881000",
			"DisplayName": "KubernetesWorker Down 100.0%: kube-metaswitch-np1-76ddcc547d-5pp6k",
			"ElementClassName": "KubernetesWorker",
			"ElementName": "KubernetesWorker-96105fd2-1a74-46b6-ac8f-e869609e8d42",
			"EventDisplayName": "Down",
			"EventName": "Down",
			"EventState": "ACTIVE",
			"EventText": "Indicates that root cause is failed system.",
			"EventType": "DURABLE",
			"FirstNotifiedAt": 1660934327000,
			"HasCauses": true,
			"Impact": 0,
			"InMaintenance": false,
			"InstanceDisplayName": "kube-metaswitch-np1-76ddcc547d-5pp6k",
			"InstanceName": "KubernetesWorker-96105fd2-1a74-46b6-ac8f-e869609e8d42",
			"IsLiveNotification": true,
			"IsProblem": true,
			"IsRoot": true,
			"LastChangedAt": 1661231881000,
			"LastClearedAt": null,
			"LastModified": null,
			"LastNotifiedAt": 1660934327000,
			"Name": "NOTIFICATION-KubernetesWorker_KubernetesWorker-96105fd2-1a74-46b6-ac8f-e869609e8d42_Down",
			"NotificationStates": [
				{
					"eventState": "ACTIVE",
					"eventTimestamp": 1661231881000,
					"source": "INCHARGE-SA-PRES",
					"syncId": 1662381989790,
					"syncTimestamp": 1662382231244
				}
			],
			"OccurrenceCount": 2,
			"OriginalSources": [],
			"Owner": "",
			"PollingID": 1662381989790,
			"PollingState": "POLLING",
			"ProcessedTimeStamp": 1662382231244,
			"Severity": 1,
			"Source": "INCHARGE-SA-PRES",
			"SourceDomainName": "INCHARGE-ESM",
			"SourceEventType": "PROBLEM",
			"SourceInfo": "INCHARGE-SA",
			"SourceSpecific": "primary",
			"State": null,
			"ToolInfo": null,
			"TroubleTicketID": "",
			"UserDefined1": "",
			"UserDefined10": "https://10.62.72.35/ui/index.action#/inventory/all/96105fd2-1a74-46b6-ac8f-e869609e8d42/summary",
			"UserDefined11": "",
			"UserDefined12": "",
			"UserDefined13": "",
			"UserDefined14": "",
			"UserDefined15": "",
			"UserDefined16": "",
			"UserDefined17": "",
			"UserDefined18": "",
			"UserDefined19": "",
			"UserDefined2": "",
			"UserDefined20": "",
			"UserDefined3": "",
			"UserDefined4": "",
			"UserDefined5": "",
			"UserDefined6": "",
			"UserDefined7": "",
			"UserDefined8": "",
			"UserDefined9": "",
			"deviceType": "KubernetesWorker",
			"elementUUID": "KubernetesWorker-96105fd2-1a74-46b6-ac8f-e869609e8d42$KubernetesWorker$INCHARGE-SA-PRES",
			"elementUUID_PM": "KubernetesWorker-96105fd2-1a74-46b6-ac8f-e869609e8d42$KubernetesWorker$",
			"instanceUUID": "KubernetesWorker-96105fd2-1a74-46b6-ac8f-e869609e8d42$KubernetesWorker$INCHARGE-SA-PRES",
			"tags": {
				"customer": "",
				"location": ""
			}
		}
	]
}
integer
Count Optional

total number of notification


array of Notification
Result Optional

Notification object can also have enriched custom fields, apart from the standard fields.

Errors

Errors

401

Client must authenticate itself to get the requested response


403

The client does not have access rights to the content; that is, it is Client must authenticate itself to get the requested response


404

The server can not find the requested resource

Code Samples

Code Samples

cURL Command

curl -X POST -H "Content-Type: application/json" -d '{"deDupKey":"Name:NOTIFICATION-KubernetesWorker_KubernetesWorker-96105fd2-1a74-46b6-ac8f-e869609e8d42_Down$Source:INCHARGE-SA-PRES$","from":0,"size":10,"sort":[{"fieldName":"LastChangedAt","order":"desc"}],"vsafilter":{"condition":"AND","filterlist":[{"condition":"AND","propfilter":[{"matchtype":"CONTAINS","propname":"Owner","values":["SYSTEM"]}]}]}}' https://{api_host}tcsa.host.com/tcsa/api/notification-management/v1/notifications/history


Feedback

Was this page helpful?