Show / Hide Table of Contents

    Class Counter

    Used to measure rates inside a system.

    Inheritance
    System.Object
    Metric
    Counter
    Namespace:Phobos.Monitoring.Metrics
    Assembly:Phobos.Monitoring.dll
    Syntax
    public sealed class Counter : Metric, IMetric

    Methods

    Decrement(Int64)

    Decrement the counter value by N.

    Declaration
    public void Decrement(long decrementVal = -1L)
    Parameters
    Type Name Description
    System.Int64 decrementVal

    The value by which to decrement the counter. Defaults to -1.

    Increment(Int64)

    Increment the counter value by N.

    Declaration
    public void Increment(long incrementValue = 1L)
    Parameters
    Type Name Description
    System.Int64 incrementValue

    The value by which to increment the counter. Defaults to 1.

    Back to top Copyright © 2015-2018 Petabridge®