C# Class GuaranteedRate.Sextant.Metrics.DatadogReporter

Inheritance: IDatadogReporter
显示文件 Open project: Guaranteed-Rate/GuaranteedRate.Sextant

Public Methods

Method Description
AddCounter ( string metric, long value ) : void
AddGauge ( string metric, long value ) : void

Send a metric to DataDog

AddMeter ( string metric, long value ) : void

Send a meter to DataDog

AddTag ( string tag, string value ) : void
DatadogReporter ( string datadogEndpoint, string apiKey, int queueSize = -1 ) : GuaranteedRate.Sextant.WebClients
SetApiKey ( string apiKey ) : void
SetEndPoint ( string endPoint ) : void
SetQueueSize ( int queueSize ) : void

Private Methods

Method Description
AddGuage ( string metric, long value ) : void
AddMetric ( string metric, long value, string type ) : void
GetEpochTime ( ) : long

Method Details

AddCounter() public method

public AddCounter ( string metric, long value ) : void
metric string
value long
return void

AddGauge() public method

Send a metric to DataDog
public AddGauge ( string metric, long value ) : void
metric string name of metric e.g. HogsHeadsPerMile
value long value to send to DataDog e.g. 67
return void

AddMeter() public method

Send a meter to DataDog
public AddMeter ( string metric, long value ) : void
metric string name of metric e.g. HogsHeadsPerMile
value long value to send to DataDog e.g. 67
return void

AddTag() public method

public AddTag ( string tag, string value ) : void
tag string
value string
return void

DatadogReporter() public method

public DatadogReporter ( string datadogEndpoint, string apiKey, int queueSize = -1 ) : GuaranteedRate.Sextant.WebClients
datadogEndpoint string
apiKey string
queueSize int
return GuaranteedRate.Sextant.WebClients

SetApiKey() public static method

public static SetApiKey ( string apiKey ) : void
apiKey string
return void

SetEndPoint() public static method

public static SetEndPoint ( string endPoint ) : void
endPoint string
return void

SetQueueSize() public static method

public static SetQueueSize ( int queueSize ) : void
queueSize int
return void