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
-
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
StringThe server-specified metric name.
duration
Nullable<TimeSpan>The server-specified metric duration.
description
StringThe 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
Name
Gets the server-specified metric name.
public string Name { get; }
Property Value
- String
The server-specified metric name.
Methods
ToString()
Returns a String that represents this instance.
public override string ToString()