aboutsummaryrefslogtreecommitdiffstats
path: root/vnfs/VES5.0/evel/evel-library/code/evel_library/evel_threshold_cross.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_threshold_cross.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_threshold_cross.c')
-rw-r--r--vnfs/VES5.0/evel/evel-library/code/evel_library/evel_threshold_cross.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/vnfs/VES5.0/evel/evel-library/code/evel_library/evel_threshold_cross.c b/vnfs/VES5.0/evel/evel-library/code/evel_library/evel_threshold_cross.c
index a0a9cc3d..f4fa620f 100644
--- a/vnfs/VES5.0/evel/evel-library/code/evel_library/evel_threshold_cross.c
+++ b/vnfs/VES5.0/evel/evel-library/code/evel_library/evel_threshold_cross.c
@@ -35,6 +35,8 @@
* setter functions, but again values may only be set once so that the
* TCA has immutable properties.
*
+ * @param event_name Unique Event Name confirming Domain AsdcVnfModel Description
+ * @param event_id A universal identifier of the event for: troubleshooting correlation, analysis, etc
* @param char* tcriticality Performance Counter Criticality MAJ MIN,
* @param char* tname Performance Counter Threshold name
* @param char* tthresholdCrossed Counter Threshold crossed value
@@ -51,7 +53,8 @@
* ::evel_free_threshold_cross
* @retval NULL Failed to create the event.
*****************************************************************************/
-EVENT_THRESHOLD_CROSS * evel_new_threshold_cross( char * tcriticality,
+EVENT_THRESHOLD_CROSS * evel_new_threshold_cross(const char * ev_name, const char * ev_id,
+ char * tcriticality,
char * tname,
char * tthresholdCrossed,
char * tvalue,
@@ -87,7 +90,7 @@ EVENT_THRESHOLD_CROSS * evel_new_threshold_cross( char * tcriticality,
/***************************************************************************/
/* Initialize the header & the threshold crossing fields. */
/***************************************************************************/
- evel_init_header(&event->header,"thresholdCrossingAlert");
+ evel_init_header_nameid(&event->header,ev_name,ev_id);
event->header.event_domain = EVEL_DOMAIN_THRESHOLD_CROSS;
event->major_version = EVEL_THRESHOLD_CROSS_MAJOR_VERSION;
event->minor_version = EVEL_THRESHOLD_CROSS_MINOR_VERSION;