AWS SDK for .NET Documentation
RequestMetrics Class
AmazonAmazon.Runtime.InternalRequestMetrics Did this page help you?   Yes   No    Tell us about it...
Declaration Syntax
C#
public class RequestMetrics
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
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)
Determines whether the specified Object is equal to the current 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()()()().)
Inheritance Hierarchy
Object
RequestMetrics

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)