SQL Tools Service
Show / Hide Table of Contents
Improve this Doc View Source

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 Source

InteractionMetrics(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 Source

Metrics

The metrics bucket

Declaration
public int[] Metrics { get; }
Type Description
System.Int32[]
| Improve this Doc View Source

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 Source

UpdateMetrics(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
  • Improve this Doc
  • View Source

© Microsoft  //  Generated with DocFX