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 session object passed to function given to shinyServer.

name

Name of the event.

properties

List of properties to track. appId and any extras given in startAzureAppInsights is automatically inserted.

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.


[Package AzureAppInsights version 0.3.1 Index]