@tallwatch/contracts 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +36 -0
- package/dist/alerting/alert-channels.d.ts +183 -0
- package/dist/alerting/alert-channels.d.ts.map +1 -0
- package/dist/alerting/alert-channels.js +114 -0
- package/dist/alerting/alert-channels.js.map +1 -0
- package/dist/alerting/alert-dispatches.d.ts +216 -0
- package/dist/alerting/alert-dispatches.d.ts.map +1 -0
- package/dist/alerting/alert-dispatches.js +78 -0
- package/dist/alerting/alert-dispatches.js.map +1 -0
- package/dist/alerting/channel-connect.d.ts +25 -0
- package/dist/alerting/channel-connect.d.ts.map +1 -0
- package/dist/alerting/channel-connect.js +40 -0
- package/dist/alerting/channel-connect.js.map +1 -0
- package/dist/alerting/escalation-levels.d.ts +28 -0
- package/dist/alerting/escalation-levels.d.ts.map +1 -0
- package/dist/alerting/escalation-levels.js +21 -0
- package/dist/alerting/escalation-levels.js.map +1 -0
- package/dist/alerting/escalation-policies.d.ts +85 -0
- package/dist/alerting/escalation-policies.d.ts.map +1 -0
- package/dist/alerting/escalation-policies.js +36 -0
- package/dist/alerting/escalation-policies.js.map +1 -0
- package/dist/alerting/index.d.ts +10 -0
- package/dist/alerting/index.d.ts.map +1 -0
- package/dist/alerting/index.js +10 -0
- package/dist/alerting/index.js.map +1 -0
- package/dist/alerting/on-call-rotations.d.ts +40 -0
- package/dist/alerting/on-call-rotations.d.ts.map +1 -0
- package/dist/alerting/on-call-rotations.js +26 -0
- package/dist/alerting/on-call-rotations.js.map +1 -0
- package/dist/alerting/on-call.d.ts +81 -0
- package/dist/alerting/on-call.d.ts.map +1 -0
- package/dist/alerting/on-call.js +40 -0
- package/dist/alerting/on-call.js.map +1 -0
- package/dist/alerting/slack-actions.d.ts +26 -0
- package/dist/alerting/slack-actions.d.ts.map +1 -0
- package/dist/alerting/slack-actions.js +44 -0
- package/dist/alerting/slack-actions.js.map +1 -0
- package/dist/alerting/webhook-template.d.ts +10 -0
- package/dist/alerting/webhook-template.d.ts.map +1 -0
- package/dist/alerting/webhook-template.js +69 -0
- package/dist/alerting/webhook-template.js.map +1 -0
- package/dist/alerting/webhooks.d.ts +72 -0
- package/dist/alerting/webhooks.d.ts.map +1 -0
- package/dist/alerting/webhooks.js +49 -0
- package/dist/alerting/webhooks.js.map +1 -0
- package/dist/api-keys.d.ts +59 -0
- package/dist/api-keys.d.ts.map +1 -0
- package/dist/api-keys.js +31 -0
- package/dist/api-keys.js.map +1 -0
- package/dist/api-response.d.ts +21 -0
- package/dist/api-response.d.ts.map +1 -0
- package/dist/api-response.js +20 -0
- package/dist/api-response.js.map +1 -0
- package/dist/audit.d.ts +126 -0
- package/dist/audit.d.ts.map +1 -0
- package/dist/audit.js +129 -0
- package/dist/audit.js.map +1 -0
- package/dist/billing/billing-catalog.d.ts +53 -0
- package/dist/billing/billing-catalog.d.ts.map +1 -0
- package/dist/billing/billing-catalog.js +121 -0
- package/dist/billing/billing-catalog.js.map +1 -0
- package/dist/billing/billing.d.ts +129 -0
- package/dist/billing/billing.d.ts.map +1 -0
- package/dist/billing/billing.js +68 -0
- package/dist/billing/billing.js.map +1 -0
- package/dist/billing/entitlements.d.ts +90 -0
- package/dist/billing/entitlements.d.ts.map +1 -0
- package/dist/billing/entitlements.js +107 -0
- package/dist/billing/entitlements.js.map +1 -0
- package/dist/billing/index.d.ts +5 -0
- package/dist/billing/index.d.ts.map +1 -0
- package/dist/billing/index.js +5 -0
- package/dist/billing/index.js.map +1 -0
- package/dist/billing/retention.d.ts +8 -0
- package/dist/billing/retention.d.ts.map +1 -0
- package/dist/billing/retention.js +43 -0
- package/dist/billing/retention.js.map +1 -0
- package/dist/brand.d.ts +3 -0
- package/dist/brand.d.ts.map +1 -0
- package/dist/brand.js +4 -0
- package/dist/brand.js.map +1 -0
- package/dist/cli-device.d.ts +35 -0
- package/dist/cli-device.d.ts.map +1 -0
- package/dist/cli-device.js +41 -0
- package/dist/cli-device.js.map +1 -0
- package/dist/common.d.ts +63 -0
- package/dist/common.d.ts.map +1 -0
- package/dist/common.js +91 -0
- package/dist/common.js.map +1 -0
- package/dist/http-url.d.ts +4 -0
- package/dist/http-url.d.ts.map +1 -0
- package/dist/http-url.js +63 -0
- package/dist/http-url.js.map +1 -0
- package/dist/incidents/incident-projection.d.ts +16 -0
- package/dist/incidents/incident-projection.d.ts.map +1 -0
- package/dist/incidents/incident-projection.js +25 -0
- package/dist/incidents/incident-projection.js.map +1 -0
- package/dist/incidents/incident-status-posts.d.ts +15 -0
- package/dist/incidents/incident-status-posts.d.ts.map +1 -0
- package/dist/incidents/incident-status-posts.js +15 -0
- package/dist/incidents/incident-status-posts.js.map +1 -0
- package/dist/incidents/incident-timeline.d.ts +251 -0
- package/dist/incidents/incident-timeline.d.ts.map +1 -0
- package/dist/incidents/incident-timeline.js +77 -0
- package/dist/incidents/incident-timeline.js.map +1 -0
- package/dist/incidents/incidents.d.ts +628 -0
- package/dist/incidents/incidents.d.ts.map +1 -0
- package/dist/incidents/incidents.js +140 -0
- package/dist/incidents/incidents.js.map +1 -0
- package/dist/incidents/index.d.ts +5 -0
- package/dist/incidents/index.d.ts.map +1 -0
- package/dist/incidents/index.js +5 -0
- package/dist/incidents/index.js.map +1 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +17 -0
- package/dist/index.js.map +1 -0
- package/dist/maintenance.d.ts +21 -0
- package/dist/maintenance.d.ts.map +1 -0
- package/dist/maintenance.js +25 -0
- package/dist/maintenance.js.map +1 -0
- package/dist/marketing.d.ts +15 -0
- package/dist/marketing.d.ts.map +1 -0
- package/dist/marketing.js +13 -0
- package/dist/marketing.js.map +1 -0
- package/dist/monitors/availability.d.ts +50 -0
- package/dist/monitors/availability.d.ts.map +1 -0
- package/dist/monitors/availability.js +26 -0
- package/dist/monitors/availability.js.map +1 -0
- package/dist/monitors/check-observation.d.ts +70 -0
- package/dist/monitors/check-observation.d.ts.map +1 -0
- package/dist/monitors/check-observation.js +38 -0
- package/dist/monitors/check-observation.js.map +1 -0
- package/dist/monitors/index.d.ts +12 -0
- package/dist/monitors/index.d.ts.map +1 -0
- package/dist/monitors/index.js +12 -0
- package/dist/monitors/index.js.map +1 -0
- package/dist/monitors/monitor-configs.d.ts +239 -0
- package/dist/monitors/monitor-configs.d.ts.map +1 -0
- package/dist/monitors/monitor-configs.js +135 -0
- package/dist/monitors/monitor-configs.js.map +1 -0
- package/dist/monitors/monitor-list-item.d.ts +30 -0
- package/dist/monitors/monitor-list-item.d.ts.map +1 -0
- package/dist/monitors/monitor-list-item.js +16 -0
- package/dist/monitors/monitor-list-item.js.map +1 -0
- package/dist/monitors/monitor-target.d.ts +3 -0
- package/dist/monitors/monitor-target.d.ts.map +1 -0
- package/dist/monitors/monitor-target.js +17 -0
- package/dist/monitors/monitor-target.js.map +1 -0
- package/dist/monitors/monitor-view.d.ts +48 -0
- package/dist/monitors/monitor-view.d.ts.map +1 -0
- package/dist/monitors/monitor-view.js +20 -0
- package/dist/monitors/monitor-view.js.map +1 -0
- package/dist/monitors/monitors-crud.d.ts +275 -0
- package/dist/monitors/monitors-crud.d.ts.map +1 -0
- package/dist/monitors/monitors-crud.js +126 -0
- package/dist/monitors/monitors-crud.js.map +1 -0
- package/dist/monitors/monitors.d.ts +153 -0
- package/dist/monitors/monitors.d.ts.map +1 -0
- package/dist/monitors/monitors.js +35 -0
- package/dist/monitors/monitors.js.map +1 -0
- package/dist/monitors/probes.d.ts +313 -0
- package/dist/monitors/probes.d.ts.map +1 -0
- package/dist/monitors/probes.js +67 -0
- package/dist/monitors/probes.js.map +1 -0
- package/dist/monitors/rollups.d.ts +111 -0
- package/dist/monitors/rollups.d.ts.map +1 -0
- package/dist/monitors/rollups.js +39 -0
- package/dist/monitors/rollups.js.map +1 -0
- package/dist/monitors/test-check.d.ts +69 -0
- package/dist/monitors/test-check.d.ts.map +1 -0
- package/dist/monitors/test-check.js +11 -0
- package/dist/monitors/test-check.js.map +1 -0
- package/dist/pagination.d.ts +36 -0
- package/dist/pagination.d.ts.map +1 -0
- package/dist/pagination.js +27 -0
- package/dist/pagination.js.map +1 -0
- package/dist/projects.d.ts +45 -0
- package/dist/projects.d.ts.map +1 -0
- package/dist/projects.js +23 -0
- package/dist/projects.js.map +1 -0
- package/dist/status-pages/index.d.ts +7 -0
- package/dist/status-pages/index.d.ts.map +1 -0
- package/dist/status-pages/index.js +7 -0
- package/dist/status-pages/index.js.map +1 -0
- package/dist/status-pages/public-status-page.d.ts +453 -0
- package/dist/status-pages/public-status-page.d.ts.map +1 -0
- package/dist/status-pages/public-status-page.js +93 -0
- package/dist/status-pages/public-status-page.js.map +1 -0
- package/dist/status-pages/slug-host.d.ts +3 -0
- package/dist/status-pages/slug-host.d.ts.map +1 -0
- package/dist/status-pages/slug-host.js +12 -0
- package/dist/status-pages/slug-host.js.map +1 -0
- package/dist/status-pages/status-overall.d.ts +20 -0
- package/dist/status-pages/status-overall.d.ts.map +1 -0
- package/dist/status-pages/status-overall.js +42 -0
- package/dist/status-pages/status-overall.js.map +1 -0
- package/dist/status-pages/status-page-config.d.ts +215 -0
- package/dist/status-pages/status-page-config.d.ts.map +1 -0
- package/dist/status-pages/status-page-config.js +124 -0
- package/dist/status-pages/status-page-config.js.map +1 -0
- package/dist/status-pages/status-page-incidents.d.ts +132 -0
- package/dist/status-pages/status-page-incidents.d.ts.map +1 -0
- package/dist/status-pages/status-page-incidents.js +66 -0
- package/dist/status-pages/status-page-incidents.js.map +1 -0
- package/dist/status-pages/status-page-subscribers.d.ts +62 -0
- package/dist/status-pages/status-page-subscribers.d.ts.map +1 -0
- package/dist/status-pages/status-page-subscribers.js +30 -0
- package/dist/status-pages/status-page-subscribers.js.map +1 -0
- package/package.json +127 -0
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const PROBER_FLOOR_SEC = 60;
|
|
3
|
+
export declare function consensusFitsCadence(m: number, windowSec: number, intervalSec: number): boolean;
|
|
4
|
+
export declare function consensusQuorumFitsRegions(k: number, regionCount: number): boolean;
|
|
5
|
+
export declare const MIN_CONSENSUS_REGIONS = 3;
|
|
6
|
+
export declare const CreateMonitorSchema: z.ZodObject<{
|
|
7
|
+
type: z.ZodEnum<{
|
|
8
|
+
http: "http";
|
|
9
|
+
tcp: "tcp";
|
|
10
|
+
ping: "ping";
|
|
11
|
+
dns: "dns";
|
|
12
|
+
ssl: "ssl";
|
|
13
|
+
keyword: "keyword";
|
|
14
|
+
heartbeat: "heartbeat";
|
|
15
|
+
}>;
|
|
16
|
+
name: z.ZodString;
|
|
17
|
+
config: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
18
|
+
kind: z.ZodLiteral<"http">;
|
|
19
|
+
url: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
20
|
+
method: z.ZodDefault<z.ZodEnum<{
|
|
21
|
+
GET: "GET";
|
|
22
|
+
HEAD: "HEAD";
|
|
23
|
+
POST: "POST";
|
|
24
|
+
PUT: "PUT";
|
|
25
|
+
PATCH: "PATCH";
|
|
26
|
+
DELETE: "DELETE";
|
|
27
|
+
OPTIONS: "OPTIONS";
|
|
28
|
+
}>>;
|
|
29
|
+
expected_status: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
30
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
31
|
+
body: z.ZodOptional<z.ZodString>;
|
|
32
|
+
follow_redirects: z.ZodDefault<z.ZodBoolean>;
|
|
33
|
+
timeout_ms: z.ZodDefault<z.ZodNumber>;
|
|
34
|
+
origin_url: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
|
|
35
|
+
assertions: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
36
|
+
kind: z.ZodLiteral<"response_time_ms">;
|
|
37
|
+
max: z.ZodNumber;
|
|
38
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
39
|
+
kind: z.ZodLiteral<"body_contains">;
|
|
40
|
+
needle: z.ZodString;
|
|
41
|
+
case_sensitive: z.ZodDefault<z.ZodBoolean>;
|
|
42
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
43
|
+
kind: z.ZodLiteral<"body_not_contains">;
|
|
44
|
+
needle: z.ZodString;
|
|
45
|
+
case_sensitive: z.ZodDefault<z.ZodBoolean>;
|
|
46
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
47
|
+
kind: z.ZodLiteral<"body_regex">;
|
|
48
|
+
pattern: z.ZodString;
|
|
49
|
+
flags: z.ZodOptional<z.ZodString>;
|
|
50
|
+
must_match: z.ZodDefault<z.ZodBoolean>;
|
|
51
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
52
|
+
kind: z.ZodLiteral<"json_path">;
|
|
53
|
+
path: z.ZodString;
|
|
54
|
+
equals: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>;
|
|
55
|
+
matches_regex: z.ZodOptional<z.ZodString>;
|
|
56
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
57
|
+
kind: z.ZodLiteral<"header">;
|
|
58
|
+
name: z.ZodString;
|
|
59
|
+
equals: z.ZodOptional<z.ZodString>;
|
|
60
|
+
matches_regex: z.ZodOptional<z.ZodString>;
|
|
61
|
+
}, z.core.$strip>], "kind">>>;
|
|
62
|
+
degraded_after_ms: z.ZodOptional<z.ZodNumber>;
|
|
63
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
64
|
+
kind: z.ZodLiteral<"tcp">;
|
|
65
|
+
host: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
66
|
+
port: z.ZodNumber;
|
|
67
|
+
timeout_ms: z.ZodDefault<z.ZodNumber>;
|
|
68
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
69
|
+
kind: z.ZodLiteral<"ping">;
|
|
70
|
+
host: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
71
|
+
packets: z.ZodDefault<z.ZodNumber>;
|
|
72
|
+
timeout_ms: z.ZodDefault<z.ZodNumber>;
|
|
73
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
74
|
+
kind: z.ZodLiteral<"dns">;
|
|
75
|
+
hostname: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
76
|
+
record_type: z.ZodEnum<{
|
|
77
|
+
A: "A";
|
|
78
|
+
AAAA: "AAAA";
|
|
79
|
+
CNAME: "CNAME";
|
|
80
|
+
MX: "MX";
|
|
81
|
+
TXT: "TXT";
|
|
82
|
+
}>;
|
|
83
|
+
expected: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
84
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
85
|
+
kind: z.ZodLiteral<"ssl">;
|
|
86
|
+
host: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
87
|
+
port: z.ZodDefault<z.ZodNumber>;
|
|
88
|
+
warn_days_before: z.ZodDefault<z.ZodNumber>;
|
|
89
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
90
|
+
kind: z.ZodLiteral<"keyword">;
|
|
91
|
+
url: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
92
|
+
keyword: z.ZodString;
|
|
93
|
+
should_contain: z.ZodDefault<z.ZodBoolean>;
|
|
94
|
+
case_sensitive: z.ZodDefault<z.ZodBoolean>;
|
|
95
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
96
|
+
kind: z.ZodLiteral<"heartbeat">;
|
|
97
|
+
expected_interval_sec: z.ZodNumber;
|
|
98
|
+
grace_period_sec: z.ZodDefault<z.ZodNumber>;
|
|
99
|
+
}, z.core.$strip>], "kind">;
|
|
100
|
+
regions: z.ZodArray<z.ZodEnum<{
|
|
101
|
+
fra1: "fra1";
|
|
102
|
+
iad1: "iad1";
|
|
103
|
+
hil1: "hil1";
|
|
104
|
+
sgp1: "sgp1";
|
|
105
|
+
syd1: "syd1";
|
|
106
|
+
gru1: "gru1";
|
|
107
|
+
}>>;
|
|
108
|
+
interval_sec: z.ZodNumber;
|
|
109
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
110
|
+
project_id: z.ZodOptional<z.ZodString>;
|
|
111
|
+
consensus: z.ZodOptional<z.ZodObject<{
|
|
112
|
+
m: z.ZodDefault<z.ZodNumber>;
|
|
113
|
+
k: z.ZodDefault<z.ZodNumber>;
|
|
114
|
+
window_sec: z.ZodDefault<z.ZodNumber>;
|
|
115
|
+
}, z.core.$strip>>;
|
|
116
|
+
escalation_policy_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
117
|
+
depends_on_monitor_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
118
|
+
}, z.core.$strip>;
|
|
119
|
+
export type CreateMonitor = z.infer<typeof CreateMonitorSchema>;
|
|
120
|
+
export declare const UpdateMonitorSchema: z.ZodObject<{
|
|
121
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
122
|
+
http: "http";
|
|
123
|
+
tcp: "tcp";
|
|
124
|
+
ping: "ping";
|
|
125
|
+
dns: "dns";
|
|
126
|
+
ssl: "ssl";
|
|
127
|
+
keyword: "keyword";
|
|
128
|
+
heartbeat: "heartbeat";
|
|
129
|
+
}>>;
|
|
130
|
+
name: z.ZodOptional<z.ZodString>;
|
|
131
|
+
config: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
132
|
+
kind: z.ZodLiteral<"http">;
|
|
133
|
+
url: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
134
|
+
method: z.ZodDefault<z.ZodEnum<{
|
|
135
|
+
GET: "GET";
|
|
136
|
+
HEAD: "HEAD";
|
|
137
|
+
POST: "POST";
|
|
138
|
+
PUT: "PUT";
|
|
139
|
+
PATCH: "PATCH";
|
|
140
|
+
DELETE: "DELETE";
|
|
141
|
+
OPTIONS: "OPTIONS";
|
|
142
|
+
}>>;
|
|
143
|
+
expected_status: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
144
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
145
|
+
body: z.ZodOptional<z.ZodString>;
|
|
146
|
+
follow_redirects: z.ZodDefault<z.ZodBoolean>;
|
|
147
|
+
timeout_ms: z.ZodDefault<z.ZodNumber>;
|
|
148
|
+
origin_url: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
|
|
149
|
+
assertions: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
150
|
+
kind: z.ZodLiteral<"response_time_ms">;
|
|
151
|
+
max: z.ZodNumber;
|
|
152
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
153
|
+
kind: z.ZodLiteral<"body_contains">;
|
|
154
|
+
needle: z.ZodString;
|
|
155
|
+
case_sensitive: z.ZodDefault<z.ZodBoolean>;
|
|
156
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
157
|
+
kind: z.ZodLiteral<"body_not_contains">;
|
|
158
|
+
needle: z.ZodString;
|
|
159
|
+
case_sensitive: z.ZodDefault<z.ZodBoolean>;
|
|
160
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
161
|
+
kind: z.ZodLiteral<"body_regex">;
|
|
162
|
+
pattern: z.ZodString;
|
|
163
|
+
flags: z.ZodOptional<z.ZodString>;
|
|
164
|
+
must_match: z.ZodDefault<z.ZodBoolean>;
|
|
165
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
166
|
+
kind: z.ZodLiteral<"json_path">;
|
|
167
|
+
path: z.ZodString;
|
|
168
|
+
equals: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>;
|
|
169
|
+
matches_regex: z.ZodOptional<z.ZodString>;
|
|
170
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
171
|
+
kind: z.ZodLiteral<"header">;
|
|
172
|
+
name: z.ZodString;
|
|
173
|
+
equals: z.ZodOptional<z.ZodString>;
|
|
174
|
+
matches_regex: z.ZodOptional<z.ZodString>;
|
|
175
|
+
}, z.core.$strip>], "kind">>>;
|
|
176
|
+
degraded_after_ms: z.ZodOptional<z.ZodNumber>;
|
|
177
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
178
|
+
kind: z.ZodLiteral<"tcp">;
|
|
179
|
+
host: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
180
|
+
port: z.ZodNumber;
|
|
181
|
+
timeout_ms: z.ZodDefault<z.ZodNumber>;
|
|
182
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
183
|
+
kind: z.ZodLiteral<"ping">;
|
|
184
|
+
host: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
185
|
+
packets: z.ZodDefault<z.ZodNumber>;
|
|
186
|
+
timeout_ms: z.ZodDefault<z.ZodNumber>;
|
|
187
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
188
|
+
kind: z.ZodLiteral<"dns">;
|
|
189
|
+
hostname: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
190
|
+
record_type: z.ZodEnum<{
|
|
191
|
+
A: "A";
|
|
192
|
+
AAAA: "AAAA";
|
|
193
|
+
CNAME: "CNAME";
|
|
194
|
+
MX: "MX";
|
|
195
|
+
TXT: "TXT";
|
|
196
|
+
}>;
|
|
197
|
+
expected: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
198
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
199
|
+
kind: z.ZodLiteral<"ssl">;
|
|
200
|
+
host: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
201
|
+
port: z.ZodDefault<z.ZodNumber>;
|
|
202
|
+
warn_days_before: z.ZodDefault<z.ZodNumber>;
|
|
203
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
204
|
+
kind: z.ZodLiteral<"keyword">;
|
|
205
|
+
url: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
206
|
+
keyword: z.ZodString;
|
|
207
|
+
should_contain: z.ZodDefault<z.ZodBoolean>;
|
|
208
|
+
case_sensitive: z.ZodDefault<z.ZodBoolean>;
|
|
209
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
210
|
+
kind: z.ZodLiteral<"heartbeat">;
|
|
211
|
+
expected_interval_sec: z.ZodNumber;
|
|
212
|
+
grace_period_sec: z.ZodDefault<z.ZodNumber>;
|
|
213
|
+
}, z.core.$strip>], "kind">>;
|
|
214
|
+
regions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
215
|
+
fra1: "fra1";
|
|
216
|
+
iad1: "iad1";
|
|
217
|
+
hil1: "hil1";
|
|
218
|
+
sgp1: "sgp1";
|
|
219
|
+
syd1: "syd1";
|
|
220
|
+
gru1: "gru1";
|
|
221
|
+
}>>>;
|
|
222
|
+
interval_sec: z.ZodOptional<z.ZodNumber>;
|
|
223
|
+
tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
224
|
+
project_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
225
|
+
consensus: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
226
|
+
m: z.ZodDefault<z.ZodNumber>;
|
|
227
|
+
k: z.ZodDefault<z.ZodNumber>;
|
|
228
|
+
window_sec: z.ZodDefault<z.ZodNumber>;
|
|
229
|
+
}, z.core.$strip>>>;
|
|
230
|
+
escalation_policy_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
231
|
+
depends_on_monitor_ids: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
232
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
233
|
+
active: "active";
|
|
234
|
+
paused: "paused";
|
|
235
|
+
}>>;
|
|
236
|
+
}, z.core.$strip>;
|
|
237
|
+
export type UpdateMonitor = z.infer<typeof UpdateMonitorSchema>;
|
|
238
|
+
export declare const ListMonitorsQuerySchema: z.ZodObject<{
|
|
239
|
+
project_id: z.ZodOptional<z.ZodString>;
|
|
240
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
241
|
+
active: "active";
|
|
242
|
+
paused: "paused";
|
|
243
|
+
}>>;
|
|
244
|
+
current_state: z.ZodOptional<z.ZodEnum<{
|
|
245
|
+
unknown: "unknown";
|
|
246
|
+
down: "down";
|
|
247
|
+
up: "up";
|
|
248
|
+
degraded: "degraded";
|
|
249
|
+
}>>;
|
|
250
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
251
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
252
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
253
|
+
}, z.core.$strip>;
|
|
254
|
+
export type ListMonitorsQuery = z.infer<typeof ListMonitorsQuerySchema>;
|
|
255
|
+
export declare const BulkMonitorActionSchema: z.ZodEnum<{
|
|
256
|
+
pause: "pause";
|
|
257
|
+
resume: "resume";
|
|
258
|
+
delete: "delete";
|
|
259
|
+
}>;
|
|
260
|
+
export type BulkMonitorAction = z.infer<typeof BulkMonitorActionSchema>;
|
|
261
|
+
export declare const BulkMonitorRequestSchema: z.ZodObject<{
|
|
262
|
+
action: z.ZodEnum<{
|
|
263
|
+
pause: "pause";
|
|
264
|
+
resume: "resume";
|
|
265
|
+
delete: "delete";
|
|
266
|
+
}>;
|
|
267
|
+
monitor_ids: z.ZodArray<z.ZodString>;
|
|
268
|
+
}, z.core.$strip>;
|
|
269
|
+
export type BulkMonitorRequest = z.infer<typeof BulkMonitorRequestSchema>;
|
|
270
|
+
export declare const BulkMonitorResultSchema: z.ZodObject<{
|
|
271
|
+
acted: z.ZodNumber;
|
|
272
|
+
skipped: z.ZodNumber;
|
|
273
|
+
}, z.core.$strip>;
|
|
274
|
+
export type BulkMonitorResult = z.infer<typeof BulkMonitorResultSchema>;
|
|
275
|
+
//# sourceMappingURL=monitors-crud.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"monitors-crud.d.ts","sourceRoot":"","sources":["../../src/monitors/monitors-crud.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAexB,eAAO,MAAM,gBAAgB,KAAK,CAAC;AAEnC,wBAAgB,oBAAoB,CAClC,CAAC,EAAE,MAAM,EACT,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,MAAM,GAClB,OAAO,CAGT;AA8CD,wBAAgB,0BAA0B,CACxC,CAAC,EAAE,MAAM,EACT,WAAW,EAAE,MAAM,GAClB,OAAO,CAET;AAmBD,eAAO,MAAM,qBAAqB,IAAI,CAAC;AAwCvC,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMO,CAAC;AACxC,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMO,CAAC;AACxC,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;iBAOlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,uBAAuB;;;;EAAwC,CAAC;AAC7E,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,wBAAwB;;;;;;;iBAGnC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,uBAAuB;;;iBAGlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { UuidSchema } from "../common.js";
|
|
3
|
+
import { DEFAULT_PAGE_LIMIT, MAX_PAGE_LIMIT } from "../pagination.js";
|
|
4
|
+
import { MonitorSchema, MonitorStatusSchema, MonitorStateSchema, ConsensusConfigSchema, } from "./monitors.js";
|
|
5
|
+
export const PROBER_FLOOR_SEC = 60;
|
|
6
|
+
export function consensusFitsCadence(m, windowSec, intervalSec) {
|
|
7
|
+
const cadence = Math.max(PROBER_FLOOR_SEC, intervalSec);
|
|
8
|
+
return Math.floor(windowSec / cadence) >= m;
|
|
9
|
+
}
|
|
10
|
+
// Base object (no refinement) so .partial() still works for UpdateMonitor;
|
|
11
|
+
// refinements turn a ZodObject into a ZodEffects, which lacks .partial().
|
|
12
|
+
const CreateMonitorObjectSchema = MonitorSchema.pick({
|
|
13
|
+
name: true,
|
|
14
|
+
type: true,
|
|
15
|
+
config: true,
|
|
16
|
+
regions: true,
|
|
17
|
+
interval_sec: true,
|
|
18
|
+
tags: true,
|
|
19
|
+
}).extend({
|
|
20
|
+
// Optional on the wire: the api falls back to the org's default
|
|
21
|
+
// project (every org has at least one). UI can omit it entirely.
|
|
22
|
+
project_id: UuidSchema.optional(),
|
|
23
|
+
consensus: ConsensusConfigSchema.optional(),
|
|
24
|
+
// Nullable so the edit form can clear a previously-set policy ("None"
|
|
25
|
+
// in the picker -> null -> service writes NULL into the DB column).
|
|
26
|
+
escalation_policy_id: UuidSchema.nullable().optional(),
|
|
27
|
+
depends_on_monitor_ids: z.array(UuidSchema).optional(),
|
|
28
|
+
});
|
|
29
|
+
function refineConsensusReachable(data, ctx) {
|
|
30
|
+
if (data.type === "heartbeat")
|
|
31
|
+
return;
|
|
32
|
+
if (!data.consensus || data.interval_sec === undefined)
|
|
33
|
+
return;
|
|
34
|
+
const { m, window_sec } = data.consensus;
|
|
35
|
+
if (consensusFitsCadence(m, window_sec, data.interval_sec))
|
|
36
|
+
return;
|
|
37
|
+
const cadence = Math.max(PROBER_FLOOR_SEC, data.interval_sec);
|
|
38
|
+
ctx.addIssue({
|
|
39
|
+
code: z.ZodIssueCode.custom,
|
|
40
|
+
path: ["consensus", "window_sec"],
|
|
41
|
+
message: `Consensus can never trigger: at a ~${cadence}s probe cadence only ` +
|
|
42
|
+
`${Math.floor(window_sec / cadence)} probe(s) fit in the ${window_sec}s ` +
|
|
43
|
+
`window, but m=${m} consecutive confirmations are required. Set the ` +
|
|
44
|
+
`window to at least ${m * cadence}s, or lower m.`,
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
export function consensusQuorumFitsRegions(k, regionCount) {
|
|
48
|
+
return k <= regionCount;
|
|
49
|
+
}
|
|
50
|
+
function refineQuorumFitsRegions(data, ctx) {
|
|
51
|
+
if (data.type === "heartbeat")
|
|
52
|
+
return;
|
|
53
|
+
if (data.consensus === undefined || data.regions === undefined)
|
|
54
|
+
return;
|
|
55
|
+
if (consensusQuorumFitsRegions(data.consensus.k, data.regions.length))
|
|
56
|
+
return;
|
|
57
|
+
ctx.addIssue({
|
|
58
|
+
code: z.ZodIssueCode.custom,
|
|
59
|
+
path: ["consensus", "k"],
|
|
60
|
+
message: `Consensus quorum k=${data.consensus.k} exceeds the ${data.regions.length} ` +
|
|
61
|
+
`configured region(s), so the monitor can never reach quorum and would ` +
|
|
62
|
+
`never open an incident. Set k to at most ${data.regions.length}, or add regions.`,
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
export const MIN_CONSENSUS_REGIONS = 3;
|
|
66
|
+
function refineRegionQuorum(data, ctx) {
|
|
67
|
+
if (data.type === undefined || data.regions === undefined)
|
|
68
|
+
return;
|
|
69
|
+
if (data.type === "heartbeat")
|
|
70
|
+
return;
|
|
71
|
+
if (data.regions.length >= MIN_CONSENSUS_REGIONS)
|
|
72
|
+
return;
|
|
73
|
+
ctx.addIssue({
|
|
74
|
+
code: z.ZodIssueCode.custom,
|
|
75
|
+
path: ["regions"],
|
|
76
|
+
message: `Pick at least ${MIN_CONSENSUS_REGIONS} regions so consensus survives a single degraded region.`,
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
function refineUniqueRegions(data, ctx) {
|
|
80
|
+
if (!data.regions || new Set(data.regions).size === data.regions.length)
|
|
81
|
+
return;
|
|
82
|
+
ctx.addIssue({
|
|
83
|
+
code: z.ZodIssueCode.custom,
|
|
84
|
+
path: ["regions"],
|
|
85
|
+
message: "Each monitoring region must be selected only once.",
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
function refineConfigMatchesType(data, ctx) {
|
|
89
|
+
if (!data.type || !data.config || data.type === data.config.kind)
|
|
90
|
+
return;
|
|
91
|
+
ctx.addIssue({
|
|
92
|
+
code: z.ZodIssueCode.custom,
|
|
93
|
+
path: ["config", "kind"],
|
|
94
|
+
message: `Monitor type ${data.type} requires config kind ${data.type}.`,
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
export const CreateMonitorSchema = CreateMonitorObjectSchema.superRefine(refineConsensusReachable)
|
|
98
|
+
.superRefine(refineRegionQuorum)
|
|
99
|
+
.superRefine(refineQuorumFitsRegions)
|
|
100
|
+
.superRefine(refineUniqueRegions)
|
|
101
|
+
.superRefine(refineConfigMatchesType);
|
|
102
|
+
export const UpdateMonitorSchema = CreateMonitorObjectSchema.partial()
|
|
103
|
+
.extend({ status: MonitorStatusSchema.optional() })
|
|
104
|
+
.superRefine(refineConsensusReachable)
|
|
105
|
+
.superRefine(refineRegionQuorum)
|
|
106
|
+
.superRefine(refineQuorumFitsRegions)
|
|
107
|
+
.superRefine(refineUniqueRegions)
|
|
108
|
+
.superRefine(refineConfigMatchesType);
|
|
109
|
+
export const ListMonitorsQuerySchema = z.object({
|
|
110
|
+
project_id: UuidSchema.optional(),
|
|
111
|
+
status: MonitorStatusSchema.optional(),
|
|
112
|
+
current_state: MonitorStateSchema.optional(),
|
|
113
|
+
tag: z.string().optional(),
|
|
114
|
+
cursor: z.string().optional(),
|
|
115
|
+
limit: z.number().int().min(1).max(MAX_PAGE_LIMIT).default(DEFAULT_PAGE_LIMIT),
|
|
116
|
+
});
|
|
117
|
+
export const BulkMonitorActionSchema = z.enum(["pause", "resume", "delete"]);
|
|
118
|
+
export const BulkMonitorRequestSchema = z.object({
|
|
119
|
+
action: BulkMonitorActionSchema,
|
|
120
|
+
monitor_ids: z.array(UuidSchema).min(1).max(100),
|
|
121
|
+
});
|
|
122
|
+
export const BulkMonitorResultSchema = z.object({
|
|
123
|
+
acted: z.number().int().min(0),
|
|
124
|
+
skipped: z.number().int().min(0),
|
|
125
|
+
});
|
|
126
|
+
//# sourceMappingURL=monitors-crud.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"monitors-crud.js","sourceRoot":"","sources":["../../src/monitors/monitors-crud.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,UAAU,EAAe,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAKtE,OAAO,EACL,aAAa,EACb,mBAAmB,EACnB,kBAAkB,EAClB,qBAAqB,GAEtB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AC,KAAK,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;CACjD,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC9B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CACjC,CAAC,CAAC"}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export * from "./monitor-configs.js";
|
|
3
|
+
export declare const MonitorStatusSchema: z.ZodEnum<{
|
|
4
|
+
active: "active";
|
|
5
|
+
paused: "paused";
|
|
6
|
+
}>;
|
|
7
|
+
export type MonitorStatus = z.infer<typeof MonitorStatusSchema>;
|
|
8
|
+
export declare const MonitorStateSchema: z.ZodEnum<{
|
|
9
|
+
unknown: "unknown";
|
|
10
|
+
down: "down";
|
|
11
|
+
up: "up";
|
|
12
|
+
degraded: "degraded";
|
|
13
|
+
}>;
|
|
14
|
+
export type MonitorState = z.infer<typeof MonitorStateSchema>;
|
|
15
|
+
export declare const ConsensusConfigSchema: z.ZodObject<{
|
|
16
|
+
m: z.ZodDefault<z.ZodNumber>;
|
|
17
|
+
k: z.ZodDefault<z.ZodNumber>;
|
|
18
|
+
window_sec: z.ZodDefault<z.ZodNumber>;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
export type ConsensusConfig = z.infer<typeof ConsensusConfigSchema>;
|
|
21
|
+
export declare const MonitorSchema: z.ZodObject<{
|
|
22
|
+
id: z.ZodString;
|
|
23
|
+
org_id: z.ZodString;
|
|
24
|
+
project_id: z.ZodString;
|
|
25
|
+
name: z.ZodString;
|
|
26
|
+
type: z.ZodEnum<{
|
|
27
|
+
http: "http";
|
|
28
|
+
tcp: "tcp";
|
|
29
|
+
ping: "ping";
|
|
30
|
+
dns: "dns";
|
|
31
|
+
ssl: "ssl";
|
|
32
|
+
keyword: "keyword";
|
|
33
|
+
heartbeat: "heartbeat";
|
|
34
|
+
}>;
|
|
35
|
+
status: z.ZodEnum<{
|
|
36
|
+
active: "active";
|
|
37
|
+
paused: "paused";
|
|
38
|
+
}>;
|
|
39
|
+
config: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
40
|
+
kind: z.ZodLiteral<"http">;
|
|
41
|
+
url: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
42
|
+
method: z.ZodDefault<z.ZodEnum<{
|
|
43
|
+
GET: "GET";
|
|
44
|
+
HEAD: "HEAD";
|
|
45
|
+
POST: "POST";
|
|
46
|
+
PUT: "PUT";
|
|
47
|
+
PATCH: "PATCH";
|
|
48
|
+
DELETE: "DELETE";
|
|
49
|
+
OPTIONS: "OPTIONS";
|
|
50
|
+
}>>;
|
|
51
|
+
expected_status: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
52
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
53
|
+
body: z.ZodOptional<z.ZodString>;
|
|
54
|
+
follow_redirects: z.ZodDefault<z.ZodBoolean>;
|
|
55
|
+
timeout_ms: z.ZodDefault<z.ZodNumber>;
|
|
56
|
+
origin_url: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
|
|
57
|
+
assertions: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
58
|
+
kind: z.ZodLiteral<"response_time_ms">;
|
|
59
|
+
max: z.ZodNumber;
|
|
60
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
61
|
+
kind: z.ZodLiteral<"body_contains">;
|
|
62
|
+
needle: z.ZodString;
|
|
63
|
+
case_sensitive: z.ZodDefault<z.ZodBoolean>;
|
|
64
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
65
|
+
kind: z.ZodLiteral<"body_not_contains">;
|
|
66
|
+
needle: z.ZodString;
|
|
67
|
+
case_sensitive: z.ZodDefault<z.ZodBoolean>;
|
|
68
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
69
|
+
kind: z.ZodLiteral<"body_regex">;
|
|
70
|
+
pattern: z.ZodString;
|
|
71
|
+
flags: z.ZodOptional<z.ZodString>;
|
|
72
|
+
must_match: z.ZodDefault<z.ZodBoolean>;
|
|
73
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
74
|
+
kind: z.ZodLiteral<"json_path">;
|
|
75
|
+
path: z.ZodString;
|
|
76
|
+
equals: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>;
|
|
77
|
+
matches_regex: z.ZodOptional<z.ZodString>;
|
|
78
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
79
|
+
kind: z.ZodLiteral<"header">;
|
|
80
|
+
name: z.ZodString;
|
|
81
|
+
equals: z.ZodOptional<z.ZodString>;
|
|
82
|
+
matches_regex: z.ZodOptional<z.ZodString>;
|
|
83
|
+
}, z.core.$strip>], "kind">>>;
|
|
84
|
+
degraded_after_ms: z.ZodOptional<z.ZodNumber>;
|
|
85
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
86
|
+
kind: z.ZodLiteral<"tcp">;
|
|
87
|
+
host: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
88
|
+
port: z.ZodNumber;
|
|
89
|
+
timeout_ms: z.ZodDefault<z.ZodNumber>;
|
|
90
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
91
|
+
kind: z.ZodLiteral<"ping">;
|
|
92
|
+
host: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
93
|
+
packets: z.ZodDefault<z.ZodNumber>;
|
|
94
|
+
timeout_ms: z.ZodDefault<z.ZodNumber>;
|
|
95
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
96
|
+
kind: z.ZodLiteral<"dns">;
|
|
97
|
+
hostname: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
98
|
+
record_type: z.ZodEnum<{
|
|
99
|
+
A: "A";
|
|
100
|
+
AAAA: "AAAA";
|
|
101
|
+
CNAME: "CNAME";
|
|
102
|
+
MX: "MX";
|
|
103
|
+
TXT: "TXT";
|
|
104
|
+
}>;
|
|
105
|
+
expected: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
106
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
107
|
+
kind: z.ZodLiteral<"ssl">;
|
|
108
|
+
host: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
109
|
+
port: z.ZodDefault<z.ZodNumber>;
|
|
110
|
+
warn_days_before: z.ZodDefault<z.ZodNumber>;
|
|
111
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
112
|
+
kind: z.ZodLiteral<"keyword">;
|
|
113
|
+
url: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
114
|
+
keyword: z.ZodString;
|
|
115
|
+
should_contain: z.ZodDefault<z.ZodBoolean>;
|
|
116
|
+
case_sensitive: z.ZodDefault<z.ZodBoolean>;
|
|
117
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
118
|
+
kind: z.ZodLiteral<"heartbeat">;
|
|
119
|
+
expected_interval_sec: z.ZodNumber;
|
|
120
|
+
grace_period_sec: z.ZodDefault<z.ZodNumber>;
|
|
121
|
+
}, z.core.$strip>], "kind">;
|
|
122
|
+
regions: z.ZodArray<z.ZodEnum<{
|
|
123
|
+
fra1: "fra1";
|
|
124
|
+
iad1: "iad1";
|
|
125
|
+
hil1: "hil1";
|
|
126
|
+
sgp1: "sgp1";
|
|
127
|
+
syd1: "syd1";
|
|
128
|
+
gru1: "gru1";
|
|
129
|
+
}>>;
|
|
130
|
+
interval_sec: z.ZodNumber;
|
|
131
|
+
consensus: z.ZodObject<{
|
|
132
|
+
m: z.ZodDefault<z.ZodNumber>;
|
|
133
|
+
k: z.ZodDefault<z.ZodNumber>;
|
|
134
|
+
window_sec: z.ZodDefault<z.ZodNumber>;
|
|
135
|
+
}, z.core.$strip>;
|
|
136
|
+
escalation_policy_id: z.ZodNullable<z.ZodString>;
|
|
137
|
+
depends_on_monitor_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
138
|
+
next_check_at: z.ZodString;
|
|
139
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
140
|
+
current_state: z.ZodEnum<{
|
|
141
|
+
unknown: "unknown";
|
|
142
|
+
down: "down";
|
|
143
|
+
up: "up";
|
|
144
|
+
degraded: "degraded";
|
|
145
|
+
}>;
|
|
146
|
+
current_state_since: z.ZodString;
|
|
147
|
+
heartbeat_token: z.ZodNullable<z.ZodString>;
|
|
148
|
+
last_heartbeat_at: z.ZodNullable<z.ZodString>;
|
|
149
|
+
created_at: z.ZodString;
|
|
150
|
+
updated_at: z.ZodString;
|
|
151
|
+
}, z.core.$strip>;
|
|
152
|
+
export type Monitor = z.infer<typeof MonitorSchema>;
|
|
153
|
+
//# sourceMappingURL=monitors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"monitors.d.ts","sourceRoot":"","sources":["../../src/monitors/monitors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB,cAAc,sBAAsB,CAAC;AAErC,eAAO,MAAM,mBAAmB;;;EAA+B,CAAC;AAChE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAGhE,eAAO,MAAM,kBAAkB;;;;;EAAgD,CAAC;AAChF,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,qBAAqB;;;;iBAIhC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAqBxB,CAAC;AACH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { RegionSchema, UuidSchema, IsoTimestampSchema, } from "../common.js";
|
|
3
|
+
import { MonitorTypeSchema, MonitorConfigSchema, } from "./monitor-configs.js";
|
|
4
|
+
export * from "./monitor-configs.js";
|
|
5
|
+
export const MonitorStatusSchema = z.enum(["active", "paused"]);
|
|
6
|
+
// `degraded` is dashboard-only; the public status page maps it to operational.
|
|
7
|
+
export const MonitorStateSchema = z.enum(["up", "down", "unknown", "degraded"]);
|
|
8
|
+
export const ConsensusConfigSchema = z.object({
|
|
9
|
+
m: z.number().int().min(1).max(10).default(1),
|
|
10
|
+
k: z.number().int().min(1).max(10).default(2),
|
|
11
|
+
window_sec: z.number().int().min(60).max(900).default(120),
|
|
12
|
+
});
|
|
13
|
+
export const MonitorSchema = z.object({
|
|
14
|
+
id: UuidSchema,
|
|
15
|
+
org_id: UuidSchema,
|
|
16
|
+
project_id: UuidSchema,
|
|
17
|
+
name: z.string().min(1).max(200),
|
|
18
|
+
type: MonitorTypeSchema,
|
|
19
|
+
status: MonitorStatusSchema,
|
|
20
|
+
config: MonitorConfigSchema,
|
|
21
|
+
regions: z.array(RegionSchema).min(1).max(10),
|
|
22
|
+
interval_sec: z.number().int().min(30).max(86_400),
|
|
23
|
+
consensus: ConsensusConfigSchema,
|
|
24
|
+
escalation_policy_id: UuidSchema.nullable(),
|
|
25
|
+
depends_on_monitor_ids: z.array(UuidSchema).default([]),
|
|
26
|
+
next_check_at: IsoTimestampSchema,
|
|
27
|
+
tags: z.array(z.string()).default([]),
|
|
28
|
+
current_state: MonitorStateSchema,
|
|
29
|
+
current_state_since: IsoTimestampSchema,
|
|
30
|
+
heartbeat_token: UuidSchema.nullable(),
|
|
31
|
+
last_heartbeat_at: IsoTimestampSchema.nullable(),
|
|
32
|
+
created_at: IsoTimestampSchema,
|
|
33
|
+
updated_at: IsoTimestampSchema,
|
|
34
|
+
});
|
|
35
|
+
//# sourceMappingURL=monitors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"monitors.js","sourceRoot":"","sources":["../../src/monitors/monitors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,YAAY,EACZ,UAAU,EACV,kBAAkB,GACnB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,iBAAiB,EACjB,mBAAmB,GACpB,MAAM,sBAAsB,CAAC;AAE9B,cAAc,sBAAsB,CAAC;AAErC,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC;AAGhE,+EAA+E;AAC/E,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC,CAAC;AAGhF,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC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