AT&T ECOMP Vendor Event Listener library
0.1
|
Source module isolating the ECOMP Vendor Event Listener (EVEL) API. More...
#include <string.h>
#include <assert.h>
#include <stdlib.h>
#include <sys/time.h>
#include <curl/curl.h>
#include "evel.h"
#include "evel_internal.h"
#include "evel_throttle.h"
#include "metadata.h"
Go to the source code of this file.
Functions | |
EVEL_ERR_CODES | evel_initialize (const char *const fqdn, int port, const char *const path, const char *const topic, int secure, const char *const username, const char *const password, EVEL_SOURCE_TYPES source_type, const char *const role, int verbosity) |
Library initialization. More... | |
EVEL_ERR_CODES | evel_terminate (void) |
Clean up the EVEL library. More... | |
void | evel_free_event (void *event) |
Free an event. More... | |
Variables | |
EVEL_SOURCE_TYPES | event_source_type = EVEL_SOURCE_OTHER |
The type of equipment represented by this VNF. More... | |
char * | functional_role = NULL |
The Functional Role of the equipment represented by this VNF. More... | |
Source module isolating the ECOMP Vendor Event Listener (EVEL) API.
This file implements the EVEL library which is intended to provide a simple wrapper around the complexity of AT&T's Vendor Event Listener API so that VNFs can use it without worrying about details of:
Copyright(c) <2016>, AT&T Intellectual Property. All other rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY AT&T INTELLECTUAL PROPERTY ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL AT&T INTELLECTUAL PROPERTY BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Definition in file evel.c.
void evel_free_event | ( | void * | event | ) |
EVEL_ERR_CODES evel_initialize | ( | const char *const | fqdn, |
int | port, | ||
const char *const | path, | ||
const char *const | topic, | ||
int | secure, | ||
const char *const | username, | ||
const char *const | password, | ||
EVEL_SOURCE_TYPES | source_type, | ||
const char *const | role, | ||
int | verbosity | ||
) |
Library initialization.
Initialize the EVEL library.
fqdn | The API's FQDN or IP address. |
port | The API's port. |
path | The optional path (may be NULL). |
topic | The optional topic part of the URL (may be NULL). |
secure | Whether to use HTTPS (0=HTTP, 1=HTTPS) |
username | Username for Basic Authentication of requests. |
password | Password for Basic Authentication of requests. |
source_type | The kind of node we represent. |
role | The role this node undertakes. |
verbosity | 0 for normal operation, positive values for chattier logs. |
EVEL_SUCCESS | On success |
EVEL_ERR_CODES | On failure. |
EVEL_ERR_CODES evel_terminate | ( | void | ) |
EVEL_SOURCE_TYPES event_source_type = EVEL_SOURCE_OTHER |