Interface DogStatsD

interface DogStatsD {
    decrement(stat, value?, tags?): void;
    distribution(stat, value?, tags?): void;
    flush(): void;
    gauge(stat, value?, tags?): void;
    histogram(stat, value?, tags?): void;
    increment(stat, value?, tags?): void;
}

Methods

  • Decrements a metric by the specified value, optionally specifying tags.

    Parameters

    • stat: string

      The dot-separated metric name.

    • Optional value: number

      The amount to decrement the stat by.

    • Optional tags: {
          [tag: string]: string | number;
      }

      Tags to pass along, such as { foo: 'bar' }. Values are combined with config.tags.

      • [tag: string]: string | number

    Returns void

  • Sets a distribution value, optionally specifying tags.

    Parameters

    • stat: string

      The dot-separated metric name.

    • Optional value: number

      The amount to increment the stat by.

    • Optional tags: {
          [tag: string]: string | number;
      }

      Tags to pass along, such as { foo: 'bar' }. Values are combined with config.tags.

      • [tag: string]: string | number

    Returns void

  • Beta

    Forces any unsent metrics to be sent

    This method is experimental and could be removed in future versions.

    Returns void

  • Sets a gauge value, optionally specifying tags.

    Parameters

    • stat: string

      The dot-separated metric name.

    • Optional value: number

      The amount to increment the stat by.

    • Optional tags: {
          [tag: string]: string | number;
      }

      Tags to pass along, such as { foo: 'bar' }. Values are combined with config.tags.

      • [tag: string]: string | number

    Returns void

  • Sets a histogram value, optionally specifying tags.

    Parameters

    • stat: string

      The dot-separated metric name.

    • Optional value: number

      The amount to increment the stat by.

    • Optional tags: {
          [tag: string]: string | number;
      }

      Tags to pass along, such as { foo: 'bar' }. Values are combined with config.tags.

      • [tag: string]: string | number

    Returns void

  • Increments a metric by the specified value, optionally specifying tags.

    Parameters

    • stat: string

      The dot-separated metric name.

    • Optional value: number

      The amount to increment the stat by.

    • Optional tags: {
          [tag: string]: string | number;
      }

      Tags to pass along, such as { foo: 'bar' }. Values are combined with config.tags.

      • [tag: string]: string | number

    Returns void

Generated using TypeDoc