@types/graphite
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

Installation

npm install --save @types/graphite

Summary

This package contains type definitions for graphite (https://github.com/felixge/node-graphite).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/graphite.

index.d.ts

type Callback = (err: any) => void;

interface GraphiteClientProperties {
    carbon: any;
}

declare class GraphiteClient {
    constructor(properties: GraphiteClientProperties);
    static createClient(dsn: string): GraphiteClient;
    static flatten(object: any, flat?: any, prefix?: string): any;
    static appendTags(flatMetrics: any, tags: any): any;
    write(metrics: any, callback?: Callback): void;
    write(metrics: any, timestamp?: number, callback?: Callback): void;
    writeTagged(metrics: any, tags: any, callback?: Callback): void;
    writeTagged(metrics: any, tags: any, timestamp?: number, callback?: Callback): void;
    end(): void;
}

export = GraphiteClient;

Additional Details

  • Last updated: Tue, 07 Nov 2023 03:09:37 GMT
  • Dependencies: none

Credits

These definitions were written by Christian Muñoz.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @types/graphite

      Weekly Downloads

      634

      Version

      0.1.2

      License

      MIT

      Unpacked Size

      3.91 kB

      Total Files

      5

      Last publish

      Collaborators

      • types