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

Get Caused By

Description

Returns the list of notification, that are causing the requested notification.

Request

Request

URL

URL


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

Request Body

Request Body

RootCausedByRequest of mimetype application/json Required

Request body contains parameters to get list of notification that are caused by requested notification.

{
    "deDupKey": "Name:NOTIFICATION-NetworkFunction_NetworkFunction-ebf940d1-9166-4e3b-bb17-c6b8d200bdc2_Impaired$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.


boolean
isLive Optional

Setting value to “true” returns the root caused-by for live notification, setting value to “false “will return root caused-by for historical notification. Default is “true”


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 CausedByResponse of type application/json
{
	"Count": 1,
	"Result": [
		{
			"Acknowledged": false,
			"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$",
			"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,
			"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",
			"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

An array of notfication objects.

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-NetworkFunction_NetworkFunction-ebf940d1-9166-4e3b-bb17-c6b8d200bdc2_Impaired$Source:INCHARGE-SA-PRES$","from":0,"isLive":false,"size":10}' https://{api_host}tcsa.host.com/tcsa/api/notification-management/v1/notifications/caused-by


Feedback

Was this page helpful?