fm.liveswitch.metrics.IMetricProvider Interface Reference

Interface for all metric provider implementations. More...

Public Member Functions

abstract void gauge (String eventName, double value, String[] tags)
 Log a value to a gauge metric. More...
 
abstract void histogram (String eventName, double value, String[] tags)
 Log a value to a histogram metric. More...
 
abstract void increment (String eventName, String[] tags)
 Increment the count of a metric by 1. More...
 
abstract void increment (String eventName, long value, String[] tags)
 Increment the count of a metric. More...
 

Detailed Description

Interface for all metric provider implementations.

Member Function Documentation

◆ gauge()

abstract void fm.liveswitch.metrics.IMetricProvider.gauge ( String  eventName,
double  value,
String[]  tags 
)
abstract

Log a value to a gauge metric.

Parameters
eventNameThe name of this metric.
valueThe current value of the guage.
tagsTags to apply to the event if the provider supports it.

◆ histogram()

abstract void fm.liveswitch.metrics.IMetricProvider.histogram ( String  eventName,
double  value,
String[]  tags 
)
abstract

Log a value to a histogram metric.

Parameters
eventName
value
tags

◆ increment() [1/2]

abstract void fm.liveswitch.metrics.IMetricProvider.increment ( String  eventName,
long  value,
String[]  tags 
)
abstract

Increment the count of a metric.

Parameters
eventNameThe name of this metric.
valueThe amount to increment the count by.
tagsTags to apply to the event if the provider supports it.

◆ increment() [2/2]

abstract void fm.liveswitch.metrics.IMetricProvider.increment ( String  eventName,
String[]  tags 
)
abstract

Increment the count of a metric by 1.

Parameters
eventNameThe name of this metric.
tagsTags to apply to the event.