ETSI Alarms
ESC provides alarms and notifications to the NFVO. The NFVO has to subscribe to these alarms and notifications and send requests to ESC.
The NFVO can receive information about the alarms in the following ways:
Query All Alarms
The NFVO can get a list of all the alarms from the alarms resource.
Method Type:
GET
VNFM Endpoint:
/vnffm/v1/alarms
HTTP Request Header:
Accept:application/json
For example, to query all alarms with the event type as ENVIRONMENTAL_ALARM
Method Type:
GET
VNFM Endpoint:
http://localhost:8250/vnffm/v1/alarms?eventType="ENVIRONMENTAL_ALARM"
HTTP Request Headers:
Accept:application/json
While querying for multiple alarms, the NFVO can use the URI query parameters to filter the results. The following attribute names are supported for the URI query of the alarms:
-
id
-
managedObjectId
-
rootCauseFaultyResource.faultyResourceType
-
eventType
-
perceivedSeverity
-
probableCause
Note |
The URI query parameters are for querying multiple alarms only. |
Query an Individual Alarm
The NFVO can query a particular alarm from the alarmId resource.
Method Type:
GET
VNFM Endpoint
/vnffm/v1/alarms/{alarmId}
HTTP Request Header:
Accept:application/json
Modify an Individual Alarm
To modify an alarm, the NFVO must send a PATCH request to the AlarmModifications resource.
Method Type:
PATCH
VNFM Endpoint:
HTTP Request Header:
Content-Type: application/merge-patch+json
If-Match: ETag value
Note |
If-Match: is optional. If specified, its value is validated against the ETag value stored against the VNF (and returned from a single VNF query). |
The supported attribute is ackState, and the supported attribute values are ACKNOWLEDGED and UNACKNOWLEDGED. All other modification payloads are rejected.
VNF Failure and Load Alarms
The following alarms are created for ETSI VNF failure and load notifications.
-
Failure Alarm—ESC generates the failure alarms when one of the compute resources within the VNF becomes unreachable based upon the VM_ALIVE KPI configuration of the VFND. For more information, see VNF Failure and Load Notifications.
Example:
Method Type
POST
VNFM Endpoint
/vnffm/v1/extension/alarms
HTTP Request Header
Content-Type:application/json
Request Payload:
{ "externalAlarmId" : "26bf1e3d-cefa-4f59-88ea-210a29358a5c", #generated value "alarmSource" : "MONA", #hard-coded "managedObjectId" : "08733ef2-319b-46ce-9d8d-95730306bd1a", #external_deployment_id "rootCauseFaultyResource" : "chrimann-dep_g1_0_212da327-0573-421b-ae37-057f6b1a6aef", #vm_name "alarmRaisedTime" : "$timestamp", #generated value "ackState" : "UNACKNOWLEDGED", #hard-coded "perceivedSeverity" : "CRITICAL", #hard-coded "eventTime" : "2018-05-08T00:59:32.571+00:00", #do we have the eventTime? "eventType" : "EQUIPMENT_ALARM", #hard-coded "faultType" : "COMPUTE", #hard-coded "probableCause" : "VM_MANUAL_RECOVERY_NEEDED", #event_name "isRootCause" : "TRUE", #hard-coded "links" : { "objectInstance" : "{http_scheme}://{api_root}/vnflcm/v2/vnf_instances/08733ef2-319b-46ce-9d8d-95730306bd1a" } }
-
Load Alarm—ESC generates the load alarms when one of the compute resources within the VNF becomes over or under loaded based upon the related KPI configurations of the VFND. ESC creates these alarms after receiving notifications from the NFVO. For more information, see VNF Failure and Load Notifications.
Example:
Method Type
POST
VNFM Endpoint
/vnffm/v1/extension/alarms
HTTP Request Header
Content-Type:application/json
Request Payload
Alarm Extensions
ETSI provides an extension for the alarms to interact with the third party tools. You must send a POST request to create the alarms.
Method Type
POST
VNFM Endpoint
/vnffm/v1/extension/alarms
HTTP Request Header
Content-Type:application/json
Request Payload
[admin@davwebst-esc-4-2-0-49-keep ETSI]$ cat CreateAlarm.json
{
"id": "alm87032",
"externalAlarmId": "ext-id-xx11214",
"managedObjectId": "930fb087-c1b9-4660-bec8-2a8d97dc1df5",
"rootCauseFaultyResource": {
"id": "fres7629",
"faultyResource": {
"resourceId": "res7727"
},
"faultyResourceType": "NETWORK"
},
"alarmRaisedTime": "2018-05-30T13:55:15.645000+00",
"ackState": "UNACKNOWLEDGED",
"perceivedSeverity": "MAJOR",
"eventTime": "2018-05-30T13:55:15.645000+00",
"eventType": "ENVIRONMENTAL_ALARM",
"probableCause": "Server room overheating",
"isRootCause": "false",
"vnfInstanceIds": [
"res-a3023a03-fc73-430a-a983-5e9439011e45"
}