Polling Counter Class
Provides a variant of EventCounter for variables that are ever-increasing, such as the number of exceptions in the runtime.
public ref class IncrementingPollingCounter : System::Diagnostics::Tracing::DiagnosticCounter
public class IncrementingPollingCounter : System.Diagnostics.Tracing.DiagnosticCounter
type IncrementingPollingCounter = class inherit DiagnosticCounter
Public Class IncrementingPollingCounter Inherits DiagnosticCounter
totalValueProvider is a method used for polling the values at the interval specified by the listener. This method is expected to return an incrementing float value; otherwise, an increment of a negative value may be reported.
IncrementingPollingCounter does not calculate statistics like mean and standard deviation because it only accumulates the counter value. Unlike IncrementingEventCounter, this takes in a polling callback that it can call to update its own metric periodically.
|IncrementingPollingCounter(String, EventSource, Func<Double>)||
Initializes a new instance of the IncrementingPollingCounter class.
Gets or sets the display name of the counter.(Inherited from DiagnosticCounter)
Gets or sets rate at which this metric should be displayed as.
Gets or sets the display units of the counter.(Inherited from DiagnosticCounter)
Gets the EventSource that this counter is attached to.(Inherited from DiagnosticCounter)
Gets the name of this counter.(Inherited from DiagnosticCounter)
Adds key-value metadata to the counter that will be included as a part of the payload.(Inherited from DiagnosticCounter)
Removes the counter from the set that the EventSource will report on.(Inherited from DiagnosticCounter)
Determines whether the specified object is equal to the current object.(Inherited from Object)
Serves as the default hash function.(Inherited from Object)
Gets the Type of the current instance.(Inherited from Object)
Creates a shallow copy of the current Object.(Inherited from Object)
Returns a string representation of the current incrementing polling counter instance.