MCPcopy Index your code
hub / github.com/simstudioai/sim / makeConfig

Function makeConfig

apps/sim/lib/workspace-events/rules.test.ts:12–26  ·  view source on GitHub ↗
(overrides: Partial<SimSubscriptionConfig> = {})

Source from the content-addressed store, hash-verified

10import type { ExecutionEventContext, SimSubscriptionConfig } from '@/lib/workspace-events/types'
11
12function makeConfig(overrides: Partial<SimSubscriptionConfig> = {}): SimSubscriptionConfig {
13 return {
14 eventType: 'execution_error',
15 workflowIds: [],
16 consecutiveFailures: 3,
17 failureRatePercent: 50,
18 windowHours: 24,
19 durationThresholdMs: 30000,
20 latencySpikePercent: 100,
21 costThresholdCredits: 200,
22 errorCountThreshold: 10,
23 inactivityHours: 24,
24 ...overrides,
25 }
26}
27
28function makeContext(overrides: Partial<ExecutionEventContext> = {}): ExecutionEventContext {
29 return {

Callers 1

rules.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected