Class RequestTelemetry
- Namespace
- Microsoft.ApplicationInsights.DataContracts
- Assembly
- Microsoft.ApplicationInsights.dll
public sealed class RequestTelemetry : OperationTelemetry, ITelemetry, ISupportProperties, ISupportMetrics, ISupportAdvancedSampling, ISupportSampling
- Inheritance
-
RequestTelemetry
- Implements
-
- Inherited Members
-
- Extension Methods
-
Constructors
RequestTelemetry()
public RequestTelemetry()
RequestTelemetry(string, DateTimeOffset, TimeSpan, string, bool)
public RequestTelemetry(string name, DateTimeOffset startTime, TimeSpan duration, string responseCode, bool success)
Parameters
name
string
startTime
DateTimeOffset
duration
TimeSpan
responseCode
string
success
bool
Properties
Context
public override TelemetryContext Context { get; }
Property Value
- TelemetryContext
Duration
public override TimeSpan Duration { get; set; }
Property Value
- TimeSpan
Extension
public override IExtension Extension { get; set; }
Property Value
- IExtension
HttpMethod
[Obsolete("Include http verb into request telemetry name and use custom properties to report http method as a dimension.")]
public string HttpMethod { get; set; }
Property Value
- string
Id
public override string Id { get; set; }
Property Value
- string
ItemTypeFlag
public SamplingTelemetryItemTypes ItemTypeFlag { get; }
Property Value
- SamplingTelemetryItemTypes
Metrics
public override IDictionary<string, double> Metrics { get; }
Property Value
- IDictionary<string, double>
Name
public override string Name { get; set; }
Property Value
- string
ProactiveSamplingDecision
public SamplingDecision ProactiveSamplingDecision { get; set; }
Property Value
- SamplingDecision
Properties
public override IDictionary<string, string> Properties { get; }
Property Value
- IDictionary<string, string>
ResponseCode
public string ResponseCode { get; set; }
Property Value
- string
Sequence
public override string Sequence { get; set; }
Property Value
- string
Source
public string Source { get; set; }
Property Value
- string
Success
public override bool? Success { get; set; }
Property Value
- bool?
Timestamp
public override DateTimeOffset Timestamp { get; set; }
Property Value
- DateTimeOffset
Url
public Uri Url { get; set; }
Property Value
- Uri
Methods
DeepClone()
public override ITelemetry DeepClone()
Returns
- ITelemetry
SerializeData(ISerializationWriter)
public override void SerializeData(ISerializationWriter serializationWriter)
Parameters
serializationWriter
ISerializationWriter