TelemetryClient TelemetryClient TelemetryClient Class

Definition

Send events, metrics and other telemetry to the Application Insights service.

public sealed class TelemetryClient
type TelemetryClient = class
Public NotInheritable Class TelemetryClient
Inheritance
TelemetryClientTelemetryClientTelemetryClient

Constructors

TelemetryClient() TelemetryClient() TelemetryClient()

Initializes a new instance of the TelemetryClient class. Send telemetry with the active configuration, usually loaded from ApplicationInsights.config.

TelemetryClient(TelemetryConfiguration) TelemetryClient(TelemetryConfiguration) TelemetryClient(TelemetryConfiguration)

Initializes a new instance of the TelemetryClient class. Send telemetry with the specified configuration.

Properties

Context Context Context

Gets the current context that will be used to augment telemetry you send.

InstrumentationKey InstrumentationKey InstrumentationKey

Gets or sets the default instrumentation key for all ITelemetry objects logged in this TelemetryClient.

Methods

Flush() Flush() Flush()

Flushes the in-memory buffer.

IsEnabled() IsEnabled() IsEnabled()

Check to determine if the tracking is enabled.

TrackAvailability(AvailabilityTelemetry) TrackAvailability(AvailabilityTelemetry) TrackAvailability(AvailabilityTelemetry)

Send information about availability of an application. Create a separate AvailabilityTelemetry instance for each call to TrackAvailability(AvailabilityTelemetry)

TrackAvailability(String, DateTimeOffset, TimeSpan, String, Boolean, String, IDictionary<String,String>, IDictionary<String,Double>) TrackAvailability(String, DateTimeOffset, TimeSpan, String, Boolean, String, IDictionary<String,String>, IDictionary<String,Double>) TrackAvailability(String, DateTimeOffset, TimeSpan, String, Boolean, String, IDictionary<String,String>, IDictionary<String,Double>)

Send information about availability of an application.

TrackDependency(DependencyTelemetry) TrackDependency(DependencyTelemetry) TrackDependency(DependencyTelemetry)

Send information about external dependency call in the application. Create a separate DependencyTelemetry instance for each call to TrackDependency(DependencyTelemetry)

TrackDependency(String, String, DateTimeOffset, TimeSpan, Boolean) TrackDependency(String, String, DateTimeOffset, TimeSpan, Boolean) TrackDependency(String, String, DateTimeOffset, TimeSpan, Boolean)

Send information about external dependency call in the application.

TrackDependency(String, String, String, String, DateTimeOffset, TimeSpan, String, Boolean) TrackDependency(String, String, String, String, DateTimeOffset, TimeSpan, String, Boolean) TrackDependency(String, String, String, String, DateTimeOffset, TimeSpan, String, Boolean)

Send information about external dependency call in the application.

TrackEvent(String, IDictionary<String,String>, IDictionary<String,Double>) TrackEvent(String, IDictionary<String,String>, IDictionary<String,Double>) TrackEvent(String, IDictionary<String,String>, IDictionary<String,Double>)

Send an EventTelemetry for display in Diagnostic Search and aggregation in Metrics Explorer.

TrackEvent(EventTelemetry) TrackEvent(EventTelemetry) TrackEvent(EventTelemetry)

Send an EventTelemetry for display in Diagnostic Search and aggregation in Metrics Explorer. Create a separate EventTelemetry instance for each call to TrackEvent(EventTelemetry).

TrackException(ExceptionTelemetry) TrackException(ExceptionTelemetry) TrackException(ExceptionTelemetry)

Send an ExceptionTelemetry for display in Diagnostic Search. Create a separate ExceptionTelemetry instance for each call to TrackException(ExceptionTelemetry)

TrackException(Exception, IDictionary<String,String>, IDictionary<String,Double>) TrackException(Exception, IDictionary<String,String>, IDictionary<String,Double>) TrackException(Exception, IDictionary<String,String>, IDictionary<String,Double>)

Send an ExceptionTelemetry for display in Diagnostic Search.

TrackMetric(MetricTelemetry) TrackMetric(MetricTelemetry) TrackMetric(MetricTelemetry)

Send a MetricTelemetry for representing aggregated metric data. Create a separate MetricTelemetry instance for each call to TrackMetric(MetricTelemetry).

TrackPageView(PageViewTelemetry) TrackPageView(PageViewTelemetry) TrackPageView(PageViewTelemetry)

Send information about the page viewed in the application. Create a separate PageViewTelemetry instance for each call to TrackPageView(PageViewTelemetry).

TrackPageView(String) TrackPageView(String) TrackPageView(String)

Send information about the page viewed in the application.

TrackRequest(RequestTelemetry) TrackRequest(RequestTelemetry) TrackRequest(RequestTelemetry)

Send information about a request handled by the application. Create a separate RequestTelemetry instance for each call to TrackRequest(RequestTelemetry).

TrackRequest(String, DateTimeOffset, TimeSpan, String, Boolean) TrackRequest(String, DateTimeOffset, TimeSpan, String, Boolean) TrackRequest(String, DateTimeOffset, TimeSpan, String, Boolean)

Send information about a request handled by the application.

TrackTrace(TraceTelemetry) TrackTrace(TraceTelemetry) TrackTrace(TraceTelemetry)

Send a trace message for display in Diagnostic Search. Create a separate TraceTelemetry instance for each call to TrackTrace(TraceTelemetry).

TrackTrace(String) TrackTrace(String) TrackTrace(String)

Send a trace message for display in Diagnostic Search.

TrackTrace(String, SeverityLevel) TrackTrace(String, SeverityLevel) TrackTrace(String, SeverityLevel)

Send a trace message for display in Diagnostic Search.

TrackTrace(String, IDictionary<String,String>) TrackTrace(String, IDictionary<String,String>) TrackTrace(String, IDictionary<String,String>)

Send a trace message for display in Diagnostic Search.

TrackTrace(String, SeverityLevel, IDictionary<String,String>) TrackTrace(String, SeverityLevel, IDictionary<String,String>) TrackTrace(String, SeverityLevel, IDictionary<String,String>)

Send a trace message for display in Diagnostic Search.

Extension Methods

IsDefined(Object) IsDefined(Object) IsDefined(Object)

Determines if a certain property is defined or not.

IsNull(Object) IsNull(Object) IsNull(Object)

Determines if a certain property is null or not.

IsPrimitive(Object) IsPrimitive(Object) IsPrimitive(Object)

Determines if a certain property is of premitive JSON type.

Applies to