diff options
author | gokuls <goksing@gmail.com> | 2017-08-18 16:38:13 -0400 |
---|---|---|
committer | gokuls <goksing@gmail.com> | 2017-08-18 17:03:52 -0400 |
commit | 312996e26c793460869c5569d73cb4159a13f996 (patch) | |
tree | 76b415b13afdd55543fe508879949ad58b62b55c /vnfs/VES5.0/evel/evel-library/code/evel_library/evel_fault.c | |
parent | bdc999846e5888a4e4c87b2fbdf06123f32b0c0f (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_fault.c')
-rw-r--r-- | vnfs/VES5.0/evel/evel-library/code/evel_library/evel_fault.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/vnfs/VES5.0/evel/evel-library/code/evel_library/evel_fault.c b/vnfs/VES5.0/evel/evel-library/code/evel_library/evel_fault.c index 7cbadfe6..c211f607 100644 --- a/vnfs/VES5.0/evel/evel-library/code/evel_library/evel_fault.c +++ b/vnfs/VES5.0/evel/evel-library/code/evel_library/evel_fault.c @@ -36,6 +36,8 @@ * function and are immutable once set. Optional fields have explicit * setter functions, but again values may only be set once so that the * Fault 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 condition The condition indicated by the Fault. * @param specific_problem The specific problem triggering the fault. * @param priority The priority of the event. @@ -47,7 +49,9 @@ * not used (i.e. posted) it must be released using ::evel_free_fault. * @retval NULL Failed to create the event. *****************************************************************************/ -EVENT_FAULT * evel_new_fault(const char * const condition, +EVENT_FAULT * evel_new_fault(const char * ev_name, + const char * ev_id, + const char * const condition, const char * const specific_problem, EVEL_EVENT_PRIORITIES priority, EVEL_SEVERITIES severity, @@ -81,7 +85,7 @@ EVENT_FAULT * evel_new_fault(const char * const condition, /* Initialize the header & the fault fields. Optional string values are */ /* uninitialized (NULL). */ /***************************************************************************/ - evel_init_header(&fault->header,"Fault"); + evel_init_header_nameid(&fault->header,ev_name,ev_id); fault->header.event_domain = EVEL_DOMAIN_FAULT; fault->header.priority = priority; fault->major_version = EVEL_FAULT_MAJOR_VERSION; |