AT&T ECOMP Vendor Event Listener library
0.1
|
Implementation of EVEL functions relating to the Measurement for VF Reporting event. More...
#include <string.h>
#include <assert.h>
#include <stdlib.h>
#include "evel.h"
#include "evel_internal.h"
#include "evel_throttle.h"
Go to the source code of this file.
Functions | |
EVENT_REPORT * | evel_new_report (double measurement_interval) |
Create a new Report event. More... | |
void | evel_report_type_set (EVENT_REPORT *report, const char *const type) |
Set the Event Type property of the Report. More... | |
void | evel_report_feature_use_add (EVENT_REPORT *report, char *feature, int utilization) |
Add a Feature usage value name/value pair to the Report. More... | |
void | evel_report_custom_measurement_add (EVENT_REPORT *report, const char *const group, const char *const name, const char *const value) |
Add a Additional Measurement value name/value pair to the Report. More... | |
void | evel_json_encode_report (EVEL_JSON_BUFFER *jbuf, EVENT_REPORT *event) |
Encode the report as a JSON report. More... | |
void | evel_free_report (EVENT_REPORT *event) |
Free a Report. More... | |
Implementation of EVEL functions relating to the Measurement for VF Reporting event.
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_reporting_measurement.c.
void evel_free_report | ( | EVENT_REPORT * | event | ) |
Free a Report.
Free off the Report supplied. Will free all the contained allocated memory.
Definition at line 400 of file evel_reporting_measurement.c.
void evel_json_encode_report | ( | EVEL_JSON_BUFFER * | jbuf, |
EVENT_REPORT * | event | ||
) |
Encode the report as a JSON report.
jbuf | Pointer to the EVEL_JSON_BUFFER to encode into. |
event | Pointer to the EVENT_HEADER to encode. |
Definition at line 266 of file evel_reporting_measurement.c.
EVENT_REPORT* evel_new_report | ( | double | measurement_interval | ) |
Create a new Report event.
measurement_interval |
NULL | Failed to create the event. |
Definition at line 66 of file evel_reporting_measurement.c.
void evel_report_custom_measurement_add | ( | EVENT_REPORT * | report, |
const char *const | group, | ||
const char *const | name, | ||
const char *const | value | ||
) |
Add a Additional Measurement value name/value pair to the Report.
The name is null delimited ASCII string. The library takes a copy so the caller does not have to preserve values after the function returns.
report | Pointer to the report. |
group | ASCIIZ string with the measurement group's name. |
name | ASCIIZ string containing the measurement's name. |
value | ASCIIZ string containing the measurement's value. |
Definition at line 187 of file evel_reporting_measurement.c.
void evel_report_feature_use_add | ( | EVENT_REPORT * | report, |
char * | feature, | ||
int | utilization | ||
) |
Add a Feature usage value name/value pair to the Report.
The name is null delimited ASCII string. The library takes a copy so the caller does not have to preserve values after the function returns.
report | Pointer to the report. |
feature | ASCIIZ string with the feature's name. |
utilization | Utilization of the feature. |
Definition at line 144 of file evel_reporting_measurement.c.
void evel_report_type_set | ( | EVENT_REPORT * | report, |
const char *const | type | ||
) |
Set the Event Type property of the Report.
report | Pointer to the Report. |
type | The Event Type to be set. ASCIIZ string. The caller does not need to preserve the value once the function returns. |
Definition at line 118 of file evel_reporting_measurement.c.