[][src]Function newrelic_sys::newrelic_create_custom_event

pub unsafe extern "C" fn newrelic_create_custom_event(
    event_type: *const c_char
) -> *mut newrelic_custom_event_t

@brief Creates a custom event

Attributes can be added to the custom event using the newrelic_custom_event_add_* family of functions. When the required attributes have been added, the custom event can be recorded using newrelic_record_custom_event().

When passed to newrelic_record_custom_event, the custom event will be freed. If you can't pass an allocated event to newrelic_record_custom_event, use the newrelic_discard_custom_event function to free the event.

@param [in] event_type The type/name of the event

@return A pointer to a custom event; NULL otherwise.