AT&T ECOMP Vendor Event Listener library
0.1
|
Implementation of EVEL functions relating to Service. More...
Go to the source code of this file.
Functions | |
EVENT_SERVICE * | evel_new_service (const char *const vendor_id, const char *const event_id) |
Create a new Service event. More... | |
void | evel_service_type_set (EVENT_SERVICE *const event, const char *const type) |
Set the Event Type property of the Service event. More... | |
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. More... | |
void | evel_service_product_id_set (EVENT_SERVICE *const event, const char *const product_id) |
Set the Product Id property of the Service event. More... | |
void | evel_service_subsystem_id_set (EVENT_SERVICE *const event, const char *const subsystem_id) |
Set the Subsystem Id property of the Service event. More... | |
void | evel_service_friendly_name_set (EVENT_SERVICE *const event, const char *const friendly_name) |
Set the Friendly Name property of the Service event. More... | |
void | evel_service_correlator_set (EVENT_SERVICE *const event, const char *const correlator) |
Set the Correlator property of the Service event. More... | |
void | evel_service_codec_set (EVENT_SERVICE *const event, const char *const codec) |
Set the Codec property of the Service event. More... | |
void | evel_service_callee_codec_set (EVENT_SERVICE *const event, const char *const codec) |
Set the Callee Side Codec property of the Service event. More... | |
void | evel_service_caller_codec_set (EVENT_SERVICE *const event, const char *const codec) |
Set the Caller Side Codec property of the Service event. More... | |
void | evel_service_rtcp_data_set (EVENT_SERVICE *const event, const char *const rtcp_data) |
Set the RTCP Data property of the Service event. More... | |
void | evel_service_adjacency_name_set (EVENT_SERVICE *const event, const char *const adjacency_name) |
Set the Adjacency Name property of the Service event. More... | |
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. More... | |
void | evel_service_endpoint_jitter_set (EVENT_SERVICE *const event, const int jitter) |
Set the Endpoint Jitter property of the Service event. More... | |
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. More... | |
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. More... | |
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. More... | |
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. More... | |
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. More... | |
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. More... | |
void | evel_service_local_jitter_set (EVENT_SERVICE *const event, const int jitter) |
Set the Local Jitter property of the Service event. More... | |
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. More... | |
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. More... | |
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. More... | |
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. More... | |
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. More... | |
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. More... | |
void | evel_service_mos_cqe_set (EVENT_SERVICE *const event, const double mos_cqe) |
Set the Mos Cqe property of the Service event. More... | |
void | evel_service_packets_lost_set (EVENT_SERVICE *const event, const int packets_lost) |
Set the Packets Lost property of the Service event. More... | |
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. More... | |
void | evel_service_r_factor_set (EVENT_SERVICE *const event, const int r_factor) |
Set the R Factor property of the Service event. More... | |
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. More... | |
void | evel_service_phone_number_set (EVENT_SERVICE *const event, const char *const phone_number) |
Set the Phone Number property of the Service event. More... | |
void | evel_json_encode_service (EVEL_JSON_BUFFER *const jbuf, EVENT_SERVICE *const event) |
Encode the Service in JSON according to AT&T's schema for the event type. More... | |
void | evel_free_service (EVENT_SERVICE *const event) |
Free a Service event. More... | |
Implementation of EVEL functions relating to Service.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY AT&T INTELLECTUAL PROPERTY ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL AT&T INTELLECTUAL PROPERTY BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Definition in file evel_service.c.
void evel_free_service | ( | EVENT_SERVICE *const | event | ) |
Free a Service event.
Free a Service Events event.
Free off the event supplied. Will free all the contained allocated memory.
Definition at line 1277 of file evel_service.c.
void evel_json_encode_service | ( | EVEL_JSON_BUFFER *const | jbuf, |
EVENT_SERVICE *const | event | ||
) |
Encode the Service in JSON according to AT&T's schema for the event type.
Encode the Service Event in JSON according to AT&T's schema for the event type.
jbuf | Pointer to the EVEL_JSON_BUFFER to encode into. |
event | Pointer to the EVENT_HEADER to encode. |
Definition at line 1030 of file evel_service.c.
EVENT_SERVICE* evel_new_service | ( | const char *const | vendor_id, |
const char *const | event_id | ||
) |
Create a new Service event.
vendor_id | The vendor id to encode in the event instance id. |
event_id | The vendor event id to encode in the event instance id. |
NULL | Failed to create the event. |
Definition at line 55 of file evel_service.c.
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.
The name and value are null delimited ASCII strings. The library takes a copy so the caller does not have to preserve values after the function returns.
event | Pointer to the Service event. |
name | ASCIIZ string with the field's name. The caller does not need to preserve the value once the function returns. |
value | ASCIIZ string with the field's value. The caller does not need to preserve the value once the function returns. |
Definition at line 163 of file evel_service.c.
void evel_service_adjacency_name_set | ( | EVENT_SERVICE *const | event, |
const char *const | adjacency_name | ||
) |
Set the Adjacency Name property of the Service event.
event | Pointer to the Service event. |
adjacency_name | The adjacency name to be set. ASCIIZ string. The caller does not need to preserve the value once the function returns. |
Definition at line 434 of file evel_service.c.
void evel_service_callee_codec_set | ( | EVENT_SERVICE *const | event, |
const char *const | codec | ||
) |
Set the Callee Side Codec property of the Service event.
event | Pointer to the Service event. |
codec | The codec to be set. ASCIIZ string. The caller does not need to preserve the value once the function returns. |
Definition at line 347 of file evel_service.c.
void evel_service_caller_codec_set | ( | EVENT_SERVICE *const | event, |
const char *const | codec | ||
) |
Set the Caller Side Codec property of the Service event.
event | Pointer to the Service event. |
codec | The codec to be set. ASCIIZ string. The caller does not need to preserve the value once the function returns. |
Definition at line 375 of file evel_service.c.
void evel_service_codec_set | ( | EVENT_SERVICE *const | event, |
const char *const | codec | ||
) |
Set the Codec property of the Service event.
event | Pointer to the Service event. |
codec | The codec to be set. ASCIIZ string. The caller does not need to preserve the value once the function returns. |
Definition at line 319 of file evel_service.c.
void evel_service_correlator_set | ( | EVENT_SERVICE *const | event, |
const char *const | correlator | ||
) |
Set the Correlator property of the Service event.
Set the correlator property of the Service event.
event | Pointer to the Service event. |
correlator | The correlator to be set. ASCIIZ string. The caller does not need to preserve the value once the function returns. |
Definition at line 291 of file evel_service.c.
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.
event | Pointer to the Service event. |
endpoint_desc | The endpoint descriptor to be set. |
Definition at line 461 of file evel_service.c.
void evel_service_endpoint_jitter_set | ( | EVENT_SERVICE *const | event, |
const int | jitter | ||
) |
Set the Endpoint Jitter property of the Service event.
event | Pointer to the Service event. |
jitter | The jitter to be set. |
Definition at line 489 of file evel_service.c.
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.
event | Pointer to the Service event. |
rtp_oct_disc | The discard count. |
Definition at line 516 of file evel_service.c.
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.
event | Pointer to the Service event. |
rtp_oct_recv | The receive count. |
Definition at line 543 of file evel_service.c.
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.
event | Pointer to the Service event. |
rtp_oct_sent | The send count. |
Definition at line 570 of file evel_service.c.
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.
event | Pointer to the Service event. |
rtp_pkt_disc | The discard count. |
Definition at line 597 of file evel_service.c.
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.
event | Pointer to the Service event. |
rtp_pkt_recv | The receive count. |
Definition at line 624 of file evel_service.c.
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.
event | Pointer to the Service event. |
rtp_pkt_sent | The send count. |
Definition at line 651 of file evel_service.c.
void evel_service_friendly_name_set | ( | EVENT_SERVICE *const | event, |
const char *const | friendly_name | ||
) |
Set the Friendly Name property of the Service event.
event | Pointer to the Service event. |
friendly_name | The vendor friendly name to be set. ASCIIZ string. The caller does not need to preserve the value once the function returns. |
Definition at line 262 of file evel_service.c.
void evel_service_local_jitter_set | ( | EVENT_SERVICE *const | event, |
const int | jitter | ||
) |
Set the Local Jitter property of the Service event.
event | Pointer to the Service event. |
jitter | The jitter to be set. |
Definition at line 678 of file evel_service.c.
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.
event | Pointer to the Service event. |
rtp_oct_disc | The discard count. |
Definition at line 705 of file evel_service.c.
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.
event | Pointer to the Service event. |
rtp_oct_recv | The receive count. |
Definition at line 732 of file evel_service.c.
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.
event | Pointer to the Service event. |
rtp_oct_sent | The send count. |
Definition at line 759 of file evel_service.c.
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.
event | Pointer to the Service event. |
rtp_pkt_disc | The discard count. |
Definition at line 786 of file evel_service.c.
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.
event | Pointer to the Service event. |
rtp_pkt_recv | The receive count. |
Definition at line 813 of file evel_service.c.
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.
event | Pointer to the Service event. |
rtp_pkt_sent | The send count. |
Definition at line 840 of file evel_service.c.
void evel_service_mos_cqe_set | ( | EVENT_SERVICE *const | event, |
const double | mos_cqe | ||
) |
Set the Mos Cqe property of the Service event.
event | Pointer to the Service event. |
mos_cqe | The mosCqe to be set. |
Definition at line 867 of file evel_service.c.
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.
event | Pointer to the Service event. |
packet_loss_percent | The packet loss in percent. |
Definition at line 922 of file evel_service.c.
void evel_service_packets_lost_set | ( | EVENT_SERVICE *const | event, |
const int | packets_lost | ||
) |
Set the Packets Lost property of the Service event.
event | Pointer to the Service event. |
packets_lost | The number of packets lost to be set. |
Definition at line 894 of file evel_service.c.
void evel_service_phone_number_set | ( | EVENT_SERVICE *const | event, |
const char *const | phone_number | ||
) |
Set the Phone Number property of the Service event.
event | Pointer to the Service event. |
phone_number | The Phone Number to be set. ASCIIZ string. The caller does not need to preserve the value once the function returns. |
Definition at line 1006 of file evel_service.c.
void evel_service_product_id_set | ( | EVENT_SERVICE *const | event, |
const char *const | product_id | ||
) |
Set the Product Id property of the Service event.
event | Pointer to the Service event. |
product_id | The vendor product id to be set. ASCIIZ string. The caller does not need to preserve the value once the function returns. |
Definition at line 204 of file evel_service.c.
void evel_service_r_factor_set | ( | EVENT_SERVICE *const | event, |
const int | r_factor | ||
) |
Set the R Factor property of the Service event.
event | Pointer to the Service event. |
r_factor | The R Factor to be set. |
Definition at line 949 of file evel_service.c.
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.
event | Pointer to the Service event. |
round_trip_delay | The Round trip delay to be set. |
Definition at line 977 of file evel_service.c.
void evel_service_rtcp_data_set | ( | EVENT_SERVICE *const | event, |
const char *const | rtcp_data | ||
) |
Set the RTCP Data property of the Service event.
event | Pointer to the Service event. |
rtcp_data | The RTCP Data to be set. ASCIIZ string. The caller does not need to preserve the value once the function returns. |
Definition at line 404 of file evel_service.c.
void evel_service_subsystem_id_set | ( | EVENT_SERVICE *const | event, |
const char *const | subsystem_id | ||
) |
Set the Subsystem Id property of the Service event.
event | Pointer to the Service event. |
subsystem_id | The vendor subsystem id to be set. ASCIIZ string. The caller does not need to preserve the value once the function returns. |
Definition at line 233 of file evel_service.c.
void evel_service_type_set | ( | EVENT_SERVICE *const | event, |
const char *const | type | ||
) |
Set the Event Type property of the Service event.
event | Pointer to the Service event. |
type | The Event Type to be set. ASCIIZ string. The caller does not need to preserve the value once the function returns. |
Definition at line 135 of file evel_service.c.