Interface IRequestMetrics
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
IsEnabled
Whether metrics are enabled for the request
bool IsEnabled { get; }
Property Value
Properties
Collection of properties being tracked
Dictionary<Metric, List<object>> Properties { get; }
Property Value
Timings
Timings for metrics being tracked
Dictionary<Metric, List<IMetricsTiming>> Timings { get; }
Property Value
Methods
ToJSON()
JSON representation of the current metrics
string ToJSON()
Returns
- string
JSON string