diff options
author | Marco Platania <platania@research.att.com> | 2018-04-26 19:52:39 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-04-26 19:52:39 +0000 |
commit | 3f6879d3c754bd31160754c38dea24b7427269a5 (patch) | |
tree | cc13f07f0dad7ed91ec4d5e054c128293b907cb3 /vnfs/VES5.0/evel/evel-library/code/evel_library/evel.h | |
parent | 5916b8803c0c4100b94f888f3217ce369aca386e (diff) | |
parent | 4abede50105a018ef7ac59d9273de3fe15ebd5fe (diff) |
Merge "Supports 3rd party json for measurements"
Diffstat (limited to 'vnfs/VES5.0/evel/evel-library/code/evel_library/evel.h')
-rw-r--r-- | vnfs/VES5.0/evel/evel-library/code/evel_library/evel.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/vnfs/VES5.0/evel/evel-library/code/evel_library/evel.h b/vnfs/VES5.0/evel/evel-library/code/evel_library/evel.h index 5c05993d..b483b1f0 100644 --- a/vnfs/VES5.0/evel/evel-library/code/evel_library/evel.h +++ b/vnfs/VES5.0/evel/evel-library/code/evel_library/evel.h @@ -703,6 +703,37 @@ typedef struct event_measurement { } EVENT_MEASUREMENT; + + +/**************************************************************************//** + * Add an additional value name/value pair to the Measurement. + * + * The name and value are null delimited ASCII strings. The library takes + * a copy so the caller does not have to preserve values after the function + * returns. + * + * @param measurement Pointer to the measurement. + * @param name ASCIIZ string with the attribute's name. The caller + * does not need to preserve the value once the function + * returns. + * @param value ASCIIZ string with the attribute's value. The caller + * does not need to preserve the value once the function + * returns. + *****************************************************************************/ +void evel_measurement_addl_info_add(EVENT_MEASUREMENT * measurement, char * name, char * value); + +/**************************************************************************//** + * Add a json object to jsonObject list. + * + * The name and value are null delimited ASCII strings. The library takes + * a copy so the caller does not have to preserve values after the function + * returns. + * + * @param measurement Pointer to the ScalingMeasurement + * @param jsonobj Pointer to json object + *****************************************************************************/ +void evel_measurement_addl_object_add(EVENT_MEASUREMENT * measurement, EVEL_JSON_OBJECT *jsonobj); + /**************************************************************************//** * CPU Usage. * JSON equivalent field: cpuUsage |