ex_insights v0.1.0 ExInsights

Exposes methods for POSTing events & metrics to Azure Application Insights

Link to this section Summary

Functions

Tracks a custom event. name: name of the event (string) properties (optional): a map of [string -> string] pairs for adding extra properties to this event measurements (optional): a map of [string -> number] values associated with this event that can be aggregated/sumed/etc. on the ui

Log a numeric value that is not associated with a specific event. Typically used to send regular reports of performance indicators. name: name of the metric (string) value: the value of the metric (number) properties (optional): a map of [string -> string] pairs for adding extra properties to this event

Link to this section Functions

Link to this function track_event(name, properties \\ %{}, measurements \\ %{})

Tracks a custom event. name: name of the event (string) properties (optional): a map of [string -> string] pairs for adding extra properties to this event measurements (optional): a map of [string -> number] values associated with this event that can be aggregated/sumed/etc. on the ui

Link to this function track_metric(name, value, properties \\ %{})

Log a numeric value that is not associated with a specific event. Typically used to send regular reports of performance indicators. name: name of the metric (string) value: the value of the metric (number) properties (optional): a map of [string -> string] pairs for adding extra properties to this event