Show / Hide Table of Contents

Interface ITelemetryOperationHolder

Represents the operation item that holds telemetry which is tracked on end request. Operation can be associated with either WEB or SQL dependencies.

Namespace: DNVGL.One.Telemetry.Core
Assembly: DNVGL.One.Telemetry.Core.dll
Syntax
public interface ITelemetryOperationHolder

Properties

View Source

Duration

Gets or sets the duration of the operation.

Declaration
TimeSpan Duration { get; set; }
Property Value
Type Description
TimeSpan
View Source

Id

Gets or sets Operation ID.

Declaration
string Id { get; set; }
Property Value
Type Description
System.String
View Source

Metrics

Gets the custom metrics collection.

Declaration
IDictionary<string, double> Metrics { get; }
Property Value
Type Description
IDictionary<System.String, System.Double>
View Source

Name

Gets or sets the name of the operation.

Declaration
string Name { get; set; }
Property Value
Type Description
System.String
View Source

Properties

Gets the custom properties collection.

Declaration
IDictionary<string, string> Properties { get; }
Property Value
Type Description
IDictionary<System.String, System.String>
View Source

Success

Gets or sets whether operation has finished successfully.

Declaration
bool? Success { get; set; }
Property Value
Type Description
System.Nullable<System.Boolean>
View Source

Timestamp

Gets or sets the timestamp for the operation.

Declaration
DateTimeOffset Timestamp { get; set; }
Property Value
Type Description
DateTimeOffset

Methods

View Source

SetFailed()

Sets the operation as failed.

Declaration
void SetFailed()
View Source

SetSuccess()

Sets the operation as successful success.

Declaration
void SetSuccess()
View Source

StopOperation()

Stop operation computes the duration of the operation and tracks it using the respective telemetry client.

Declaration
void StopOperation()
  • View Source
Back to top Copyright © DNV GL AS. All rights reserved.