Function metrics_controller::foreign_metrics::record_event [] [src]

pub extern fn record_event(event_category: *const c_char, event_action: *const c_char, event_label: *const c_char, event_value: i32) -> bool

Constructs a new event which is batched and sent to the Google Analytics server.

Params:

event_category -- Category of the event. For example, 'eng' or 'user'

event_action -- Action that the user took or what happened to trigger. For example, 'open-app'

event_label -- Description of what the metric is. For example, 'memory'

event_value -- Numeric value of the metric.

Returns:

true - Success

false - Error, unable to record the event