Search Results for

    Show / Hide Table of Contents

    Interface IMetricProvider

    Interface for all metric provider implementations.

    Namespace: FM.LiveSwitch.Metrics
    Assembly: FM.LiveSwitch.dll
    Syntax
    public interface IMetricProvider

    Methods

    Gauge(String, Double, String[])

    Log a value to a gauge metric.

    Declaration
    void Gauge(string eventName, double value, params string[] tags)
    Parameters
    Type Name Description
    System.String eventName

    The name of this metric.

    System.Double value

    The current value of the guage.

    System.String[] tags

    Tags to apply to the event if the provider supports it.

    Histogram(String, Double, String[])

    Log a value to a histogram metric.

    Declaration
    void Histogram(string eventName, double value, params string[] tags)
    Parameters
    Type Name Description
    System.String eventName
    System.Double value
    System.String[] tags

    Increment(String, Int64, String[])

    Increment the count of a metric.

    Declaration
    void Increment(string eventName, long value, params string[] tags)
    Parameters
    Type Name Description
    System.String eventName

    The name of this metric.

    System.Int64 value

    The amount to increment the count by.

    System.String[] tags

    Tags to apply to the event if the provider supports it.

    Increment(String, String[])

    Increment the count of a metric by 1.

    Declaration
    void Increment(string eventName, params string[] tags)
    Parameters
    Type Name Description
    System.String eventName

    The name of this metric.

    System.String[] tags

    Tags to apply to the event.

    In This Article
    Back to top Copyright © LiveSwitch Inc. All Rights Reserved. Doc build for LiveSwitch v1.25.0