@jitsu/protocols 2.14.0-canary.20251226.657eeae → 2.14.0-canary.20260113.44dc769

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/functions.d.ts +10 -6
  2. package/package.json +1 -1
package/functions.d.ts CHANGED
@@ -22,15 +22,19 @@ export interface Store {
22
22
  }
23
23
 
24
24
  export interface FunctionMetrics {
25
- counter(name: string): {
26
- //increment / decrement counter. Supports negative values
27
- inc: (value: number) => void;
28
- };
29
- gauge(name: string): {
30
- set: (value: number) => void;
25
+ status(
26
+ component: string,
27
+ status: "error" | "ok",
28
+ errorType?: string
29
+ ): {
31
30
  //increment / decrement counter. Supports negative values
32
31
  inc: (value: number) => void;
33
32
  };
33
+ // gauge(name: string): {
34
+ // set: (value: number) => void;
35
+ // //increment / decrement counter. Supports negative values
36
+ // inc: (value: number) => void;
37
+ // };
34
38
  }
35
39
 
36
40
  export interface TTLStore extends Store {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jitsu/protocols",
3
- "version": "2.14.0-canary.20251226.657eeae",
3
+ "version": "2.14.0-canary.20260113.44dc769",
4
4
  "description": "",
5
5
  "author": "Jitsu Dev Team <dev@jitsu.com>",
6
6
  "publishConfig": {