Skip to content

Variable: WebhookStatisticsSchema ​

ts
const WebhookStatisticsSchema: ZodObject<{
  counts: ZodOptional<ZodObject<{
     errors: ZodOptional<ZodNumber>;
     failures: ZodOptional<ZodNumber>;
     successes: ZodOptional<ZodNumber>;
     window: ZodOptional<ZodObject<{
        duration: ZodOptional<ZodNumber>;
        start: ZodOptional<ZodNumber>;
     }, ApiObjectConfig<undefined>>>;
  }, ApiObjectConfig<undefined>>>;
  lastError: ZodOptional<ZodRecord<ZodString, ZodAny>>;
}, ApiObjectConfig<undefined>>;

Defined in: src/server/models/webhookStatistics.ts:5

How a webhook has been delivering, over the window the instance keeps.