diff options
| author | Elizabeth Hunt <elizabeth@simponic.xyz> | 2024-08-01 09:15:33 -0700 |
|---|---|---|
| committer | Elizabeth Hunt <elizabeth@simponic.xyz> | 2024-08-01 09:15:33 -0700 |
| commit | 5dbd16878546886cae5b56b67de6185bfbae0d07 (patch) | |
| tree | 8dd29c83d8f56b254d964ec040be9bcea0bc108b /src/canary/testable.ts | |
| parent | ad74ff999589e0df2b60ba6e94362ed5215af312 (diff) | |
| download | mon.hatecomputers.club-5dbd16878546886cae5b56b67de6185bfbae0d07.tar.gz mon.hatecomputers.club-5dbd16878546886cae5b56b67de6185bfbae0d07.zip | |
add arg parser
Diffstat (limited to 'src/canary/testable.ts')
| -rw-r--r-- | src/canary/testable.ts | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/canary/testable.ts b/src/canary/testable.ts deleted file mode 100644 index d79aa99..0000000 --- a/src/canary/testable.ts +++ /dev/null @@ -1,24 +0,0 @@ -import type { TaskEither } from "fp-ts/lib/TaskEither"; -import type { Job } from "./job"; -import type { D } from "../util"; - -export enum TestType { - EMAIL = "email", - PING = "ping", - HEALTHCHECK = "healthcheck", - DNS = "dns", -} - -export interface Schedule { - every: D.Duration; - jitter: D.Duration; -} - -export interface Test { - name: string; - type: TestType; - job: Job; - schedule: Schedule; -} - -export type Testable<T extends Job> = (job: T) => TaskEither<Error, boolean>; |
