RequestTelemetry Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Encapsulates information about a web request handled by the application.
public ref class RequestTelemetry sealed : Microsoft::VisualStudio::ApplicationInsights::Channel::ITelemetry, Microsoft::VisualStudio::ApplicationInsights::DataContracts::ISupportProperties
public sealed class RequestTelemetry : Microsoft.VisualStudio.ApplicationInsights.Channel.ITelemetry, Microsoft.VisualStudio.ApplicationInsights.DataContracts.ISupportProperties
type RequestTelemetry = class
interface ITelemetry
interface ISupportProperties
Public NotInheritable Class RequestTelemetry
Implements ISupportProperties, ITelemetry
- Inheritance
-
RequestTelemetry
- Implements
Remarks
You can send information about requests processed by your web application to Application Insights by passing an instance of the RequestTelemetry class to the TrackRequest(RequestTelemetry) method.
Constructors
RequestTelemetry() |
Initializes a new instance of the RequestTelemetry class. |
RequestTelemetry(String, DateTimeOffset, TimeSpan, String, Boolean) |
Initializes a new instance of the RequestTelemetry class with the given |
Properties
Context |
Gets the object that contains contextual information about the application at the time when it handled the request. |
Duration |
Gets or sets the amount of time it took the application to handle the request. |
HttpMethod |
Gets or sets the HTTP method of the request. |
Id |
Gets or sets the unique identifier of the request. |
Metrics |
Gets a dictionary of application-defined request metrics. |
Name |
Gets or sets human-readable name of the requested page. |
Properties |
Gets a dictionary of application-defined property names and values providing additional information about this request. |
ResponseCode |
Gets or sets response code returned by the application after handling the request. |
Sequence |
Gets or sets the value that defines absolute order of the telemetry item. |
Success |
Gets or sets a value indicating whether application handled the request successfully. |
Timestamp |
Gets or sets the date and time when request was processed by the application. |
Url |
Gets or sets request url (optional). |
Explicit Interface Implementations
ITelemetry.Sanitize() |
Sanitizes the properties based on constraints. |