diff --git a/build/src/catchers/catcher-message.d.ts b/build/src/catchers/catcher-message.d.ts index 5cd3b49..1caa249 100644 --- a/build/src/catchers/catcher-message.d.ts +++ b/build/src/catchers/catcher-message.d.ts @@ -63,6 +63,11 @@ export interface CatcherMessage { * All information about the event */ payload: CatcherMessagePayload; + /** + * Number of identical occurrences this message represents. + * Computed on Catcher side to dedupe similar events caused in the same time. + */ + count?: number; } /** * Type that represents a Catcher message accepted by the collector diff --git a/package.json b/package.json index ab2db1d..b719a5e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hawk.so/types", - "version": "0.6.0-rc.2", + "version": "0.6.1", "description": "TypeScript definitions for Hawk", "types": "build/index.d.ts", "main": "build/index.js", diff --git a/src/catchers/catcher-message.ts b/src/catchers/catcher-message.ts index 845e88e..0fbb118 100644 --- a/src/catchers/catcher-message.ts +++ b/src/catchers/catcher-message.ts @@ -83,6 +83,12 @@ export interface CatcherMessage { * All information about the event */ payload: CatcherMessagePayload; + + /** + * Number of identical occurrences this message represents. + * Computed on Catcher side to dedupe similar events caused in the same time. + */ + count?: number; } /**