C# Класс Amazon.Runtime.Internal.Util.RequestMetrics

Наследование: IRequestMetrics
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
AddProperty void
GetErrors string
IncrementCounter void
Log void
Log void
LogError_Locked void
LogHelper void
ObjectToString string
RequestMetrics System
SetCounter void
StartEvent TimingEvent
StopEvent Timing

Открытые методы

Метод Описание
ToString ( ) : string

Returns a string representation of the current metrics.

Приватные методы

Метод Описание
AddProperty ( Metric metric, object property ) : void

Adds a property for a metric. If there are multiple, the object is added as a new item in a list.

GetErrors ( ) : string

Returns errors associated with the metric, including if there are still any timing events in-flight.

IncrementCounter ( Metric metric ) : void

Increments a specific metric counter. If counter doesn't exist yet, it is set to 1.

Log ( StringBuilder builder, Metric metric, List metricValues ) : void
Log ( StringBuilder builder, Metric metric, object metricValue ) : void
LogError_Locked ( Metric metric, string messageFormat ) : void
LogHelper ( StringBuilder builder, Metric metric ) : void
ObjectToString ( object data ) : string
RequestMetrics ( ) : System

Constructs an empty, disabled metrics object

SetCounter ( Metric metric, long value ) : void

Sets a counter for a specific metric.

StartEvent ( Metric metric ) : TimingEvent

Starts timing an event. Logs an exception if an event of the same type was started but not stopped.

StopEvent ( Metric metric ) : Timing

Stops timing an event. Logs an exception if the event wasn't started.

Описание методов

ToString() публичный Метод

Returns a string representation of the current metrics.
public ToString ( ) : string
Результат string