blob: 61af8761b37490a50d3edbf2692cc16522ae8b97 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
import { D } from "../util";
export interface PingJob {
hosts: string[];
}
export interface Retry {
retries: number;
interval: D.Duration;
}
export interface HealthCheckJob {
healthcheck_routes: string[];
}
export interface DnsJob {
resolutions: { [key: string]: string };
}
export interface EmailInstruction {
email: string;
username: string;
password: string;
server: string;
}
export interface EmailFromInstruction extends EmailInstruction {
send_port: number;
}
export interface EmailToInstruction extends EmailInstruction {
read_port: number;
}
export interface EmailJob {
from: EmailFromInstruction;
to: EmailToInstruction;
readRetry: Retry;
}
export type Job = EmailJob | PingJob | HealthCheckJob | DnsJob;
|