Show / Hide Table of Contents

Interface IStatsd

Inherited Members
System.IDisposable.Dispose()
Namespace:StatsN
Assembly:cs.temp.dll.dll
Syntax
public interface IStatsd : IDisposable

Methods

| Improve this Doc

CountAsync(String, Int64)

Simple Counter

Declaration
Task CountAsync(string name, long count = 1L)
Parameters
Type Name Description
System.String name
System.Int64 count
Returns
Type Description
System.Threading.Tasks.Task
| Improve this Doc

GaugeAsync(String, Int64)

arbitrary values, which can be recorded.

Declaration
Task GaugeAsync(string name, long value)
Parameters
Type Name Description
System.String name
System.Int64 value
Returns
Type Description
System.Threading.Tasks.Task
| Improve this Doc

GaugeDeltaAsync(String, Int64)

Add or remove from gauge instead of setting

Declaration
Task GaugeDeltaAsync(string name, long value)
Parameters
Type Name Description
System.String name
System.Int64 value
Returns
Type Description
System.Threading.Tasks.Task
| Improve this Doc

SetAsync(String, Int64)

StatsD supports counting unique occurences of events between flushes, using a Set to store all occuring events

Declaration
Task SetAsync(string name, long value)
Parameters
Type Name Description
System.String name
System.Int64 value
Returns
Type Description
System.Threading.Tasks.Task
| Improve this Doc

TimingAsync(String, Action)

How long something takes to complete. StatsD figures out percentiles, average (mean), standard deviation, sum, lower and upper bounds for the flush interval

Declaration
Task TimingAsync(string name, Action actionToTime)
Parameters
Type Name Description
System.String name
System.Action actionToTime

action to instrument

Returns
Type Description
System.Threading.Tasks.Task
| Improve this Doc

TimingAsync(String, Int64)

change the value of the gauge, rather than setting it

Declaration
Task TimingAsync(string name, long milliseconds)
Parameters
Type Name Description
System.String name
System.Int64 milliseconds

time to log in ms

Returns
Type Description
System.Threading.Tasks.Task
  • Improve this Doc
Back to top Copyright © 2015-2016 Microsoft
Generated by DocFX