Table of Contents

Class ServerTimingMetric

Namespace
Cuemon.AspNetCore.Diagnostics
Assembly
Cuemon.AspNetCore.dll

Represents a HTTP Server-Timing header field entry to communicate one metric and description for the given request-response cycle.

public class ServerTimingMetric
Inheritance
Object
ServerTimingMetric

Constructors

ServerTimingMetric(String, Nullable<TimeSpan>, String)

Initializes a new instance of the ServerTimingMetric class.

public ServerTimingMetric(string name, TimeSpan? duration = null, string description = null)

Parameters

name String

The server-specified metric name.

duration Nullable<TimeSpan>

The server-specified metric duration.

description String

The server-specified metric description.

Properties

Description

Gets the server-specified metric description.

public string Description { get; }

Property Value

String

The server-specified metric description.

Duration

Gets the server-specified metric duration.

public TimeSpan? Duration { get; }

Property Value

Nullable<TimeSpan>

The server-specified metric duration.

Name

Gets the server-specified metric name.

public string Name { get; }

Property Value

String

The server-specified metric name.

Methods

ToString()

Returns a System.String that represents this instance.

public override string ToString()

Returns

String

A System.String that represents this instance.