TelemetryClient
Class
Definition
Send events, metrics and other telemetry to the Application Insights service.
public sealed class TelemetryClient
- Inheritance
-
TelemetryClient
Constructors
| TelemetryClient() |
Initializes a new instance of the TelemetryClient class. Send telemetry with the active configuration, usually loaded from ApplicationInsights.config. |
| TelemetryClient(TelemetryConfiguration) |
Initializes a new instance of the TelemetryClient class. Send telemetry with the specified |
Properties
| Context |
Gets the current context that will be used to augment telemetry you send. |
| InstrumentationKey |
Gets or sets the default instrumentation key for all ITelemetry objects logged in this TelemetryClient. |
Methods
| Flush() |
Flushes the in-memory buffer. |
| IsEnabled() |
Check to determine if the tracking is enabled. |
| 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>) |
Send information about availability of an application. |
| 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) |
Send information about external dependency call in the application. |
| 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>) |
Send an EventTelemetry for display in Diagnostic Search and aggregation in Metrics Explorer. |
| 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) |
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>) |
Send an ExceptionTelemetry for display in Diagnostic Search. |
| TrackMetric(MetricTelemetry) |
Send a MetricTelemetry for representing aggregated metric data. Create a separate MetricTelemetry instance for each call to TrackMetric(MetricTelemetry). |
| TrackPageView(PageViewTelemetry) |
Send information about the page viewed in the application. Create a separate PageViewTelemetry instance for each call to TrackPageView(PageViewTelemetry). |
| TrackPageView(String) |
Send information about the page viewed in the application. |
| 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) |
Send information about a request handled by the application. |
| TrackTrace(TraceTelemetry) |
Send a trace message for display in Diagnostic Search. Create a separate TraceTelemetry instance for each call to TrackTrace(TraceTelemetry). |
| TrackTrace(String) |
Send a trace message for display in Diagnostic Search. |
| TrackTrace(String, SeverityLevel) |
Send a trace message for display in Diagnostic Search. |
| TrackTrace(String, IDictionary<String,String>) |
Send a trace message for display in Diagnostic Search. |
| TrackTrace(String, SeverityLevel, IDictionary<String,String>) |
Send a trace message for display in Diagnostic Search. |
Extension Methods
| IsDefined(Object) | |
| IsNull(Object) | |
| IsPrimitive(Object) |