prometheus-tracking
Advanced tools
Comparing version 0.2.3 to 0.2.4
export declare class TrackerConfig { | ||
name: string; | ||
port: number; | ||
startServer: boolean; | ||
collectDefaultMetrics: boolean; | ||
port?: number; | ||
startServer?: boolean; | ||
collectDefaultMetrics?: boolean; | ||
} |
@@ -16,3 +16,3 @@ import { TrackerConfig } from './tracker.config'; | ||
static sumUp(timeTuples: Array<[number, number]>): number; | ||
static getInstance(config?: TrackerConfig): Tracker; | ||
static getInstance(config: TrackerConfig): Tracker; | ||
private constructor(); | ||
@@ -19,0 +19,0 @@ trackRequest(uri: string, method: string, status: number, seconds: number): void; |
@@ -5,3 +5,2 @@ "use strict"; | ||
const client = require("prom-client"); | ||
const tracker_config_1 = require("./tracker.config"); | ||
const tracker_counter_1 = require("./tracker.counter"); | ||
@@ -45,3 +44,3 @@ const tracker_gauge_1 = require("./tracker.gauge"); | ||
static getInstance(config) { | ||
return new Tracker(config || new tracker_config_1.TrackerConfig()); | ||
return new Tracker(config); | ||
} | ||
@@ -48,0 +47,0 @@ trackRequest(uri, method, status, seconds) { |
{ | ||
"name": "prometheus-tracking", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"description": "prometheus-tracking", | ||
@@ -5,0 +5,0 @@ "author": "", |
14238
396