Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 1.26 KB

File metadata and controls

14 lines (10 loc) · 1.26 KB

OAMLogServices.js

This class provides functionality to log the OaM request to the OAMLog application in the SDN Microservice architecture. A REST call will be initiated from this application to the OAMLog application to record the transaction happened in the OAM layer.

apd_image6

Functions:

Method and description Input parameters Return type
recordOamRequest:
This function formulates the request body with the
required attributes that needs to be sent to record the OaM request in the OamLog application.
{string} oamPath oam path that is accessed during the request.
{string} requestBody incase if it is a put request, then the request body of the request.
{string} responseCode response code of the REST call execution.
{string} authorizationCode authorization code used to access the oam layer. This will then be decoded to find out the username.
{string} method HTTP method of the OAM layer call. It can be PUT, GET.
{promise} true if the request was successful.

colorline_blue