<FMLiveSwitchMetricsIMetricProvider> Protocol Reference

Interface for all metric provider implementations. More...

Instance Methods

(void) - gaugeWithEventName:value:tags:
 Log a value to a gauge metric. More...
 
(void) - histogramWithEventName:value:tags:
 Log a value to a histogram metric. More...
 
(void) - incrementWithEventName:tags:
 Increment the count of a metric by 1. More...
 
(void) - incrementWithEventName:value:tags:
 Increment the count of a metric. More...
 

Detailed Description

Interface for all metric provider implementations.

Method Documentation

◆ gaugeWithEventName:value:tags:

- (void) gaugeWithEventName: (NSString *)  eventName
value: (double)  value
tags: (NSMutableArray *)  tags 

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.

◆ histogramWithEventName:value:tags:

- (void) histogramWithEventName: (NSString *)  eventName
value: (double)  value
tags: (NSMutableArray *)  tags 

Log a value to a histogram metric.

Parameters
eventName
value
tags

◆ incrementWithEventName:tags:

- (void) incrementWithEventName: (NSString *)  eventName
tags: (NSMutableArray *)  tags 

Increment the count of a metric by 1.

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

◆ incrementWithEventName:value:tags:

- (void) incrementWithEventName: (NSString *)  eventName
value: (long long)  value
tags: (NSMutableArray *)  tags 

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.