Table of Contents

Interface IRequestMetrics

Namespace
Amazon.Runtime
Assembly
AWSSDK.Core.dll

Metrics collected by the SDK on a per-request basis.

public interface IRequestMetrics

Remarks

Each request made to an AWS service by the SDK can have metrics collected and logged. This interface represents the collected metrics for a request. The metrics include properties (i.e. request id and other metadata), timings for each stage of the request, and counters.

Properties

Counters

Counters being tracked

Dictionary<Metric, long> Counters { get; }

Property Value

Dictionary<Metric, long>

IsEnabled

Whether metrics are enabled for the request

bool IsEnabled { get; }

Property Value

bool

Properties

Collection of properties being tracked

Dictionary<Metric, List<object>> Properties { get; }

Property Value

Dictionary<Metric, List<object>>

Timings

Timings for metrics being tracked

Dictionary<Metric, List<IMetricsTiming>> Timings { get; }

Property Value

Dictionary<Metric, List<IMetricsTiming>>

Methods

ToJSON()

JSON representation of the current metrics

string ToJSON()

Returns

string

JSON string