Class InteractionMetrics<T>
A class to calculate the value for the metrics using the given bucket
Inheritance
System.Object
                  InteractionMetrics<T>
              Namespace:Microsoft.SqlTools.ServiceLayer
Assembly:Microsoft.SqlTools.ServiceLayer.dll
Syntax
public class InteractionMetrics<T>Constructors
| Improve this Doc View SourceInteractionMetrics(Int32[])
Creates new instance given a bucket of metrics
Declaration
public InteractionMetrics(int[] metrics)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int32[] | metrics | 
Properties
| Improve this Doc View SourceMetrics
The metrics bucket
Declaration
public int[] Metrics { get; }| Type | Description | 
|---|---|
| System.Int32[] | 
Quantile
Returns the quantile
Declaration
public Dictionary<string, T> Quantile { get; }| Type | Description | 
|---|---|
| System.Collections.Generic.Dictionary<System.String, T> | 
Methods
| Improve this Doc View SourceUpdateMetrics(Double, T, Func<String, T, T>)
Update metric value given new number
Declaration
public void UpdateMetrics(double duration, T newValue, Func<string, T, T> updateValueFactory)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Double | duration | |
| T | newValue | |
| System.Func<System.String, T, T> | updateValueFactory |