*
* Copyright © 2017 AT&T Intellectual Property. All rights reserved.
*
+ * Unless otherwise specified, all software contained herein is
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
- *
+ * ECOMP is a trademark and service mark of AT&T Intellectual Property.
****************************************************************************/
/**************************************************************************//**
* that the Report has immutable properties.
*
* @param measurement_interval
-
+ * @param event_name Unique Event Name
+ * @param event_id A universal identifier of the event for analysis etc
* @returns pointer to the newly manufactured ::EVENT_REPORT. If the event is
* not used (i.e. posted) it must be released using ::evel_free_event.
* @retval NULL Failed to create the event.
*****************************************************************************/
-EVENT_REPORT * evel_new_report(double measurement_interval)
+EVENT_REPORT * evel_new_report(double measurement_interval,const char *ev_name, const char *ev_id)
{
EVENT_REPORT * report = NULL;
/***************************************************************************/
/* Initialize the header & the report fields. */
/***************************************************************************/
- evel_init_header(&report->header,"Report");
+ evel_init_header_nameid(&report->header,ev_name,ev_id);
report->header.event_domain = EVEL_DOMAIN_REPORT;
report->measurement_interval = measurement_interval;
{
evel_json_open_object(jbuf);
evel_enc_kv_string(jbuf, "name", measurement_group->name);
- evel_json_open_named_list(jbuf, "measurements");
+ evel_json_open_named_list(jbuf, "arrayOfFields");
/*********************************************************************/
/* Measurements list. */