trackEvent {AzureAppInsights} | R Documentation |
Sends an event or set of metrics to Application Insights
Description
Use trackEvent
for tracking a single event together with any extra properties.
Use trackMetric
to track a summary of some measured metrics.
Usage
trackEvent(session, name, properties)
trackMetric(session, name, metrics, properties)
Arguments
session |
The |
name |
Name of the event. |
properties |
List of properties to track. |
metrics |
Numeric vector of values to calculate summary on. Non-finite values are removed. |
Value
Method sends data to client's browser; returns the sent list, invisibly.
Tracking Metrics
Individual measured values are not sent to Application Insights. Instead, summaries of the values (mean, range, average, standard deviation) are sent. Note: Standard deviation doesn't quite work yet.
Before calculating summaries, non-finite values are removed (see is.finite
).
If there are no values in metrics
, nothing is sent.