| C# |
public class RequestMetrics
| All Members | Constructors | Methods | Properties | ||
| Icon | Member | Description |
|---|---|---|
| RequestMetrics()()()() |
Constructs an empty, disabled metrics object
| |
| AddProperty(RequestMetrics..::..Metric, Object) |
Adds a property for a metric. If there are multiple, the
object is added as a new item in a list.
| |
| Counters |
Counters being tracked
| |
| Equals(Object) | (Inherited from Object.) | |
| GetErrors()()()() |
Returns errors associated with the metric, including
if there are still any timing events in-flight.
| |
| GetHashCode()()()() | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetType()()()() | Gets the type of the current instance. (Inherited from Object.) | |
| IncrementCounter(RequestMetrics..::..Metric) |
Increments a specific metric counter.
If counter doesn't exist yet, it is set to 1.
| |
| IsEnabled |
Whether metrics are enabled for the request
| |
| Properties |
Collection of properties being tracked
| |
| SetCounter(RequestMetrics..::..Metric, Int64) |
Sets a counter for a specific metric.
| |
| StartEvent(RequestMetrics..::..Metric) |
Starts timing an event. Logs an exception if an event
of the same type was started but not stopped.
| |
| StopEvent(RequestMetrics..::..Metric) |
Stops timing an event. Logs an exception if the event wasn't started.
| |
| Timings |
Timings for metrics being tracked
| |
| ToString()()()() |
Returns a string representation of the current metrics.
(Overrides Object.ToString()()()().) |
| Object | |
| RequestMetrics | |