Microsoft.ApplicationInsights.DataContracts.RequestTelemetry
public sealed class RequestTelemetry : OperationTelemetry, ITelemetry, ISupportProperties, ISupportMetrics, ISupportAdvancedSampling, ISupportSampling, IAiSerializableTelemetry
Encapsulates information about a web request handled by the application.
Gets or sets the HTTP method of the request.
Gets item type for sampling evaluation.
Gets or sets response code returned by the application after handling the request.
Gets or sets the source for the request telemetry object. This often is a hashed instrumentation key identifying the caller.
Gets or sets request url (optional).
public RequestTelemetry()
Initializes a new instance of the RequestTelemetry class.
public RequestTelemetry(string name, DateTimeOffset startTime, TimeSpan duration, string responseCode, bool success)
Initializes a new instance of the RequestTelemetry class with the given name,
startTime, duration, responseCode and success property values.