New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

prometheus-tracking

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prometheus-tracking - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

10

lib/tracker.counter.d.ts

@@ -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;
}

3

lib/tracker.counter.js

@@ -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": "",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc