C# Class GuaranteedRate.Sextant.Metrics.DatadogReporter

Inheritance: IDatadogReporter
Afficher le fichier Open project: Guaranteed-Rate/GuaranteedRate.Sextant

Méthodes publiques

Méthode 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

Méthode Description
AddGuage ( string metric, long value ) : void
AddMetric ( string metric, long value, string type ) : void
GetEpochTime ( ) : long

Method Details

AddCounter() public méthode

public AddCounter ( string metric, long value ) : void
metric string
value long
Résultat void

AddGauge() public méthode

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
Résultat void

AddMeter() public méthode

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
Résultat void

AddTag() public méthode

public AddTag ( string tag, string value ) : void
tag string
value string
Résultat void

DatadogReporter() public méthode

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

SetApiKey() public static méthode

public static SetApiKey ( string apiKey ) : void
apiKey string
Résultat void

SetEndPoint() public static méthode

public static SetEndPoint ( string endPoint ) : void
endPoint string
Résultat void

SetQueueSize() public static méthode

public static SetQueueSize ( int queueSize ) : void
queueSize int
Résultat void