60 #define EVEL_API_MAJOR_VERSION 3 61 #define EVEL_API_MINOR_VERSION 0 100 #define EVEL_MAX_STRING_LEN 4096 101 #define EVEL_MAX_JSON_BODY 16000 102 #define EVEL_MAX_ERROR_STRING_LEN 255 103 #define EVEL_MAX_URL_LEN 511 108 static const int EVEL_MEASUREMENT_INTERVAL_UKNOWN = 0;
119 static const int EVEL_EVENT_BUFFER_DEPTH = 100;
124 #define EVEL_TOS_SUPPORTED 256 403 #define EVEL_HEADER_MAJOR_VERSION 1 404 #define EVEL_HEADER_MINOR_VERSION 2 442 #define EVEL_FAULT_MAJOR_VERSION 1 443 #define EVEL_FAULT_MINOR_VERSION 1 486 #define EVEL_MEASUREMENT_MAJOR_VERSION 1 487 #define EVEL_MEASUREMENT_MINOR_VERSION 1 640 #define EVEL_REPORT_MAJOR_VERSION 1 641 #define EVEL_REPORT_MINOR_VERSION 1 733 #define EVEL_MOBILE_FLOW_MAJOR_VERSION 1 734 #define EVEL_MOBILE_FLOW_MINOR_VERSION 1 832 #define EVEL_SERVICE_MAJOR_VERSION 1 833 #define EVEL_SERVICE_MINOR_VERSION 1 909 #define EVEL_SIGNALING_MAJOR_VERSION 1 910 #define EVEL_SIGNALING_MINOR_VERSION 1 945 #define EVEL_STATE_CHANGE_MAJOR_VERSION 1 946 #define EVEL_STATE_CHANGE_MINOR_VERSION 1 986 #define EVEL_SYSLOG_MAJOR_VERSION 1 987 #define EVEL_SYSLOG_MINOR_VERSION 1 1076 const char *
const path,
1077 const char *
const topic,
1079 const char *
const username,
1080 const char *
const password,
1081 EVEL_SOURCE_TYPES source_type,
1082 const char *
const role,
1181 const char *
const type);
1193 const unsigned long long start_epoch_microsec);
1205 const unsigned long long last_epoch_microsec);
1216 const char *
const entity_name);
1227 const char *
const entity_id);
1246 const char *
const specific_problem,
1247 EVEL_EVENT_PRIORITIES priority,
1248 EVEL_SEVERITIES severity);
1274 const char *
const interface);
1352 const char *
const type);
1365 int concurrent_sessions);
1378 int configured_entities);
1394 int receive_discards,
1396 int transmit_discards,
1397 int transmit_errors);
1410 double mean_request_latency);
1423 double memory_configured);
1436 double memory_used);
1463 char *
id,
double usage);
1483 char * filesystem_name,
1484 double block_configured,
1487 double ephemeral_configured,
1488 double ephemeral_used,
1489 int ephemeral_iops);
1519 const char *
const group,
1520 const char *
const name,
1521 const char *
const value);
1563 int media_ports_in_use);
1576 double scaling_metric);
1606 const double high_end);
1620 const double low_end);
1642 const double low_end,
1643 const double high_end,
1667 const int packets_in,
1668 const int packets_out,
1670 const int bytes_out);
1695 const int broadcast_packets_in);
1709 const int broadcast_packets_out);
1723 const int multicast_packets_in);
1737 const int multicast_packets_out);
1751 const int unicast_packets_in);
1765 const int unicast_packets_out);
1798 char *
const vnic_id,
1799 const int packets_in,
1800 const int packets_out,
1801 const int broadcast_packets_in,
1802 const int broadcast_packets_out,
1804 const int bytes_out,
1805 const int multicast_packets_in,
1806 const int multicast_packets_out,
1807 const int unicast_packets_in,
1808 const int unicast_packets_out);
1887 const char *
const group,
1888 const char *
const name,
1889 const char *
const value);
1922 const char *
const flow_direction,
1924 const char *
const ip_protocol_type,
1925 const char *
const ip_version,
1926 const char *
const other_endpoint_ip_address,
1927 int other_endpoint_port,
1928 const char *
const reporting_endpoint_ip_addr,
1929 int reporting_endpoint_port);
1955 const char *
const type);
1970 const char *
const type);
1985 const char *
const type);
2000 const char *
const version);
2014 const char *
const cid);
2029 const char *
const type);
2043 const char *
const ecgi);
2058 const char *
const type);
2073 const char *
const version);
2087 const char *
const header);
2101 const char *
const imei);
2115 const char *
const imsi);
2129 const char *
const lac);
2143 const char *
const mcc);
2157 const char *
const mnc);
2171 const char *
const msisdn);
2186 const char *
const role);
2200 const char *
const rac);
2215 const char *
const tech);
2229 const char *
const sac);
2256 const char *
const tac);
2270 const char *
const tunnel_id);
2284 const char *
const vlan_id);
2332 double avg_bit_error_rate,
2333 double avg_packet_delay_variation,
2334 int avg_packet_latency,
2335 int avg_receive_throughput,
2336 int avg_transmit_throughput,
2337 int flow_activation_epoch,
2338 int flow_activation_microsec,
2339 int flow_deactivation_epoch,
2340 int flow_deactivation_microsec,
2341 time_t flow_deactivation_time,
2342 const char *
const flow_status,
2343 int max_packet_delay_variation,
2344 int num_activation_failures,
2346 int num_bytes_received,
2347 int num_bytes_transmitted,
2348 int num_dropped_packets,
2349 int num_l7_bytes_received,
2350 int num_l7_bytes_transmitted,
2351 int num_lost_packets,
2352 int num_out_of_order_packets,
2353 int num_packet_errors,
2354 int num_packets_received_excl_retrans,
2355 int num_packets_received_incl_retrans,
2356 int num_packets_transmitted_incl_retrans,
2359 int num_tunneled_l7_bytes_received,
2360 int round_trip_time,
2361 int time_to_first_byte);
2417 const char *
const act_by);
2449 const char *
const deact_by);
2465 const char *
const status);
2481 const char *
const status);
2608 const EVEL_TCP_FLAGS tcp_flag,
2624 const EVEL_QCI_COS_TYPES qci_cos,
2650 const char *
const event_id);
2675 const char *
const type);
2690 const char *
const product_id);
2705 const char *
const subsystem_id);
2720 const char *
const friendly_name);
2735 const char *
const correlator);
2749 const char *
const codec);
2763 const char *
const codec);
2777 const char *
const codec);
2792 const char *
const rtcp_data);
2808 const char *
const adjacency_name);
2822 const EVEL_SERVICE_ENDPOINT_DESC endpoint_desc);
2848 const int rtp_oct_disc);
2861 const int rtp_oct_recv);
2874 const int rtp_oct_sent);
2887 const int rtp_pkt_disc);
2900 const int rtp_pkt_recv);
2913 const int rtp_pkt_sent);
2939 const int rtp_oct_disc);
2952 const int rtp_oct_recv);
2965 const int rtp_oct_sent);
2978 const int rtp_pkt_disc);
2991 const int rtp_pkt_recv);
3004 const int rtp_pkt_sent);
3017 const double mos_cqe);
3030 const int packets_lost);
3044 const double packet_loss_percent);
3057 const int r_factor);
3071 const int round_trip_delay);
3086 const char *
const phone_number);
3102 const char *
const name,
3103 const char *
const value);
3128 const char *
const event_id);
3153 const char *
const type);
3168 const char *
const product_id);
3183 const char *
const subsystem_id);
3198 const char *
const friendly_name);
3213 const char *
const correlator);
3229 const char *
const local_ip_address);
3244 const char *
const local_port);
3260 const char *
const remote_ip_address);
3275 const char *
const remote_port);
3291 const char *
const compressed_sip);
3306 const char *
const summary_sip);
3334 const EVEL_ENTITY_STATE old_state,
3335 const char *
const interface);
3361 const char *
const type);
3379 const char *
const name,
3380 const char *
const value);
3407 const char *
const syslog_msg,
3408 const char *
const syslog_tag);
3423 const char *
const type);
3467 const char *
const host);
3482 EVEL_SYSLOG_FACILITIES facility);
3576 const char *
const type);
3621 #define EVEL_DEBUG(FMT, ...) log_debug(EVEL_LOG_DEBUG, (FMT), ##__VA_ARGS__) 3622 #define EVEL_INFO(FMT, ...) log_debug(EVEL_LOG_INFO, (FMT), ##__VA_ARGS__) 3623 #define EVEL_SPAMMY(FMT, ...) log_debug(EVEL_LOG_SPAMMY, (FMT), ##__VA_ARGS__) 3624 #define EVEL_ERROR(FMT, ...) log_debug(EVEL_LOG_ERROR, "ERROR: " FMT, \ 3626 #define EVEL_ENTER() \ 3628 log_debug(EVEL_LOG_DEBUG, "Enter %s {", __FUNCTION__); \ 3629 debug_indent += 2; \ 3631 #define EVEL_EXIT() \ 3633 debug_indent -= 2; \ 3634 log_debug(EVEL_LOG_DEBUG, "Exit %s }", __FUNCTION__); \ 3637 #define INDENT_SEPARATORS \ 3638 "| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | " 3644 #define EVEL_DEBUG_ON() ((debug_level) >= EVEL_LOG_DEBUG) void evel_vnic_use_mcast_pkt_in_set(MEASUREMENT_VNIC_USE *const vnic_use, const int multicast_packets_in)
Set the Multicast Packets Received property of the vNIC Use.
struct fault_additional_info FAULT_ADDL_INFO
Fault Additional Info.
void evel_mobile_flow_gtp_prot_ver_set(EVENT_MOBILE_FLOW *mobile_flow, const char *const version)
Set the GTP Protocol Version property of the Mobile Flow.
EVEL_EVENT_DOMAINS
Event domains for the various events we support.
EVEL_OPTION_INT large_packet_rtt
#define EVEL_TOS_SUPPORTED
EVEL_SOURCE_TYPES event_source_type
void evel_mobile_flow_sac_set(EVENT_MOBILE_FLOW *mobile_flow, const char *const sac)
Set the SAC property of the Mobile Flow.
time_t flow_deactivation_time
EVEL_OPTION_STRING adjacency_name
struct evel_option_string EVEL_OPTION_STRING
Optional parameter holder for string.
void evel_syslog_proc_id_set(EVENT_SYSLOG *syslog, int proc_id)
Set the Process ID property of the Syslog.
int avg_receive_throughput
void evel_free_state_change(EVENT_STATE_CHANGE *const state_change)
Free a State Change.
struct state_change_additional_field STATE_CHANGE_ADDL_FIELD
State Change Additional Field.
void log_initialize(EVEL_LOG_LEVELS level, const char *ident)
Initialize logging.
void evel_mobile_gtp_metrics_iptos_set(MOBILE_GTP_PER_FLOW_METRICS *metrics, int index, int count)
Set an IP Type-of-Service count property of the Mobile GTP Per Flow metrics.
void evel_free_signaling(EVENT_SIGNALING *const event)
Free a Signaling event.
EVEL_OPTION_STRING tunnel_id
void evel_mobile_flow_mnc_set(EVENT_MOBILE_FLOW *mobile_flow, const char *const mnc)
Set the MNC property of the Mobile Flow.
int num_l7_bytes_received
Failed to find the specified JSON key.
The operation was successful.
EVEL_BOOLEAN
Boolean type for EVEL library.
EVEL_OPTION_INT request_rate
void evel_mobile_flow_cid_set(EVENT_MOBILE_FLOW *mobile_flow, const char *const cid)
Set the CID property of the Mobile Flow.
EVEL_LOG_LEVELS
Logging levels.
void evel_mobile_gtp_metrics_tun_status_set(MOBILE_GTP_PER_FLOW_METRICS *metrics, const char *const status)
Set the GTP Tunnel Status property of the Mobile GTP Per Flow metrics.
int flow_deactivation_microsec
void evel_service_product_id_set(EVENT_SERVICE *const event, const char *const product_id)
Set the Product Id property of the Service event.
void evel_mobile_flow_type_set(EVENT_MOBILE_FLOW *mobile_flow, const char *const type)
Set the Event Type property of the Mobile Flow.
Event Instance Identifier JSON equivalent field: eventInstanceIdentifier.
EVEL_OPTION_INT multicast_packets_in
int flow_deactivation_epoch
EVEL_OPTION_STRING syslog_s_data
OpenStack metadata invalid format.
struct event_signaling EVENT_SIGNALING
Signaling.
EVEL_SOURCE_TYPES event_source_type
The type of equipment represented by this VNF.
EVEL_OPTION_INT configured_entities
int num_activation_failures
void evel_service_packet_loss_percent_set(EVENT_SERVICE *const event, const double packet_loss_percent)
Set the packet Loss Percent property of the Service event.
EVEL_OPTION_DOUBLE mean_request_latency
void evel_measurement_request_rate_set(EVENT_MEASUREMENT *measurement, int request_rate)
Set the Request Rate property of the Measurement.
void evel_syslog_version_set(EVENT_SYSLOG *syslog, int version)
Set the Version property of the Syslog.
Optional parameter holder for unsigned long long.
EVEL_OPTION_INT local_rtp_oct_recv
EVEL_OPTION_INT syslog_ver
int num_out_of_order_packets
void evel_signaling_summary_sip_set(EVENT_SIGNALING *const event, const char *const summary_sip)
Set the Summary SIP property of the Signaling event.
Optional parameter holder for double.
int num_packets_transmitted_incl_retrans
Optional parameter holder for string.
const char * evel_error_string(void)
Descriptive text for library errors.
int max_packet_delay_variation
EVEL_OPTION_TIME flow_activation_time
void evel_reporting_entity_name_set(EVENT_HEADER *const header, const char *const entity_name)
Set the Reporting Entity Name property of the event header.
void evel_mobile_gtp_metrics_dur_con_fail_set(MOBILE_GTP_PER_FLOW_METRICS *metrics, int duration)
Set the Duration of Connection Failed Status property of the Mobile GTP Per Flow Metrics.
void evel_free_syslog(EVENT_SYSLOG *event)
Free a Syslog.
int flow_activation_microsec
void evel_service_codec_set(EVENT_SERVICE *const event, const char *const codec)
Set the Codec property of the Service event.
EVEL_OPTION_STRING callee_side_codec
void evel_fault_addl_info_add(EVENT_FAULT *fault, char *name, char *value)
Add an additional value name/value pair to the Fault.
void evel_free_measurement(EVENT_MEASUREMENT *event)
Free a Measurement.
EVENT_FAULT * evel_new_fault(const char *const condition, const char *const specific_problem, EVEL_EVENT_PRIORITIES priority, EVEL_SEVERITIES severity)
Create a new fault event.
int num_packets_received_excl_retrans
EVEL_OPTION_INT endpoint_rtp_oct_sent
void evel_mobile_gtp_metrics_con_status_set(MOBILE_GTP_PER_FLOW_METRICS *metrics, const char *const status)
Set the GTP Connection Status property of the Mobile GTP Per Flow metrics.
struct measurement_vnic_use MEASUREMENT_VNIC_USE
Virtual NIC usage.
EVENT_OTHER * evel_new_other(void)
Create a new other event.
void evel_other_type_set(EVENT_OTHER *other, const char *const type)
Set the Event Type property of the Other.
void evel_free_report(EVENT_REPORT *event)
Free a Report.
void evel_mobile_flow_samp_alg_set(EVENT_MOBILE_FLOW *mobile_flow, int algorithm)
Set the Sampling Algorithm property of the Mobile Flow.
EVEL_OPTION_INT concurrent_sessions
EVEL_OPTION_DOUBLE high_end
struct evel_option_int EVEL_OPTION_INT
Optional parameter holder for int.
EVEL_OPTION_STRING summary_sip
void evel_signaling_friendly_name_set(EVENT_SIGNALING *const event, const char *const friendly_name)
Set the Friendly Name property of the Signaling event.
void evel_mobile_flow_radio_acc_tech_set(EVENT_MOBILE_FLOW *mobile_flow, const char *const tech)
Set the Radio Access Technology property of the Mobile Flow.
size_t evel_write_callback(void *contents, size_t size, size_t nmemb, void *userp)
Callback function to provide returned data.
EVENT_SIGNALING * evel_new_signaling(const char *const vendor_id, const char *const event_id)
Create a new Signaling event.
double measurement_interval
EVEL_OPTION_STRING correlator
double avg_packet_delay_variation
EVEL_OPTION_INT endpoint_rtp_oct_disc
void evel_vnic_use_bcast_pkt_out_set(MEASUREMENT_VNIC_USE *const vnic_use, const int broadcast_packets_out)
Set the Broadcast Packets Transmitted property of the vNIC Use.
void evel_measurement_conc_sess_set(EVENT_MEASUREMENT *measurement, int concurrent_sessions)
Set the Concurrent Sessions property of the Measurement.
EVEL_ERR_CODES evel_terminate(void)
Clean up the EVEL library.
void evel_service_callee_codec_set(EVENT_SERVICE *const event, const char *const codec)
Set the Callee Side Codec property of the Service event.
void evel_vnic_use_mcast_pkt_out_set(MEASUREMENT_VNIC_USE *const vnic_use, const int multicast_packets_out)
Set the Multicast Packets Transmitted property of the vNIC Use.
struct event_state_change EVENT_STATE_CHANGE
State Change.
void evel_other_field_add(EVENT_OTHER *other, char *name, char *value)
Add a value name/value pair to the Other.
void evel_measurement_feature_use_add(EVENT_MEASUREMENT *measurement, char *feature, int utilization)
Add a Feature usage value name/value pair to the Measurement.
EVEL_OPTION_STRING connection_type
void evel_free_measurement_vnic_use(MEASUREMENT_VNIC_USE *const vnic_use)
Free a vNIC Use.
void evel_mobile_flow_msisdn_set(EVENT_MOBILE_FLOW *mobile_flow, const char *const msisdn)
Set the MSISDN property of the Mobile Flow.
EVEL_OPTION_INT unicast_packets_in
void evel_free_mobile_flow(EVENT_MOBILE_FLOW *event)
Free a Mobile Flow.
void evel_service_local_rtp_oct_sent_set(EVENT_SERVICE *const event, const int rtp_oct_sent)
Set the Local Rtp Octets Sent property of the Service event.
EVEL_OPTION_STRING app_protocol_type
EVEL_OPTION_STRING radio_access_technology
EVENT_HEADER * evel_new_heartbeat(void)
Create a new heartbeat event.
void evel_meas_latency_bucket_add(EVENT_MEASUREMENT *const measurement, MEASUREMENT_LATENCY_BUCKET *const bucket)
Add an additional Measurement Latency Bucket to the specified event.
EVEL_OPTION_STRING endpoint_description
A memory allocation failure occurred.
A simple double-linked list.
void evel_signaling_local_port_set(EVENT_SIGNALING *const event, const char *const local_port)
Set the Local Port property of the Signaling event.
void evel_meas_vnic_use_add(EVENT_MEASUREMENT *const measurement, MEASUREMENT_VNIC_USE *const vnic_use)
Add an additional vNIC Use to the specified Measurement event.
void evel_free_fault(EVENT_FAULT *event)
Free a Fault.
EVEL_OPTION_DOUBLE aggregate_cpu_usage
int reporting_endpoint_port
EVEL_EVENT_INSTANCE_ID instance_id
void evel_measurement_cfg_ents_set(EVENT_MEASUREMENT *measurement, int configured_entities)
Set the Configured Entities property of the Measurement.
void evel_signaling_type_set(EVENT_SIGNALING *const event, const char *const type)
Set the Event Type property of the Signaling event.
EVEL_OPTION_STRING rtcp_data
EVEL_OPTION_INT syslog_facility
void evel_measurement_cpu_use_add(EVENT_MEASUREMENT *measurement, char *id, double usage)
Add an additional CPU usage value name/value pair to the Measurement.
EVENT_SERVICE * evel_new_service(const char *const vendor_id, const char *const event_id)
Create a new Service event.
struct event_fault EVENT_FAULT
Fault.
void evel_measurement_codec_use_add(EVENT_MEASUREMENT *measurement, char *codec, int utilization)
Add a Codec usage value name/value pair to the Measurement.
struct measurement_latency_bucket MEASUREMENT_LATENCY_BUCKET
Latency Bucket.
EVEL_OPTION_DOUBLE large_packet_threshold
EVEL_OPTION_INT endpoint_rtp_pkt_disc
void evel_measurement_type_set(EVENT_MEASUREMENT *measurement, const char *const type)
Set the Event Type property of the Measurement.
EVEL_OPTION_STRING http_header
A Measurement for VF Reporting event.
EVEL_OPTION_INT max_receive_bit_rate
EVEL_OPTION_INT local_jitter
int num_tunneled_l7_bytes_received
void evel_measurement_mean_req_lat_set(EVENT_MEASUREMENT *measurement, double mean_request_latency)
Set the Mean Request Latency property of the Measurement.
A Posix threads operation failed.
void evel_service_local_rtp_oct_recv_set(EVENT_SERVICE *const event, const int rtp_oct_recv)
Set the Local Rtp Octets Received property of the Service event.
void evel_fault_type_set(EVENT_FAULT *fault, const char *const type)
Set the Event Type property of the Fault.
EVEL_OPTION_STRING syslog_proc
EVEL_OPTION_STRING caller_side_codec
MOBILE_GTP_PER_FLOW_METRICS * gtp_per_flow_metrics
struct measurement_fsys_use MEASUREMENT_FSYS_USE
Filesystem Usage.
void evel_measurement_vnic_use_add(EVENT_MEASUREMENT *const measurement, char *const vnic_id, const int packets_in, const int packets_out, const int broadcast_packets_in, const int broadcast_packets_out, const int bytes_in, const int bytes_out, const int multicast_packets_in, const int multicast_packets_out, const int unicast_packets_in, const int unicast_packets_out)
Add an additional vNIC usage record Measurement.
EVEL_ERR_CODES evel_post_event(EVENT_HEADER *event)
Post an event.
void evel_mobile_flow_tac_set(EVENT_MOBILE_FLOW *mobile_flow, const char *const tac)
Set the TAC property of the Mobile Flow.
void evel_service_local_rtp_oct_disc_set(EVENT_SERVICE *const event, const int rtp_oct_disc)
Set the Local Rtp Octets Discarded property of the Service event.
void evel_mobile_flow_rac_set(EVENT_MOBILE_FLOW *mobile_flow, const char *const rac)
Set the RAC property of the Mobile Flow.
struct measurement_errors MEASUREMENT_ERRORS
Errors.
void evel_service_endpoint_rtp_oct_sent_set(EVENT_SERVICE *const event, const int rtp_oct_sent)
Set the Endpoint Rtp Octets Sent property of the Service event.
EVEL_OPTION_STRING local_ip_address
void evel_report_feature_use_add(EVENT_REPORT *report, char *feature, int utilization)
Add a Feature usage value name/value pair to the Report.
EVEL_OPTION_INT unicast_packets_out
EVEL_OPTION_STRING remote_ip_address
double avg_bit_error_rate
struct measurement_feature_use MEASUREMENT_FEATURE_USE
Feature Usage.
void evel_service_endpoint_rtp_pkt_sent_set(EVENT_SERVICE *const event, const int rtp_pkt_sent)
Set the Endpoint Rtp Packets Sent property of the Service event.
void evel_signaling_remote_port_set(EVENT_SIGNALING *const event, const char *const remote_port)
Set the Remote Port property of the Signaling event.
void evel_service_subsystem_id_set(EVENT_SERVICE *const event, const char *const subsystem_id)
Set the Subsystem Id property of the Service event.
void evel_syslog_proc_set(EVENT_SYSLOG *syslog, const char *const proc)
Set the Process property of the Syslog.
void evel_service_addl_field_add(EVENT_SERVICE *const event, const char *const name, const char *const value)
Add a name/value pair to the Service, under the additionalFields array.
int evel_json_encode_event(char *json, int max_size, EVENT_HEADER *event)
Encode the event as a JSON event object according to AT&T's schema.
void evel_vnic_use_bcast_pkt_in_set(MEASUREMENT_VNIC_USE *const vnic_use, const int broadcast_packets_in)
Set the Broadcast Packets Received property of the vNIC Use.
EVEL_OPTION_INT multicast_packets_out
void evel_signaling_correlator_set(EVENT_SIGNALING *const event, const char *const correlator)
Set the Correlator property of the Signaling event.
EVENT_SYSLOG * evel_new_syslog(EVEL_SOURCE_TYPES event_source_type, const char *const syslog_msg, const char *const syslog_tag)
Create a new syslog event.
void evel_state_change_addl_field_add(EVENT_STATE_CHANGE *const state_change, const char *const name, const char *const value)
Add an additional field name/value pair to the State Change.
EVEL_OPTION_INT round_trip_delay
void evel_syslog_s_data_set(EVENT_SYSLOG *syslog, const char *const s_data)
Set the Structured Data property of the Syslog.
struct mobile_gtp_per_flow_metrics MOBILE_GTP_PER_FLOW_METRICS
Mobile GTP Per Flow Metrics.
EVEL_EVENT_INSTANCE_ID instance_id
EVEL_ERR_CODES evel_initialize(const char *const fqdn, int port, const char *const path, const char *const topic, int secure, const char *const username, const char *const password, EVEL_SOURCE_TYPES source_type, const char *const role, int verbosity)
Library initialization.
double measurement_interval
void evel_mobile_flow_app_type_set(EVENT_MOBILE_FLOW *mobile_flow, const char *const type)
Set the Application Type property of the Mobile Flow.
EVEL_OPTION_DOUBLE vnfc_scaling_metric
void evel_report_type_set(EVENT_REPORT *report, const char *const type)
Set the Event Type property of the Report.
EVENT_MOBILE_FLOW * evel_new_mobile_flow(const char *const flow_direction, MOBILE_GTP_PER_FLOW_METRICS *gtp_per_flow_metrics, const char *const ip_protocol_type, const char *const ip_version, const char *const other_endpoint_ip_address, int other_endpoint_port, const char *const reporting_endpoint_ip_addr, int reporting_endpoint_port)
Create a new Mobile Flow event.
struct event_mobile_flow EVENT_MOBILE_FLOW
Mobile Flow.
void evel_meas_latency_bucket_low_end_set(MEASUREMENT_LATENCY_BUCKET *const bucket, const double low_end)
Set the Low End property of the Measurement Latency Bucket.
void evel_reporting_entity_id_set(EVENT_HEADER *const header, const char *const entity_id)
Set the Reporting Entity Id property of the event header.
EVEL_OPTION_INT endpoint_rtp_pkt_sent
EVEL_OPTION_STRING local_port
void evel_syslog_facility_set(EVENT_SYSLOG *syslog, EVEL_SYSLOG_FACILITIES facility)
Set the Syslog Facility property of the Syslog.
EVEL_ENTITY_STATE old_state
EVEL_OPTION_INT local_rtp_pkt_recv
struct syslog_additional_field SYSLOG_ADDL_FIELD
Syslog Additional Field.
EVEL_OPTION_INT sampling_algorithm
DLIST additional_measurements
Too many events in the ring-buffer.
void evel_measurement_media_port_use_set(EVENT_MEASUREMENT *measurement, int media_ports_in_use)
Set the Media Ports in Use property of the Measurement.
EVEL_OPTION_STRING remote_port
void evel_free_service(EVENT_SERVICE *const event)
Free a Service Events event.
A cURL library operation failed.
EVEL_OPTION_INT endpoint_rtp_pkt_recv
void evel_service_r_factor_set(EVENT_SERVICE *const event, const int r_factor)
Set the R Factor property of the Service event.
struct event_report EVENT_REPORT
Report.
EVEL_OPTION_STRING vlan_id
void evel_measurement_fsys_use_add(EVENT_MEASUREMENT *measurement, char *filesystem_name, double block_configured, double block_used, int block_iops, double ephemeral_configured, double ephemeral_used, int ephemeral_iops)
Add an additional File System usage value name/value pair to the Measurement.
EVEL_OPTION_STRING gtp_connection_status
struct measurement_cpu_use MEASUREMENT_CPU_USE
CPU Usage.
EVEL_OPTION_STRING gtp_protocol_type
char * reporting_endpoint_ip_addr
void evel_mobile_flow_con_type_set(EVENT_MOBILE_FLOW *mobile_flow, const char *const type)
Set the Connection Type property of the Mobile Flow.
void evel_mobile_flow_vlan_id_set(EVENT_MOBILE_FLOW *mobile_flow, const char *const vlan_id)
Set the VLAN ID property of the Mobile Flow.
Optional parameter holder for int.
void evel_signaling_local_ip_address_set(EVENT_SIGNALING *const event, const char *const local_ip_address)
Set the Local Ip Address property of the Signaling event.
EVEL_OPTION_STRING phone_number
DLIST latency_distribution
EVEL_LOG_LEVELS debug_level
EVEL_SOURCE_TYPES
Fault source types.
struct evel_option_time EVEL_OPTION_TIME
Optional parameter holder for time_t.
void evel_report_custom_measurement_add(EVENT_REPORT *report, const char *const group, const char *const name, const char *const value)
Add a Additional Measurement value name/value pair to the Report.
EVEL_ALERT_TYPES
Alert types.
char * useAndRedistribution
struct evel_option_double EVEL_OPTION_DOUBLE
Optional parameter holder for double.
void evel_free_event(void *event)
Free an event.
EVEL_OPTION_DOUBLE memory_used
EVEL_OPTION_DOUBLE memory_configured
void evel_service_packets_lost_set(EVENT_SERVICE *const event, const int packets_lost)
Set the Packets Lost property of the Service event.
void evel_measurement_errors_set(EVENT_MEASUREMENT *measurement, int receive_discards, int receive_errors, int transmit_discards, int transmit_errors)
Add an additional set of Errors to the Measurement.
void evel_signaling_subsystem_id_set(EVENT_SIGNALING *const event, const char *const subsystem_id)
Set the Subsystem Id property of the Signaling event.
struct measurement_codec_use MEASUREMENT_CODEC_USE
Codec Usage.
EVEL_OPTION_INT max_transmit_bit_rate
int flow_activation_epoch
EVEL_OPTION_STRING gtp_version
EVEL_OPTION_STRING application_type
EVEL_OPTION_INT endpoint_rtp_oct_recv
EVEL_OPTION_STRING other_functional_role
void evel_vnic_use_ucast_pkt_out_set(MEASUREMENT_VNIC_USE *const vnic_use, const int unicast_packets_out)
Set the Unicast Packets Transmitted property of the vNIC Use.
struct measurement_group MEASUREMENT_GROUP
Measurement Group.
EVEL_ERR_CODES
Error codes.
void evel_vnic_use_ucast_pkt_in_set(MEASUREMENT_VNIC_USE *const vnic_use, const int unicast_packets_in)
Set the Unicast Packets Received property of the vNIC Use.
void evel_service_local_rtp_pkt_recv_set(EVENT_SERVICE *const event, const int rtp_pkt_recv)
Set the Local Rtp Packets Received property of the Service event.
struct event_header EVENT_HEADER
Event header.
void evel_service_adjacency_name_set(EVENT_SERVICE *const event, const char *const adjacency_name)
Set the Adjacency Name property of the Service event.
double ephemeral_configured
struct evel_option_ull EVEL_OPTION_ULL
Optional parameter holder for unsigned long long.
EVEL_SYSLOG_FACILITIES
Syslog facilities.
EVEL_OPTION_INT local_rtp_pkt_sent
void evel_mobile_gtp_metrics_large_pkt_thresh_set(MOBILE_GTP_PER_FLOW_METRICS *metrics, double threshold)
Set the Large Packet Threshold property of the Mobile GTP Per Flow Metrics.
EVEL_OPTION_DOUBLE mos_cqe
void evel_measurement_latency_add(EVENT_MEASUREMENT *const measurement, const double low_end, const double high_end, const int count)
Add an additional Latency Distribution bucket to the Measurement.
EVEL_OPTION_INT packets_lost
void evel_measurement_custom_measurement_add(EVENT_MEASUREMENT *measurement, const char *const group, const char *const name, const char *const value)
Add a Additional Measurement value name/value pair to the Measurement.
void evel_mobile_flow_imsi_set(EVENT_MOBILE_FLOW *mobile_flow, const char *const imsi)
Set the IMSI property of the Mobile Flow.
EVEL_OPTION_STRING event_friendly_name
void evel_start_epoch_set(EVENT_HEADER *const header, const unsigned long long start_epoch_microsec)
Set the Start Epoch property of the event header.
void evel_mobile_flow_http_header_set(EVENT_MOBILE_FLOW *mobile_flow, const char *const header)
Set the HTTP Header property of the Mobile Flow.
EVEL_OPTION_STRING product_id
EVEL_OPTION_INT syslog_proc_id
struct evel_event_instance_id EVEL_EVENT_INSTANCE_ID
Event Instance Identifier JSON equivalent field: eventInstanceIdentifier.
EVENT_MEASUREMENT * evel_new_measurement(double measurement_interval)
Create a new Measurement event.
EVEL_VF_STATUSES
Fault VNF Status.
EVEL_OPTION_INT dur_connection_failed_status
EVEL_SEVERITIES
Fault / Threshold severities.
void evel_mobile_gtp_metrics_num_http_errors_set(MOBILE_GTP_PER_FLOW_METRICS *metrics, int num)
Set the Number of HTTP Errors property of the Mobile GTP Per Flow Metrics.
EVEL_OPTION_STRING subsystem_id
EVEL_OPTION_DOUBLE packet_loss_percent
void evel_free_header(EVENT_HEADER *const event)
Free an event header.
EVEL_OPTION_INT broadcast_packets_out
void evel_mobile_gtp_metrics_deact_by_set(MOBILE_GTP_PER_FLOW_METRICS *metrics, const char *const deact_by)
Set the Deactivated By property of the Mobile GTP Per Flow metrics.
int evel_get_measurement_interval()
Return the current measurement interval provided by the Event Listener.
void evel_meas_latency_bucket_high_end_set(MEASUREMENT_LATENCY_BUCKET *const bucket, const double high_end)
Set the High End property of the Measurement Latency Bucket.
void evel_service_endpoint_rtp_pkt_recv_set(EVENT_SERVICE *const event, const int rtp_pkt_recv)
Set the Endpoint Rtp Packets Received property of the Service event.
void evel_mobile_gtp_metrics_num_tun_fail_set(MOBILE_GTP_PER_FLOW_METRICS *metrics, int num)
Set the Number of GTP Tunnel Errors property of the Mobile GTP Per Flow Metrics.
void evel_mobile_flow_tunnel_id_set(EVENT_MOBILE_FLOW *mobile_flow, const char *const tunnel_id)
Set the Tunnel ID property of the Mobile Flow.
MOBILE_GTP_PER_FLOW_METRICS * evel_new_mobile_gtp_flow_metrics(double avg_bit_error_rate, double avg_packet_delay_variation, int avg_packet_latency, int avg_receive_throughput, int avg_transmit_throughput, int flow_activation_epoch, int flow_activation_microsec, int flow_deactivation_epoch, int flow_deactivation_microsec, time_t flow_deactivation_time, const char *const flow_status, int max_packet_delay_variation, int num_activation_failures, int num_bit_errors, int num_bytes_received, int num_bytes_transmitted, int num_dropped_packets, int num_l7_bytes_received, int num_l7_bytes_transmitted, int num_lost_packets, int num_out_of_order_packets, int num_packet_errors, int num_packets_received_excl_retrans, int num_packets_received_incl_retrans, int num_packets_transmitted_incl_retrans, int num_retries, int num_timeouts, int num_tunneled_l7_bytes_received, int round_trip_time, int time_to_first_byte)
Create a new Mobile GTP Per Flow Metrics.
int num_l7_bytes_transmitted
A Heartbeat event (event header only).
void evel_state_change_type_set(EVENT_STATE_CHANGE *const state_change, const char *const type)
Set the Event Type property of the State Change.
void log_error_state(char *format,...)
void evel_mobile_gtp_metrics_tcp_flag_count_add(MOBILE_GTP_PER_FLOW_METRICS *metrics, const EVEL_TCP_FLAGS tcp_flag, const int count)
Add a TCP flag count to the metrics.
int num_packets_received_incl_retrans
EVEL_OPTION_INT endpoint_jitter
void evel_service_correlator_set(EVENT_SERVICE *const event, const char *const correlator)
Set the correlator property of the Service event.
void evel_service_mos_cqe_set(EVENT_SERVICE *const event, const double mos_cqe)
Set the Mos Cqe property of the Service event.
MEASUREMENT_ERRORS * errors
struct event_measurement EVENT_MEASUREMENT
Measurement.
void evel_service_endpoint_rtp_oct_recv_set(EVENT_SERVICE *const event, const int rtp_oct_recv)
Set the Endpoint Rtp Octets Received property of the Service event.
EVEL_SERVICE_ENDPOINT_DESC
Service Event endpoint description JSON equivalent field: endpointDesc.
EVEL_OPTION_INT num_gtp_tunnel_errors
EVEL_OPTION_STRING flow_deactivated_by
void evel_service_round_trip_delay_set(EVENT_SERVICE *const event, const int round_trip_delay)
Set the Round Trip Delay property of the Service event.
struct other_field OTHER_FIELD
Other Field.
void evel_mobile_flow_lac_set(EVENT_MOBILE_FLOW *mobile_flow, const char *const lac)
Set the LAC property of the Mobile Flow.
void evel_service_endpoint_desc_set(EVENT_SERVICE *const event, const EVEL_SERVICE_ENDPOINT_DESC endpoint_desc)
Set the Endpoint Descriptor property of the Service event.
MEASUREMENT_LATENCY_BUCKET * evel_new_meas_latency_bucket(const int count)
Create a new Latency Bucket to be added to a Measurement event.
void evel_free_other(EVENT_OTHER *event)
Free an Other.
void evel_syslog_addl_field_add(EVENT_SYSLOG *syslog, char *name, char *value)
Add an additional field name/value pair to the Syslog.
EVENT_STATE_CHANGE * evel_new_state_change(const EVEL_ENTITY_STATE new_state, const EVEL_ENTITY_STATE old_state, const char *const interface)
Create a new State Change event.
EVEL_OPTION_INT local_rtp_oct_disc
struct copyright COPYRIGHT
Copyright.
A Measurement for VF Scaling event.
EVEL_QCI_COS_TYPES
Mobile QCI Classes of Service.
Mobile GTP Per Flow Metrics.
MEASUREMENT_VNIC_USE * evel_new_measurement_vnic_use(char *const vnic_id, const int packets_in, const int packets_out, const int bytes_in, const int bytes_out)
Create a new vNIC Use to be added to a Measurement event.
void evel_syslog_type_set(EVENT_SYSLOG *syslog, const char *const type)
Set the Event Type property of the Syslog.
void evel_mobile_gtp_metrics_max_trx_bit_rate_set(MOBILE_GTP_PER_FLOW_METRICS *metrics, int rate)
Set the Max Transmit Bit Rate property of the Mobile GTP Per Flow Metrics.
void evel_measurement_mem_cfg_set(EVENT_MEASUREMENT *measurement, double memory_configured)
Set the Memory Configured property of the Measurement.
State Change Additional Field.
EVENT_REPORT * evel_new_report(double measurement_interval)
Create a new Report event.
void evel_syslog_event_source_host_set(EVENT_SYSLOG *syslog, const char *const host)
Set the Event Source Host property of the Syslog.
void evel_mobile_gtp_metrics_max_rcv_bit_rate_set(MOBILE_GTP_PER_FLOW_METRICS *metrics, int rate)
Set the Max Receive Bit Rate property of the Mobile GTP Per Flow Metrics.
Internal event, not for external routing.
EVEL_OPTION_STRING app_protocol_version
EVEL_OPTION_STRING gtp_tunnel_status
void evel_mobile_flow_gtp_prot_type_set(EVENT_MOBILE_FLOW *mobile_flow, const char *const type)
Set the GTP Protocol Type property of the Mobile Flow.
void evel_mobile_gtp_metrics_large_pkt_rtt_set(MOBILE_GTP_PER_FLOW_METRICS *metrics, int rtt)
Set the Large Packet Round-Trip Time property of the Mobile GTP Per Flow Metrics. ...
EVEL_OPTION_STRING compressed_sip
EVEL_OPTION_INT num_gtp_echo_failures
Failed to retrieve OpenStack metadata.
void evel_last_epoch_set(EVENT_HEADER *const header, const unsigned long long last_epoch_microsec)
Set the Last Epoch property of the event header.
EVEL_OPTION_INT broadcast_packets_in
void evel_service_phone_number_set(EVENT_SERVICE *const event, const char *const phone_number)
Set the Phone Number property of the Service event.
void evel_header_type_set(EVENT_HEADER *const header, const char *const type)
Set the Event Type property of the event header.
void evel_mobile_gtp_metrics_qci_cos_count_add(MOBILE_GTP_PER_FLOW_METRICS *metrics, const EVEL_QCI_COS_TYPES qci_cos, const int count)
Add a QCI COS count to the metrics.
void evel_measurement_mem_used_set(EVENT_MEASUREMENT *measurement, double memory_used)
Set the Memory Used property of the Measurement.
EVEL_ALERT_ACTIONS
Alert actions.
void evel_mobile_flow_imei_set(EVENT_MOBILE_FLOW *mobile_flow, const char *const imei)
Set the IMEI property of the Mobile Flow.
char * other_endpoint_ip_address
void evel_signaling_compressed_sip_set(EVENT_SIGNALING *const event, const char *const compressed_sip)
Set the Compressed SIP property of the Signaling event.
void evel_signaling_product_id_set(EVENT_SIGNALING *const event, const char *const product_id)
Set the Product Id property of the Signaling event.
EVEL_EVENT_PRIORITIES
Event priorities.
Double-linked list structure.
void evel_service_endpoint_rtp_pkt_disc_set(EVENT_SERVICE *const event, const int rtp_pkt_disc)
Set the Endpoint Rtp Packets Discarded property of the Service event.
void evel_service_endpoint_rtp_oct_disc_set(EVENT_SERVICE *const event, const int rtp_oct_disc)
Set the Endpoint Rtp Octets Discarded property of the Service event.
struct event_service EVENT_SERVICE
Service Events.
void evel_service_rtcp_data_set(EVENT_SERVICE *const event, const char *const rtcp_data)
Set the RTCP Data property of the Service event.
EVEL_OPTION_INT media_ports_in_use
EVEL_ENTITY_STATE new_state
void evel_mobile_flow_mcc_set(EVENT_MOBILE_FLOW *mobile_flow, const char *const mcc)
Set the MCC property of the Mobile Flow.
struct custom_measurement CUSTOM_MEASUREMENT
Custom Defined Measurement.
void evel_mobile_flow_app_prot_type_set(EVENT_MOBILE_FLOW *mobile_flow, const char *const type)
Set the Application Protocol Type property of the Mobile Flow.
void evel_service_friendly_name_set(EVENT_SERVICE *const event, const char *const friendly_name)
Set the Friendly Name property of the Service event.
void evel_init_header(EVENT_HEADER *const header)
Initialize a newly created event header.
void evel_mobile_flow_ecgi_set(EVENT_MOBILE_FLOW *mobile_flow, const char *const ecgi)
Set the ECGI property of the Mobile Flow.
void evel_measurement_agg_cpu_use_set(EVENT_MEASUREMENT *measurement, double cpu_use)
} Set the Aggregate CPU Use property of the Measurement.
void evel_measurement_vnfc_scaling_metric_set(EVENT_MEASUREMENT *measurement, double scaling_metric)
Set the VNFC Scaling Metric property of the Measurement.
void evel_service_local_rtp_pkt_sent_set(EVENT_SERVICE *const event, const int rtp_pkt_sent)
Set the Local Rtp Packets Sent property of the Service event.
EVEL_OPTION_STRING alarm_interface_a
int num_bytes_transmitted
void evel_service_type_set(EVENT_SERVICE *const event, const char *const type)
Set the Event Type property of the Service event.
void evel_service_caller_codec_set(EVENT_SERVICE *const event, const char *const codec)
Set the Caller Side Codec property of the Service event.
Optional parameter holder for time_t.
void evel_service_local_jitter_set(EVENT_SERVICE *const event, const int jitter)
Set the Local Jitter property of the Service event.
void evel_mobile_gtp_metrics_dur_tun_fail_set(MOBILE_GTP_PER_FLOW_METRICS *metrics, int duration)
Set the Duration of Tunnel Failed Status property of the Mobile GTP Per Flow Metrics.
int avg_transmit_throughput
EVEL_OPTION_STRING flow_activated_by
EVEL_SEVERITIES event_severity
struct event_other EVENT_OTHER
Other.
EVEL_ENTITY_STATE
Alert types.
void evel_service_local_rtp_pkt_disc_set(EVENT_SERVICE *const event, const int rtp_pkt_disc)
Set the Local Rtp Packets Discarded property of the Service event.
Attempt to raise event when inactive.
EVEL_OPTION_INT local_rtp_oct_sent
void evel_mobile_gtp_metrics_num_echo_fail_set(MOBILE_GTP_PER_FLOW_METRICS *metrics, int num)
Set the Number of GTP Echo Failures property of the Mobile GTP Per Flow Metrics.
void evel_fault_interface_set(EVENT_FAULT *fault, const char *const interface)
Set the Alarm Interface A property of the Fault.
EVEL_OPTION_INT num_http_errors
EVEL_OPTION_STRING event_source_host
void evel_signaling_remote_ip_address_set(EVENT_SIGNALING *const event, const char *const remote_ip_address)
Set the Remote Ip Address property of the Signaling event.
void evel_service_endpoint_jitter_set(EVENT_SERVICE *const event, const int jitter)
Set the Endpoint Jitter property of the Service event.
void log_debug(EVEL_LOG_LEVELS level, char *format,...)
Log debug information.
EVEL_SOURCE_TYPES event_source_type
Custom Defined Measurement.
JSON failed to parse correctly.
EVEL_OPTION_INT local_rtp_pkt_disc
EVEL_OPTION_STRING correlator
void evel_mobile_flow_app_prot_ver_set(EVENT_MOBILE_FLOW *mobile_flow, const char *const version)
Set the Application Protocol Version property of the Mobile Flow.
void evel_mobile_gtp_metrics_act_time_set(MOBILE_GTP_PER_FLOW_METRICS *metrics, time_t act_time)
Set the Activation Time property of the Mobile GTP Per Flow metrics.
void evel_free_mobile_gtp_flow_metrics(MOBILE_GTP_PER_FLOW_METRICS *metrics)
Free a Mobile GTP Per Flow Metrics.
EVEL_OPTION_STRING msisdn
EVEL_OPTION_INT dur_tunnel_failed_status
void evel_mobile_gtp_metrics_act_by_set(MOBILE_GTP_PER_FLOW_METRICS *metrics, const char *const act_by)
Set the Activated By property of the Mobile GTP Per Flow metrics.
struct event_syslog EVENT_SYSLOG
Syslog.
EVEL_OPTION_DOUBLE low_end
void evel_mobile_flow_other_func_role_set(EVENT_MOBILE_FLOW *mobile_flow, const char *const role)
Set the Other Functional Role property of the Mobile Flow.
EVEL_VF_STATUSES vf_status
EVEL_COUNTER_CRITICALITIES
Counter criticalities.