RequestTelemetryItem class

Represents a request telemetry item in Application Insights.

Implemented types
Annotations
  • @immutable

Constructors

RequestTelemetryItem({required String id, required Duration duration, required String responseCode, String? source, String? name, bool? success, String? url, Map<String, Object> additionalProperties = const <String, Object>{}, DateTime? timestamp})
Creates an instance of RequestTelemetryItem with the specified id, duration, and responseCode.

Properties

additionalProperties Map<String, Object>
Any additional properties to submit with the telemetry.
final
duration Duration
The duration of the request.
final
envelopeName String
The Application Insights envelope name used when transmitting telemetry of this type.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
id String
The ID of the request.
final
name String?
The name of the request, which is optional.
final
responseCode String
The response code for the request.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source String?
The source of the request, which is optional.
final
success bool?
Whether the request was successful or not, which is optional.
final
timestamp DateTime
When the telemetry was created.
final
url String?
The URL of the request, which is optional.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
serialize({required TelemetryContext context}) Map<String, dynamic>
Gets a serialized representation of this telemetry.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited