Interface IServerTiming
- Namespace
- Cuemon.AspNetCore.Diagnostics
- Assembly
- Cuemon.AspNetCore.dll
Represents the Server Timing as per W3C Working Draft 28 July 2020 (https://www.w3.org/TR/2020/WD-server-timing-20200728/).
public interface IServerTiming
Properties
Metrics
Gets the entries used to communicate one or more metrics and descriptions for the given request-response cycle.
IEnumerable<ServerTimingMetric> Metrics { get; }
Property Value
- IEnumerable<ServerTimingMetric>
The entries used to communicate one or more metrics and descriptions for the given request-response cycle.
Methods
AddServerTiming(String)
Adds a ServerTimingMetric to the Metrics.
IServerTiming AddServerTiming(string name)
Parameters
name
StringThe server-specified metric name.
Returns
- IServerTiming
A reference to this instance after the operation has completed.
AddServerTiming(String, TimeSpan)
Adds a ServerTimingMetric to the Metrics.
IServerTiming AddServerTiming(string name, TimeSpan duration)
Parameters
name
StringThe server-specified metric name.
duration
TimeSpanThe server-specified metric duration.
Returns
- IServerTiming
A reference to this instance after the operation has completed.
AddServerTiming(String, TimeSpan, String)
Adds a ServerTimingMetric to the Metrics.
IServerTiming AddServerTiming(string name, TimeSpan duration, string description)
Parameters
name
StringThe server-specified metric name.
duration
TimeSpanThe server-specified metric duration.
description
StringThe server-specified metric description.
Returns
- IServerTiming
A reference to this instance after the operation has completed.