prometheus-tracking
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -0,1 +1,9 @@ | ||
export interface ICounter { | ||
/** | ||
* Increment with value | ||
* @param value The value to increment with | ||
* @param timestamp Timestamp to associate the time series with | ||
*/ | ||
inc(value?: number, timestamp?: number | Date): void; | ||
} | ||
export declare class Counter { | ||
@@ -15,3 +23,3 @@ private counter; | ||
*/ | ||
labels(...values: string[]): Counter; | ||
labels(...values: string[]): ICounter; | ||
} |
@@ -26,6 +26,5 @@ "use strict"; | ||
labels(...values) { | ||
this.counter.labels(...values); | ||
return this; | ||
return this.counter.labels(...values); | ||
} | ||
} | ||
exports.Counter = Counter; |
@@ -0,1 +1,21 @@ | ||
export interface IGauge { | ||
/** | ||
* Increment with value | ||
* @param value The value to increment with | ||
* @param timestamp Timestamp to associate the time series with | ||
*/ | ||
inc(value?: number, timestamp?: number | Date): void; | ||
/** | ||
* Decrement with value | ||
* @param value The value to decrement with | ||
* @param timestamp Timestamp to associate the time series with | ||
*/ | ||
dec(value?: number, timestamp?: number | Date): void; | ||
/** | ||
* Set gauge value | ||
* @param value The value to set | ||
* @param timestamp Timestamp to associate the time series with | ||
*/ | ||
set(value?: number, timestamp?: number | Date): void; | ||
} | ||
export declare class Gauge { | ||
@@ -27,3 +47,3 @@ private gauge; | ||
*/ | ||
labels(...values: string[]): Gauge; | ||
labels(...values: string[]): IGauge; | ||
} |
@@ -42,6 +42,5 @@ "use strict"; | ||
labels(...values) { | ||
this.gauge.labels(...values); | ||
return this; | ||
return this.gauge.labels(...values); | ||
} | ||
} | ||
exports.Gauge = Gauge; |
@@ -0,1 +1,8 @@ | ||
export interface IHistogram { | ||
/** | ||
* Observe value | ||
* @param value The value to observe | ||
*/ | ||
observe(value: number): void; | ||
} | ||
export declare class Histogram { | ||
@@ -14,3 +21,3 @@ private histogram; | ||
*/ | ||
labels(...values: string[]): Histogram; | ||
labels(...values: string[]): IHistogram; | ||
/** | ||
@@ -17,0 +24,0 @@ * Reset histogram values |
@@ -25,4 +25,3 @@ "use strict"; | ||
labels(...values) { | ||
this.histogram.labels(...values); | ||
return this; | ||
return this.histogram.labels(...values); | ||
} | ||
@@ -29,0 +28,0 @@ /** |
{ | ||
"name": "prometheus-tracking", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "prometheus-tracking", | ||
@@ -5,0 +5,0 @@ "author": "", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
13805
377
1