aboutsummaryrefslogtreecommitdiffstats
path: root/vnfs/VES5.0/evel/evel-library/code/evel_library/evel_mobile_flow.c
diff options
context:
space:
mode:
authorgokuls <goksing@gmail.com>2017-08-18 16:38:13 -0400
committergokuls <goksing@gmail.com>2017-08-18 17:03:52 -0400
commit312996e26c793460869c5569d73cb4159a13f996 (patch)
tree76b415b13afdd55543fe508879949ad58b62b55c /vnfs/VES5.0/evel/evel-library/code/evel_library/evel_mobile_flow.c
parentbdc999846e5888a4e4c87b2fbdf06123f32b0c0f (diff)
Modified hardcoded eventname id to user defined
Issue-Id: VNFRQTS-77 Change-Id: I7141a1cd5206893007873efbeaef377e5e00c96b Signed-Off-by: Gokul Singaraju <goksing@gmail.com>
Diffstat (limited to 'vnfs/VES5.0/evel/evel-library/code/evel_library/evel_mobile_flow.c')
-rw-r--r--vnfs/VES5.0/evel/evel-library/code/evel_library/evel_mobile_flow.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/vnfs/VES5.0/evel/evel-library/code/evel_library/evel_mobile_flow.c b/vnfs/VES5.0/evel/evel-library/code/evel_library/evel_mobile_flow.c
index 0716e45f..5085d6a9 100644
--- a/vnfs/VES5.0/evel/evel-library/code/evel_library/evel_mobile_flow.c
+++ b/vnfs/VES5.0/evel/evel-library/code/evel_library/evel_mobile_flow.c
@@ -80,6 +80,8 @@ void evel_json_encode_mobile_flow_gtp_flow_metrics(
* factory function and are immutable once set. Optional fields have
* explicit setter functions, but again values may only be set once so
* that the Mobile Flow has immutable properties.
+ * @param event_name Unique Event Name confirming Domain AsdcModel Description
+ * @param event_id A universal identifier of the event for: troubleshooting correlation, analysis, etc
* @param flow_direction Flow direction.
* @param gtp_per_flow_metrics GTP per-flow metrics.
* @param ip_protocol_type IP protocol type.
@@ -93,7 +95,7 @@ void evel_json_encode_mobile_flow_gtp_flow_metrics(
* ::evel_free_mobile_flow.
* @retval NULL Failed to create the event.
*****************************************************************************/
-EVENT_MOBILE_FLOW * evel_new_mobile_flow(
+EVENT_MOBILE_FLOW * evel_new_mobile_flow(const char* ev_name, const char *ev_id,
const char * const flow_direction,
MOBILE_GTP_PER_FLOW_METRICS * gtp_per_flow_metrics,
const char * const ip_protocol_type,
@@ -134,7 +136,7 @@ EVENT_MOBILE_FLOW * evel_new_mobile_flow(
/* Initialize the header & the Mobile Flow fields. Optional string values */
/* are uninitialized (NULL). */
/***************************************************************************/
- evel_init_header(&mobile_flow->header,"MobileFlow");
+ evel_init_header_nameid(&mobile_flow->header,ev_name,ev_id);
mobile_flow->header.event_domain = EVEL_DOMAIN_MOBILE_FLOW;
mobile_flow->major_version = EVEL_MOBILE_FLOW_MAJOR_VERSION;
mobile_flow->minor_version = EVEL_MOBILE_FLOW_MINOR_VERSION;