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, 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
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
- 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 string that represents this instance.
public override string ToString()