@marinoscar/platform-contract 0.1.0-next.19 → 0.1.0-next.21
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/CHANGELOG.md +10 -0
- package/README.md +4 -0
- package/dist/cjs/alerts/constants.d.ts +195 -0
- package/dist/cjs/alerts/constants.d.ts.map +1 -0
- package/dist/cjs/alerts/constants.js +165 -0
- package/dist/cjs/alerts/constants.js.map +1 -0
- package/dist/cjs/alerts/enum.d.ts +5 -0
- package/dist/cjs/alerts/enum.d.ts.map +1 -0
- package/dist/cjs/alerts/enum.js +9 -0
- package/dist/cjs/alerts/enum.js.map +1 -0
- package/dist/cjs/alerts/index.d.ts +5 -0
- package/dist/cjs/alerts/index.d.ts.map +1 -0
- package/dist/cjs/alerts/index.js +68 -0
- package/dist/cjs/alerts/index.js.map +1 -0
- package/dist/cjs/alerts/schemas.d.ts +351 -0
- package/dist/cjs/alerts/schemas.d.ts.map +1 -0
- package/dist/cjs/alerts/schemas.js +432 -0
- package/dist/cjs/alerts/schemas.js.map +1 -0
- package/dist/cjs/nodes/admin-schemas.d.ts +85 -1
- package/dist/cjs/nodes/admin-schemas.d.ts.map +1 -1
- package/dist/cjs/nodes/admin-schemas.js +55 -1
- package/dist/cjs/nodes/admin-schemas.js.map +1 -1
- package/dist/cjs/nodes/constants.d.ts +12 -0
- package/dist/cjs/nodes/constants.d.ts.map +1 -1
- package/dist/cjs/nodes/constants.js +13 -1
- package/dist/cjs/nodes/constants.js.map +1 -1
- package/dist/cjs/nodes/index.d.ts +5 -5
- package/dist/cjs/nodes/index.d.ts.map +1 -1
- package/dist/cjs/nodes/index.js +14 -1
- package/dist/cjs/nodes/index.js.map +1 -1
- package/dist/cjs/nodes/schemas.d.ts +178 -0
- package/dist/cjs/nodes/schemas.d.ts.map +1 -1
- package/dist/cjs/nodes/schemas.js +149 -1
- package/dist/cjs/nodes/schemas.js.map +1 -1
- package/dist/cjs/telemetry/constants.d.ts.map +1 -1
- package/dist/cjs/telemetry/constants.js +6 -0
- package/dist/cjs/telemetry/constants.js.map +1 -1
- package/dist/cjs/telemetry/dashboard.d.ts +5 -5
- package/dist/cjs/telemetry/presentation.d.ts +5 -5
- package/dist/cjs/telemetry/stack.d.ts +2 -2
- package/dist/cjs/webhooks/constants.d.ts +154 -0
- package/dist/cjs/webhooks/constants.d.ts.map +1 -0
- package/dist/cjs/webhooks/constants.js +136 -0
- package/dist/cjs/webhooks/constants.js.map +1 -0
- package/dist/cjs/webhooks/enum.d.ts +5 -0
- package/dist/cjs/webhooks/enum.d.ts.map +1 -0
- package/dist/cjs/webhooks/enum.js +9 -0
- package/dist/cjs/webhooks/enum.js.map +1 -0
- package/dist/cjs/webhooks/index.d.ts +7 -0
- package/dist/cjs/webhooks/index.d.ts.map +1 -0
- package/dist/cjs/webhooks/index.js +48 -0
- package/dist/cjs/webhooks/index.js.map +1 -0
- package/dist/cjs/webhooks/schemas.d.ts +288 -0
- package/dist/cjs/webhooks/schemas.d.ts.map +1 -0
- package/dist/cjs/webhooks/schemas.js +295 -0
- package/dist/cjs/webhooks/schemas.js.map +1 -0
- package/dist/cjs/webhooks/signature.d.ts +54 -0
- package/dist/cjs/webhooks/signature.d.ts.map +1 -0
- package/dist/cjs/webhooks/signature.js +97 -0
- package/dist/cjs/webhooks/signature.js.map +1 -0
- package/dist/esm/alerts/constants.d.ts +195 -0
- package/dist/esm/alerts/constants.d.ts.map +1 -0
- package/dist/esm/alerts/constants.js +162 -0
- package/dist/esm/alerts/constants.js.map +1 -0
- package/dist/esm/alerts/enum.d.ts +5 -0
- package/dist/esm/alerts/enum.d.ts.map +1 -0
- package/dist/esm/alerts/enum.js +6 -0
- package/dist/esm/alerts/enum.js.map +1 -0
- package/dist/esm/alerts/index.d.ts +5 -0
- package/dist/esm/alerts/index.d.ts.map +1 -0
- package/dist/esm/alerts/index.js +8 -0
- package/dist/esm/alerts/index.js.map +1 -0
- package/dist/esm/alerts/schemas.d.ts +351 -0
- package/dist/esm/alerts/schemas.d.ts.map +1 -0
- package/dist/esm/alerts/schemas.js +429 -0
- package/dist/esm/alerts/schemas.js.map +1 -0
- package/dist/esm/nodes/admin-schemas.d.ts +85 -1
- package/dist/esm/nodes/admin-schemas.d.ts.map +1 -1
- package/dist/esm/nodes/admin-schemas.js +55 -1
- package/dist/esm/nodes/admin-schemas.js.map +1 -1
- package/dist/esm/nodes/constants.d.ts +12 -0
- package/dist/esm/nodes/constants.d.ts.map +1 -1
- package/dist/esm/nodes/constants.js +12 -0
- package/dist/esm/nodes/constants.js.map +1 -1
- package/dist/esm/nodes/index.d.ts +5 -5
- package/dist/esm/nodes/index.d.ts.map +1 -1
- package/dist/esm/nodes/index.js +3 -3
- package/dist/esm/nodes/index.js.map +1 -1
- package/dist/esm/nodes/schemas.d.ts +178 -0
- package/dist/esm/nodes/schemas.d.ts.map +1 -1
- package/dist/esm/nodes/schemas.js +149 -1
- package/dist/esm/nodes/schemas.js.map +1 -1
- package/dist/esm/telemetry/constants.d.ts.map +1 -1
- package/dist/esm/telemetry/constants.js +6 -0
- package/dist/esm/telemetry/constants.js.map +1 -1
- package/dist/esm/telemetry/dashboard.d.ts +5 -5
- package/dist/esm/telemetry/presentation.d.ts +5 -5
- package/dist/esm/telemetry/stack.d.ts +2 -2
- package/dist/esm/webhooks/constants.d.ts +154 -0
- package/dist/esm/webhooks/constants.d.ts.map +1 -0
- package/dist/esm/webhooks/constants.js +133 -0
- package/dist/esm/webhooks/constants.js.map +1 -0
- package/dist/esm/webhooks/enum.d.ts +5 -0
- package/dist/esm/webhooks/enum.d.ts.map +1 -0
- package/dist/esm/webhooks/enum.js +6 -0
- package/dist/esm/webhooks/enum.js.map +1 -0
- package/dist/esm/webhooks/index.d.ts +7 -0
- package/dist/esm/webhooks/index.d.ts.map +1 -0
- package/dist/esm/webhooks/index.js +8 -0
- package/dist/esm/webhooks/index.js.map +1 -0
- package/dist/esm/webhooks/schemas.d.ts +288 -0
- package/dist/esm/webhooks/schemas.d.ts.map +1 -0
- package/dist/esm/webhooks/schemas.js +292 -0
- package/dist/esm/webhooks/schemas.js.map +1 -0
- package/dist/esm/webhooks/signature.d.ts +54 -0
- package/dist/esm/webhooks/signature.d.ts.map +1 -0
- package/dist/esm/webhooks/signature.js +93 -0
- package/dist/esm/webhooks/signature.js.map +1 -0
- package/package.json +21 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @marinoscar/platform-contract
|
|
2
2
|
|
|
3
|
+
## 0.1.0-next.21
|
|
4
|
+
|
|
5
|
+
## 0.1.0-next.20
|
|
6
|
+
|
|
7
|
+
### Minor Changes
|
|
8
|
+
|
|
9
|
+
- 7b5796f: Add the `alerts` slice (#1047). `@marinoscar/platform-contract/alerts` carries the wire shapes (rules, the configs of the built-in kinds, incidents, the dry-run response, the kind catalog, the summary). `@marinoscar/platform-api/alerts` adds `AlertsModule.forRoot`, the open rule-kind registry (`registerAlertRuleKind`) with the `metric_threshold`, `node_event`, `verdict`, `node_offline` and `telemetry_unavailable` kinds, the pending/firing/resolved state machine, the `alerts.evaluate`, `alerts.evaluate_event` and `alerts.incidents_purge` server-only jobs, notifications on a transition with an optional webhook port (`ALERTS_WEBHOOK_EMITTER`), eight disabled starter rules, the `/api/admin/alerts` routes behind the new `alerts:read` and `alerts:write` permissions, and the `alerts` conformance suite (`@marinoscar/platform-api/alerts/testing`). The telemetry slice now exports `TelemetryDashboardService` and `createQueryFacade`, accepts a `null` (system) user and an `alert` query source, and the nodes slice exports `deriveNodeHealth`. `@marinoscar/platform-db` adds migration `0040_add_alerts` (`alert_rules`, `alert_incidents` and the raw-SQL partial unique index `alert_incidents_open_uniq_idx`).
|
|
10
|
+
- 6949b6b: Worker nodes report host vitals, power state and events (#1045). Contract: `vitals.host` and `vitals.power`, heartbeat `events` (at most 50, `nodeEventSchema`, `NODE_EVENT_TYPES`), `serverFeatures` / `NODE_SERVER_CAPABILITY_HOST_VITALS` (`node_host_vitals`), the admin event list schemas and `nodeEventListQuerySchema`; the nodes telemetry presentation gains host CPU, host memory, load, power source and battery columns. API: `POST /api/nodes/register` and `POST /api/nodes/:id/heartbeat` advertise `serverFeatures` (the heartbeat repeats it beside the node fields, so a node that never re-registers learns it); heartbeat `events` are persisted to `worker_node_events` (occurredAt clamped to [now-24h, now+5m], at most 120 events per node per hour, the excess dropped and logged) and announced after the write as the `nodes.node.event` domain event (`NODE_EVENT_REPORTED`, `NodeEventReportedEvent`), an `app.nodes.events` counter, a bounded `node.event` span and a log line; `GET /api/nodes/:id/events` (`nodes:read`, same 404/403 answers as `GET /api/nodes/:id`) and `GET /api/admin/nodes/:id/events` (Admin role, `nodes:read`) list them; new gauges `app.nodes.host.cpu.utilization`, `app.nodes.host.memory.used|total|available`, `app.nodes.host.load1`, `app.nodes.power.on_battery` and `app.nodes.power.battery_percent` (a series is skipped when the node did not report the field); the telemetry `nodes` group shows them per node and a node on battery at 10 % or less degrades the dashboard verdict; the daily `nodes.node_events_purge` job (enqueued by `NodeEventsPurgeTask`, kept for `NodesModule.forRoot({ nodeEventsRetentionDays })`, default 30 days, switch `tasks.nodeEventsPurge`) deletes old events. The jobs slice's `JobsTx` gains the `workerNodeEvent` delegate. DB: migration `0038_add_worker_node_events` (already shipped with the table). CLI: the node samples host CPU, load and memory, probes power per OS, turns transitions into events and sends them only after the server advertises `node_host_vitals`, learned from the register response or from any heartbeat response; an already-registered node no longer re-registers on start.
|
|
11
|
+
- f3b9700: Add the `@marinoscar/platform-contract/webhooks` subpath (issue #1046): the endpoint, delivery, event-catalog and envelope schemas of the webhooks slice, the scope and delivery-status lists, the `webhooks:*`, `org_webhooks:*` and `system_webhooks:*` permission strings, the Standard Webhooks header names, `WEBHOOK_API_VERSION`, `WEBHOOK_ERROR_CODES`, the event key pattern (exact keys, `group.*` and `*`), and `signWebhookPayload` / `verifyWebhookSignature` (HMAC-SHA256 through Web Crypto, `whsec_` secrets, rotation-aware, constant time). Additive.
|
|
12
|
+
|
|
3
13
|
## 0.1.0-next.19
|
|
4
14
|
|
|
5
15
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -28,6 +28,8 @@ Slices (each a subpath export with its own README):
|
|
|
28
28
|
| `@marinoscar/platform-contract/notifications` | The inbox, events, push subscription, Web Push configuration and broadcast shapes, and the `notifications` settings namespaces | [src/notifications/README.md](src/notifications/README.md) |
|
|
29
29
|
| `@marinoscar/platform-contract/android-app` | The trusted-app, Digital Asset Links, APK release and test-notification shapes | [src/android-app/README.md](src/android-app/README.md) |
|
|
30
30
|
| `@marinoscar/platform-contract/user-data` | The user deletion, factory reset and organization offboarding shapes, with their confirmation phrases | [src/user-data/README.md](src/user-data/README.md) |
|
|
31
|
+
| `@marinoscar/platform-contract/alerts` | Alert wire shapes, `experimental`: rules and the per-kind configs of the built-in kinds, incidents, the dry-run response, the kind catalog, the dashboard summary and the `alerts.alert.*` webhook data (#1047) | [src/alerts/README.md](src/alerts/README.md) |
|
|
32
|
+
| `@marinoscar/platform-contract/webhooks` | Webhook wire shapes, `experimental`: endpoints, deliveries, the event catalog, the envelope, the `webhook-*` header names, error codes and the Standard Webhooks `signWebhookPayload` / `verifyWebhookSignature` helpers (#1046) | [src/webhooks/README.md](src/webhooks/README.md) |
|
|
31
33
|
|
|
32
34
|
The root entry exports only `PLATFORM_PACKAGE`; schemas are reached through their slice's subpath, so a consumer loads only the slices it uses.
|
|
33
35
|
|
|
@@ -167,3 +169,5 @@ Build and import problems common to every platform package are in [DEVELOPMENT.m
|
|
|
167
169
|
- [Settings slice](src/settings/README.md)
|
|
168
170
|
- [Onboarding slice](src/onboarding/README.md)
|
|
169
171
|
- [Exports slice](src/exports/README.md)
|
|
172
|
+
- [Alerts slice](src/alerts/README.md)
|
|
173
|
+
- [Webhooks slice](src/webhooks/README.md)
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The entries type `z.enum` builds for a list of values, named so the API
|
|
3
|
+
* reference shows one type instead of an anonymous object per property.
|
|
4
|
+
*
|
|
5
|
+
* @typeParam V - the values.
|
|
6
|
+
* @stability experimental
|
|
7
|
+
*/
|
|
8
|
+
export type AlertEnumEntries<V extends string> = {
|
|
9
|
+
readonly [K in V]: K;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* The permission strings the alerts routes enforce. Both are system
|
|
13
|
+
* permissions held by the `admin` role.
|
|
14
|
+
*
|
|
15
|
+
* @stability experimental
|
|
16
|
+
*/
|
|
17
|
+
export declare const ALERT_PERMISSIONS: {
|
|
18
|
+
/** View rules, incidents and the summary. */
|
|
19
|
+
readonly READ: "alerts:read";
|
|
20
|
+
/** Create, edit, delete, test and acknowledge. */
|
|
21
|
+
readonly WRITE: "alerts:write";
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* How serious a rule's incidents are.
|
|
25
|
+
*
|
|
26
|
+
* @stability experimental
|
|
27
|
+
*/
|
|
28
|
+
export declare const ALERT_SEVERITIES: readonly ["info", "warning", "critical"];
|
|
29
|
+
/**
|
|
30
|
+
* One alert severity.
|
|
31
|
+
*
|
|
32
|
+
* @stability experimental
|
|
33
|
+
*/
|
|
34
|
+
export type AlertSeverity = (typeof ALERT_SEVERITIES)[number];
|
|
35
|
+
/**
|
|
36
|
+
* The lifecycle of one incident: `pending` (the condition holds but has not
|
|
37
|
+
* held for the rule's `forSeconds` yet), `firing` and `resolved`.
|
|
38
|
+
*
|
|
39
|
+
* @stability experimental
|
|
40
|
+
*/
|
|
41
|
+
export declare const ALERT_INCIDENT_STATES: readonly ["pending", "firing", "resolved"];
|
|
42
|
+
/**
|
|
43
|
+
* One incident state.
|
|
44
|
+
*
|
|
45
|
+
* @stability experimental
|
|
46
|
+
*/
|
|
47
|
+
export type AlertIncidentState = (typeof ALERT_INCIDENT_STATES)[number];
|
|
48
|
+
/**
|
|
49
|
+
* How a metric value is compared to the threshold.
|
|
50
|
+
*
|
|
51
|
+
* @stability experimental
|
|
52
|
+
*/
|
|
53
|
+
export declare const ALERT_COMPARATORS: readonly ["gt", "gte", "lt", "lte", "eq", "neq"];
|
|
54
|
+
/**
|
|
55
|
+
* One comparator.
|
|
56
|
+
*
|
|
57
|
+
* @stability experimental
|
|
58
|
+
*/
|
|
59
|
+
export type AlertComparator = (typeof ALERT_COMPARATORS)[number];
|
|
60
|
+
/**
|
|
61
|
+
* How a metric's points inside the window are reduced to one number. `rate`
|
|
62
|
+
* is the increase of a counter per MINUTE over the window.
|
|
63
|
+
*
|
|
64
|
+
* @stability experimental
|
|
65
|
+
*/
|
|
66
|
+
export declare const ALERT_AGGREGATIONS: readonly ["avg", "max", "min", "sum", "last", "rate"];
|
|
67
|
+
/**
|
|
68
|
+
* One aggregation.
|
|
69
|
+
*
|
|
70
|
+
* @stability experimental
|
|
71
|
+
*/
|
|
72
|
+
export type AlertAggregation = (typeof ALERT_AGGREGATIONS)[number];
|
|
73
|
+
/**
|
|
74
|
+
* The operators of a metric attribute filter.
|
|
75
|
+
*
|
|
76
|
+
* @stability experimental
|
|
77
|
+
*/
|
|
78
|
+
export declare const ALERT_FILTER_OPS: readonly ["eq", "neq"];
|
|
79
|
+
/**
|
|
80
|
+
* One filter operator.
|
|
81
|
+
*
|
|
82
|
+
* @stability experimental
|
|
83
|
+
*/
|
|
84
|
+
export type AlertFilterOp = (typeof ALERT_FILTER_OPS)[number];
|
|
85
|
+
/**
|
|
86
|
+
* The ids of the rule kinds the slice ships. The kind id on the wire is an
|
|
87
|
+
* OPEN string (an app adds its own with `registerAlertRuleKind`); these are
|
|
88
|
+
* only the ones the platform knows by name.
|
|
89
|
+
*
|
|
90
|
+
* @stability experimental
|
|
91
|
+
*/
|
|
92
|
+
export declare const ALERT_KIND_IDS: {
|
|
93
|
+
/** An aggregate of one telemetry metric compared to a threshold. */
|
|
94
|
+
readonly METRIC_THRESHOLD: "metric_threshold";
|
|
95
|
+
/** A worker node reported a matching event. */
|
|
96
|
+
readonly NODE_EVENT: "node_event";
|
|
97
|
+
/** The telemetry dashboard verdict is at or past a level. */
|
|
98
|
+
readonly VERDICT: "verdict";
|
|
99
|
+
/** A worker node is stale or offline. */
|
|
100
|
+
readonly NODE_OFFLINE: "node_offline";
|
|
101
|
+
/** The telemetry store cannot be queried. */
|
|
102
|
+
readonly TELEMETRY_UNAVAILABLE: "telemetry_unavailable";
|
|
103
|
+
};
|
|
104
|
+
/**
|
|
105
|
+
* The stable keys of the starter rules the slice seeds (disabled).
|
|
106
|
+
*
|
|
107
|
+
* @stability experimental
|
|
108
|
+
*/
|
|
109
|
+
export declare const ALERT_STARTER_RULE_KEYS: {
|
|
110
|
+
/** A node switched to battery. */
|
|
111
|
+
readonly NODES_ON_BATTERY: "nodes.on_battery";
|
|
112
|
+
/** A node reported a low or critical battery. */
|
|
113
|
+
readonly NODES_BATTERY_LOW: "nodes.battery_low";
|
|
114
|
+
/** A worker host CPU is high. */
|
|
115
|
+
readonly NODES_HOST_CPU_HIGH: "nodes.host_cpu_high";
|
|
116
|
+
/** A worker host has little memory available. */
|
|
117
|
+
readonly NODES_HOST_MEMORY_LOW: "nodes.host_memory_low";
|
|
118
|
+
/** A worker node is offline. */
|
|
119
|
+
readonly NODES_OFFLINE: "nodes.offline";
|
|
120
|
+
/** Jobs are failing faster than usual. */
|
|
121
|
+
readonly JOBS_FAILURE_SPIKE: "jobs.failure_spike";
|
|
122
|
+
/** The dashboard verdict is critical. */
|
|
123
|
+
readonly TELEMETRY_VERDICT_CRITICAL: "telemetry.verdict_critical";
|
|
124
|
+
/** The telemetry store cannot be queried. */
|
|
125
|
+
readonly TELEMETRY_UNAVAILABLE: "telemetry.unavailable";
|
|
126
|
+
};
|
|
127
|
+
/**
|
|
128
|
+
* The webhook event keys the slice emits through the optional webhook port.
|
|
129
|
+
*
|
|
130
|
+
* @stability experimental
|
|
131
|
+
*/
|
|
132
|
+
export declare const ALERT_WEBHOOK_EVENTS: {
|
|
133
|
+
/** The event emitted when an alert fires. */
|
|
134
|
+
readonly FIRED: "alerts.alert.fired";
|
|
135
|
+
/** The event emitted when an alert resolves. */
|
|
136
|
+
readonly RESOLVED: "alerts.alert.resolved";
|
|
137
|
+
};
|
|
138
|
+
/**
|
|
139
|
+
* The refusal codes (`details.reason`) of the alerts routes.
|
|
140
|
+
*
|
|
141
|
+
* @stability experimental
|
|
142
|
+
*/
|
|
143
|
+
export declare const ALERT_ERROR_CODES: {
|
|
144
|
+
/** No rule has this id (404). */
|
|
145
|
+
readonly RULE_NOT_FOUND: "ALERT_RULE_NOT_FOUND";
|
|
146
|
+
/** No incident has this id (404). */
|
|
147
|
+
readonly INCIDENT_NOT_FOUND: "ALERT_INCIDENT_NOT_FOUND";
|
|
148
|
+
/** The rule kind is not registered (400). */
|
|
149
|
+
readonly UNKNOWN_KIND: "ALERT_UNKNOWN_KIND";
|
|
150
|
+
/** The config does not match the kind (400). */
|
|
151
|
+
readonly INVALID_CONFIG: "ALERT_INVALID_CONFIG";
|
|
152
|
+
/** A starter rule cannot be deleted (409). */
|
|
153
|
+
readonly STARTER_RULE_PROTECTED: "ALERT_STARTER_RULE_PROTECTED";
|
|
154
|
+
};
|
|
155
|
+
/** Longest rule name. @stability experimental */
|
|
156
|
+
export declare const ALERT_NAME_MAX = 120;
|
|
157
|
+
/** Longest rule description. @stability experimental */
|
|
158
|
+
export declare const ALERT_DESCRIPTION_MAX = 500;
|
|
159
|
+
/** Longest incident summary. @stability experimental */
|
|
160
|
+
export declare const ALERT_SUMMARY_MAX = 500;
|
|
161
|
+
/** Longest rule key. @stability experimental */
|
|
162
|
+
export declare const ALERT_KEY_MAX = 64;
|
|
163
|
+
/** Longest kind id. @stability experimental */
|
|
164
|
+
export declare const ALERT_KIND_MAX = 32;
|
|
165
|
+
/** Most notification channels one rule names. @stability experimental */
|
|
166
|
+
export declare const ALERT_NOTIFY_CHANNELS_MAX = 8;
|
|
167
|
+
/** Longest `for` duration of a rule, in seconds (one day). @stability experimental */
|
|
168
|
+
export declare const ALERT_FOR_SECONDS_MAX = 86400;
|
|
169
|
+
/** Longest cooldown of a rule, in seconds (one week). @stability experimental */
|
|
170
|
+
export declare const ALERT_COOLDOWN_SECONDS_MAX = 604800;
|
|
171
|
+
/** Shortest metric window, in seconds. @stability experimental */
|
|
172
|
+
export declare const ALERT_WINDOW_SECONDS_MIN = 60;
|
|
173
|
+
/** Longest metric window, in seconds. @stability experimental */
|
|
174
|
+
export declare const ALERT_WINDOW_SECONDS_MAX = 86400;
|
|
175
|
+
/** Most group-by columns of a metric rule. @stability experimental */
|
|
176
|
+
export declare const ALERT_GROUP_BY_MAX = 3;
|
|
177
|
+
/** Most attribute filters of a metric rule. @stability experimental */
|
|
178
|
+
export declare const ALERT_FILTERS_MAX = 5;
|
|
179
|
+
/** Default seconds a `node_event` incident stays open without a recovery event. @stability experimental */
|
|
180
|
+
export declare const ALERT_NODE_EVENT_RESOLVE_AFTER_DEFAULT = 3600;
|
|
181
|
+
/** Default cooldown of a new rule, in seconds. @stability experimental */
|
|
182
|
+
export declare const ALERT_COOLDOWN_SECONDS_DEFAULT = 900;
|
|
183
|
+
/** Largest incident page. @stability experimental */
|
|
184
|
+
export declare const ALERT_PAGE_SIZE_MAX = 100;
|
|
185
|
+
/** Default incident page size. @stability experimental */
|
|
186
|
+
export declare const ALERT_PAGE_SIZE_DEFAULT = 20;
|
|
187
|
+
/** Metric name or table name accepted by `metric_threshold`. @stability experimental */
|
|
188
|
+
export declare const ALERT_METRIC_NAME_PATTERN: RegExp;
|
|
189
|
+
/** A telemetry attribute (column) identifier. @stability experimental */
|
|
190
|
+
export declare const ALERT_ATTRIBUTE_PATTERN: RegExp;
|
|
191
|
+
/** What a rule key looks like. @stability experimental */
|
|
192
|
+
export declare const ALERT_KEY_PATTERN: RegExp;
|
|
193
|
+
/** What a rule kind id looks like. @stability experimental */
|
|
194
|
+
export declare const ALERT_KIND_PATTERN: RegExp;
|
|
195
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/al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CAAC;AACpE,yEAAyE;AACzE,eAAO,MAAM,uBAAuB,QAAmC,CAAC;AACxE,0DAA0D;AAC1D,eAAO,MAAM,iBAAiB,QAAqC,CAAC;AACpE,8DAA8D;AAC9D,eAAO,MAAM,kBAAkB,QAAsB,CAAC"}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// =============================================================================
|
|
3
|
+
// The alerts slice's zod-free constants (issue #1047)
|
|
4
|
+
// =============================================================================
|
|
5
|
+
//
|
|
6
|
+
// Plain values and string-literal unions only (no zod), so a browser that needs
|
|
7
|
+
// a constant or a type never bundles zod (test/no-zod-in-constants.test.ts).
|
|
8
|
+
// =============================================================================
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.ALERT_KIND_PATTERN = exports.ALERT_KEY_PATTERN = exports.ALERT_ATTRIBUTE_PATTERN = exports.ALERT_METRIC_NAME_PATTERN = exports.ALERT_PAGE_SIZE_DEFAULT = exports.ALERT_PAGE_SIZE_MAX = exports.ALERT_COOLDOWN_SECONDS_DEFAULT = exports.ALERT_NODE_EVENT_RESOLVE_AFTER_DEFAULT = exports.ALERT_FILTERS_MAX = exports.ALERT_GROUP_BY_MAX = exports.ALERT_WINDOW_SECONDS_MAX = exports.ALERT_WINDOW_SECONDS_MIN = exports.ALERT_COOLDOWN_SECONDS_MAX = exports.ALERT_FOR_SECONDS_MAX = exports.ALERT_NOTIFY_CHANNELS_MAX = exports.ALERT_KIND_MAX = exports.ALERT_KEY_MAX = exports.ALERT_SUMMARY_MAX = exports.ALERT_DESCRIPTION_MAX = exports.ALERT_NAME_MAX = exports.ALERT_ERROR_CODES = exports.ALERT_WEBHOOK_EVENTS = exports.ALERT_STARTER_RULE_KEYS = exports.ALERT_KIND_IDS = exports.ALERT_FILTER_OPS = exports.ALERT_AGGREGATIONS = exports.ALERT_COMPARATORS = exports.ALERT_INCIDENT_STATES = exports.ALERT_SEVERITIES = exports.ALERT_PERMISSIONS = void 0;
|
|
11
|
+
/**
|
|
12
|
+
* The permission strings the alerts routes enforce. Both are system
|
|
13
|
+
* permissions held by the `admin` role.
|
|
14
|
+
*
|
|
15
|
+
* @stability experimental
|
|
16
|
+
*/
|
|
17
|
+
exports.ALERT_PERMISSIONS = {
|
|
18
|
+
/** View rules, incidents and the summary. */
|
|
19
|
+
READ: 'alerts:read',
|
|
20
|
+
/** Create, edit, delete, test and acknowledge. */
|
|
21
|
+
WRITE: 'alerts:write',
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* How serious a rule's incidents are.
|
|
25
|
+
*
|
|
26
|
+
* @stability experimental
|
|
27
|
+
*/
|
|
28
|
+
exports.ALERT_SEVERITIES = ['info', 'warning', 'critical'];
|
|
29
|
+
/**
|
|
30
|
+
* The lifecycle of one incident: `pending` (the condition holds but has not
|
|
31
|
+
* held for the rule's `forSeconds` yet), `firing` and `resolved`.
|
|
32
|
+
*
|
|
33
|
+
* @stability experimental
|
|
34
|
+
*/
|
|
35
|
+
exports.ALERT_INCIDENT_STATES = ['pending', 'firing', 'resolved'];
|
|
36
|
+
/**
|
|
37
|
+
* How a metric value is compared to the threshold.
|
|
38
|
+
*
|
|
39
|
+
* @stability experimental
|
|
40
|
+
*/
|
|
41
|
+
exports.ALERT_COMPARATORS = ['gt', 'gte', 'lt', 'lte', 'eq', 'neq'];
|
|
42
|
+
/**
|
|
43
|
+
* How a metric's points inside the window are reduced to one number. `rate`
|
|
44
|
+
* is the increase of a counter per MINUTE over the window.
|
|
45
|
+
*
|
|
46
|
+
* @stability experimental
|
|
47
|
+
*/
|
|
48
|
+
exports.ALERT_AGGREGATIONS = ['avg', 'max', 'min', 'sum', 'last', 'rate'];
|
|
49
|
+
/**
|
|
50
|
+
* The operators of a metric attribute filter.
|
|
51
|
+
*
|
|
52
|
+
* @stability experimental
|
|
53
|
+
*/
|
|
54
|
+
exports.ALERT_FILTER_OPS = ['eq', 'neq'];
|
|
55
|
+
/**
|
|
56
|
+
* The ids of the rule kinds the slice ships. The kind id on the wire is an
|
|
57
|
+
* OPEN string (an app adds its own with `registerAlertRuleKind`); these are
|
|
58
|
+
* only the ones the platform knows by name.
|
|
59
|
+
*
|
|
60
|
+
* @stability experimental
|
|
61
|
+
*/
|
|
62
|
+
exports.ALERT_KIND_IDS = {
|
|
63
|
+
/** An aggregate of one telemetry metric compared to a threshold. */
|
|
64
|
+
METRIC_THRESHOLD: 'metric_threshold',
|
|
65
|
+
/** A worker node reported a matching event. */
|
|
66
|
+
NODE_EVENT: 'node_event',
|
|
67
|
+
/** The telemetry dashboard verdict is at or past a level. */
|
|
68
|
+
VERDICT: 'verdict',
|
|
69
|
+
/** A worker node is stale or offline. */
|
|
70
|
+
NODE_OFFLINE: 'node_offline',
|
|
71
|
+
/** The telemetry store cannot be queried. */
|
|
72
|
+
TELEMETRY_UNAVAILABLE: 'telemetry_unavailable',
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* The stable keys of the starter rules the slice seeds (disabled).
|
|
76
|
+
*
|
|
77
|
+
* @stability experimental
|
|
78
|
+
*/
|
|
79
|
+
exports.ALERT_STARTER_RULE_KEYS = {
|
|
80
|
+
/** A node switched to battery. */
|
|
81
|
+
NODES_ON_BATTERY: 'nodes.on_battery',
|
|
82
|
+
/** A node reported a low or critical battery. */
|
|
83
|
+
NODES_BATTERY_LOW: 'nodes.battery_low',
|
|
84
|
+
/** A worker host CPU is high. */
|
|
85
|
+
NODES_HOST_CPU_HIGH: 'nodes.host_cpu_high',
|
|
86
|
+
/** A worker host has little memory available. */
|
|
87
|
+
NODES_HOST_MEMORY_LOW: 'nodes.host_memory_low',
|
|
88
|
+
/** A worker node is offline. */
|
|
89
|
+
NODES_OFFLINE: 'nodes.offline',
|
|
90
|
+
/** Jobs are failing faster than usual. */
|
|
91
|
+
JOBS_FAILURE_SPIKE: 'jobs.failure_spike',
|
|
92
|
+
/** The dashboard verdict is critical. */
|
|
93
|
+
TELEMETRY_VERDICT_CRITICAL: 'telemetry.verdict_critical',
|
|
94
|
+
/** The telemetry store cannot be queried. */
|
|
95
|
+
TELEMETRY_UNAVAILABLE: 'telemetry.unavailable',
|
|
96
|
+
};
|
|
97
|
+
/**
|
|
98
|
+
* The webhook event keys the slice emits through the optional webhook port.
|
|
99
|
+
*
|
|
100
|
+
* @stability experimental
|
|
101
|
+
*/
|
|
102
|
+
exports.ALERT_WEBHOOK_EVENTS = {
|
|
103
|
+
/** The event emitted when an alert fires. */
|
|
104
|
+
FIRED: 'alerts.alert.fired',
|
|
105
|
+
/** The event emitted when an alert resolves. */
|
|
106
|
+
RESOLVED: 'alerts.alert.resolved',
|
|
107
|
+
};
|
|
108
|
+
/**
|
|
109
|
+
* The refusal codes (`details.reason`) of the alerts routes.
|
|
110
|
+
*
|
|
111
|
+
* @stability experimental
|
|
112
|
+
*/
|
|
113
|
+
exports.ALERT_ERROR_CODES = {
|
|
114
|
+
/** No rule has this id (404). */
|
|
115
|
+
RULE_NOT_FOUND: 'ALERT_RULE_NOT_FOUND',
|
|
116
|
+
/** No incident has this id (404). */
|
|
117
|
+
INCIDENT_NOT_FOUND: 'ALERT_INCIDENT_NOT_FOUND',
|
|
118
|
+
/** The rule kind is not registered (400). */
|
|
119
|
+
UNKNOWN_KIND: 'ALERT_UNKNOWN_KIND',
|
|
120
|
+
/** The config does not match the kind (400). */
|
|
121
|
+
INVALID_CONFIG: 'ALERT_INVALID_CONFIG',
|
|
122
|
+
/** A starter rule cannot be deleted (409). */
|
|
123
|
+
STARTER_RULE_PROTECTED: 'ALERT_STARTER_RULE_PROTECTED',
|
|
124
|
+
};
|
|
125
|
+
/** Longest rule name. @stability experimental */
|
|
126
|
+
exports.ALERT_NAME_MAX = 120;
|
|
127
|
+
/** Longest rule description. @stability experimental */
|
|
128
|
+
exports.ALERT_DESCRIPTION_MAX = 500;
|
|
129
|
+
/** Longest incident summary. @stability experimental */
|
|
130
|
+
exports.ALERT_SUMMARY_MAX = 500;
|
|
131
|
+
/** Longest rule key. @stability experimental */
|
|
132
|
+
exports.ALERT_KEY_MAX = 64;
|
|
133
|
+
/** Longest kind id. @stability experimental */
|
|
134
|
+
exports.ALERT_KIND_MAX = 32;
|
|
135
|
+
/** Most notification channels one rule names. @stability experimental */
|
|
136
|
+
exports.ALERT_NOTIFY_CHANNELS_MAX = 8;
|
|
137
|
+
/** Longest `for` duration of a rule, in seconds (one day). @stability experimental */
|
|
138
|
+
exports.ALERT_FOR_SECONDS_MAX = 86_400;
|
|
139
|
+
/** Longest cooldown of a rule, in seconds (one week). @stability experimental */
|
|
140
|
+
exports.ALERT_COOLDOWN_SECONDS_MAX = 604_800;
|
|
141
|
+
/** Shortest metric window, in seconds. @stability experimental */
|
|
142
|
+
exports.ALERT_WINDOW_SECONDS_MIN = 60;
|
|
143
|
+
/** Longest metric window, in seconds. @stability experimental */
|
|
144
|
+
exports.ALERT_WINDOW_SECONDS_MAX = 86_400;
|
|
145
|
+
/** Most group-by columns of a metric rule. @stability experimental */
|
|
146
|
+
exports.ALERT_GROUP_BY_MAX = 3;
|
|
147
|
+
/** Most attribute filters of a metric rule. @stability experimental */
|
|
148
|
+
exports.ALERT_FILTERS_MAX = 5;
|
|
149
|
+
/** Default seconds a `node_event` incident stays open without a recovery event. @stability experimental */
|
|
150
|
+
exports.ALERT_NODE_EVENT_RESOLVE_AFTER_DEFAULT = 3_600;
|
|
151
|
+
/** Default cooldown of a new rule, in seconds. @stability experimental */
|
|
152
|
+
exports.ALERT_COOLDOWN_SECONDS_DEFAULT = 900;
|
|
153
|
+
/** Largest incident page. @stability experimental */
|
|
154
|
+
exports.ALERT_PAGE_SIZE_MAX = 100;
|
|
155
|
+
/** Default incident page size. @stability experimental */
|
|
156
|
+
exports.ALERT_PAGE_SIZE_DEFAULT = 20;
|
|
157
|
+
/** Metric name or table name accepted by `metric_threshold`. @stability experimental */
|
|
158
|
+
exports.ALERT_METRIC_NAME_PATTERN = /^[a-z][a-z0-9_.]{0,127}$/;
|
|
159
|
+
/** A telemetry attribute (column) identifier. @stability experimental */
|
|
160
|
+
exports.ALERT_ATTRIBUTE_PATTERN = /^[A-Za-z_][A-Za-z0-9_.]{0,63}$/;
|
|
161
|
+
/** What a rule key looks like. @stability experimental */
|
|
162
|
+
exports.ALERT_KEY_PATTERN = /^[a-z][a-z0-9_]*(\.[a-z0-9_]+)*$/;
|
|
163
|
+
/** What a rule kind id looks like. @stability experimental */
|
|
164
|
+
exports.ALERT_KIND_PATTERN = /^[a-z][a-z0-9_]*$/;
|
|
165
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/alerts/constants.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,sDAAsD;AACtD,gFAAgF;AAChF,EAAE;AACF,gFAAgF;AAChF,6EAA6E;AAC7E,gFAAgF;;;AAWhF;;;;;GAKG;AACU,QAAA,iBAAiB,GAAG;IAC/B,6CAA6C;IAC7C,IAAI,EAAE,aAAa;IACnB,kDAAkD;IAClD,KAAK,EAAE,cAAc;CACb,CAAC;AAEX;;;;GAIG;AACU,QAAA,gBAAgB,GAAG,CAAC,MAAM,EAAE,SAAS,EAAE,UAAU,CAAU,CAAC;AASzE;;;;;GAKG;AACU,QAAA,qBAAqB,GAAG,CAAC,SAAS,EAAE,QAAQ,EAAE,UAAU,CAAU,CAAC;AAShF;;;;GAIG;AACU,QAAA,iBAAiB,GAAG,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,CAAU,CAAC;AASlF;;;;;GAKG;AACU,QAAA,kBAAkB,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,CAAU,CAAC;AASxF;;;;GAIG;AACU,QAAA,gBAAgB,GAAG,CAAC,IAAI,EAAE,KAAK,CAAU,CAAC;AASvD;;;;;;GAMG;AACU,QAAA,cAAc,GAAG;IAC5B,oE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,+CAA+C;AAClC,QAAA,cAAc,GAAG,EAAE,CAAC;AACjC,yEAAyE;AAC5D,QAAA,yBAAyB,GAAG,CAAC,CAAC;AAC3C,sFAAsF;AACzE,QAAA,qBAAqB,GAAG,MAAM,CAAC;AAC5C,iFAAiF;AACpE,QAAA,0BAA0B,GAAG,OAAO,CAAC;AAClD,kEAAkE;AACrD,QAAA,wBAAwB,GAAG,EAAE,CAAC;AAC3C,iEAAiE;AACpD,QAAA,wBAAwB,GAAG,MAAM,CAAC;AAC/C,sEAAsE;AACzD,QAAA,kBAAkB,GAAG,CAAC,CAAC;AACpC,uEAAuE;AAC1D,QAAA,iBAAiB,GAAG,CAAC,CAAC;AACnC,2GAA2G;AAC9F,QAAA,sCAAsC,GAAG,KAAK,CAAC;AAC5D,0EAA0E;AAC7D,QAAA,8BAA8B,GAAG,GAAG,CAAC;AAClD,qDAAqD;AACxC,QAAA,mBAAmB,GAAG,GAAG,CAAC;AACvC,0DAA0D;AAC7C,QAAA,uBAAuB,GAAG,EAAE,CAAC;AAC1C,wFAAwF;AAC3E,QAAA,yBAAyB,GAAG,0BAA0B,CAAC;AACpE,yEAAyE;AAC5D,QAAA,uBAAuB,GAAG,gCAAgC,CAAC;AACxE,0DAA0D;AAC7C,QAAA,iBAAiB,GAAG,kCAAkC,CAAC;AACpE,8DAA8D;AACjD,QAAA,kBAAkB,GAAG,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { AlertEnumEntries } from './constants.js';
|
|
3
|
+
/** `z.enum(values)`, typed as `ZodEnum<AlertEnumEntries<value>>` (a named entries type for the API reference). */
|
|
4
|
+
export declare function wireEnum<const T extends readonly [string, ...string[]]>(values: T): z.ZodEnum<AlertEnumEntries<T[number]>>;
|
|
5
|
+
//# sourceMappingURL=enum.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enum.d.ts","sourceRoot":"","sources":["../../../src/alerts/enum.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAEvD,kHAAkH;AAClH,wBAAgB,QAAQ,CAAC,KAAK,CAAC,CAAC,SAAS,SAAS,CAAC,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAE1H"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.wireEnum = wireEnum;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
/** `z.enum(values)`, typed as `ZodEnum<AlertEnumEntries<value>>` (a named entries type for the API reference). */
|
|
6
|
+
function wireEnum(values) {
|
|
7
|
+
return zod_1.z.enum(values);
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enum.js","sourceRoot":"","sources":["../../../src/alerts/enum.ts"],"names":[],"mappings":";;AAKA,4BAEC;AAPD,6BAAwB;AAIxB,kHAAkH;AAClH,SAAgB,QAAQ,CAAiD,MAAS;IAChF,OAAO,OAAC,CAAC,IAAI,CAAC,MAAM,CAAsD,CAAC;AAC7E,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { ALERT_AGGREGATIONS, ALERT_ATTRIBUTE_PATTERN, ALERT_COMPARATORS, ALERT_COOLDOWN_SECONDS_DEFAULT, ALERT_COOLDOWN_SECONDS_MAX, ALERT_DESCRIPTION_MAX, ALERT_ERROR_CODES, ALERT_FILTERS_MAX, ALERT_FILTER_OPS, ALERT_FOR_SECONDS_MAX, ALERT_GROUP_BY_MAX, ALERT_INCIDENT_STATES, ALERT_KEY_MAX, ALERT_KEY_PATTERN, ALERT_KIND_IDS, ALERT_KIND_MAX, ALERT_KIND_PATTERN, ALERT_METRIC_NAME_PATTERN, ALERT_NAME_MAX, ALERT_NODE_EVENT_RESOLVE_AFTER_DEFAULT, ALERT_NOTIFY_CHANNELS_MAX, ALERT_PAGE_SIZE_DEFAULT, ALERT_PAGE_SIZE_MAX, ALERT_PERMISSIONS, ALERT_SEVERITIES, ALERT_STARTER_RULE_KEYS, ALERT_SUMMARY_MAX, ALERT_WEBHOOK_EVENTS, ALERT_WINDOW_SECONDS_MAX, ALERT_WINDOW_SECONDS_MIN, } from './constants.js';
|
|
2
|
+
export type { AlertAggregation, AlertEnumEntries, AlertComparator, AlertFilterOp, AlertIncidentState, AlertSeverity, } from './constants.js';
|
|
3
|
+
export { alertAggregationSchema, alertComparatorSchema, alertEventAttrsSchema, alertIncidentListQuerySchema, alertIncidentListSchema, alertIncidentSchema, alertIncidentStateSchema, alertKindIdSchema, alertKindListSchema, alertKindSchema, alertMetricFilterSchema, alertObservationSchema, alertRuleKeySchema, alertRuleListQuerySchema, alertRuleListSchema, alertRuleSchema, alertRuleTestResponseSchema, alertSeveritySchema, alertSummarySchema, alertWebhookDataSchema, createAlertRuleSchema, emptyAlertConfigSchema, metricThresholdConfigSchema, nodeEventConfigSchema, updateAlertRuleSchema, verdictConfigSchema, } from './schemas.js';
|
|
4
|
+
export type { AlertIncident, AlertIncidentListQuery, AlertKind, AlertObservation, AlertRule, AlertRuleListQuery, AlertRuleTestResponse, AlertSummary, AlertWebhookData, CreateAlertRule, MetricThresholdConfig, NodeEventConfig, UpdateAlertRule, VerdictConfig, } from './schemas.js';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/alerts/index.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,kBAAkB,EAClB,uBAAuB,EACvB,iBAAiB,EACjB,8BAA8B,EAC9B,0BAA0B,EAC1B,qBAAqB,EACrB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,qBAAqB,EACrB,kBAAkB,EAClB,qBAAqB,EACrB,aAAa,EACb,iBAAiB,EACjB,cAAc,EACd,cAAc,EACd,kBAAkB,EAClB,yBAAyB,EACzB,cAAc,EACd,sCAAsC,EACtC,yBAAyB,EACzB,uBAAuB,EACvB,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,uBAAuB,EACvB,iBAAiB,EACjB,oBAAoB,EACpB,wBAAwB,EACxB,wBAAwB,GACzB,MAAM,gBAAgB,CAAC;AACxB,YAAY,EACV,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,aAAa,EACb,kBAAkB,EAClB,aAAa,GACd,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,sBAAsB,EACtB,qBAAqB,EACrB,qBAAqB,EACrB,4BAA4B,EAC5B,uBAAuB,EACvB,mBAAmB,EACnB,wBAAwB,EACxB,iBAAiB,EACjB,mBAAmB,EACnB,eAAe,EACf,uBAAuB,EACvB,sBAAsB,EACtB,kBAAkB,EAClB,wBAAwB,EACxB,mBAAmB,EACnB,eAAe,EACf,2BAA2B,EAC3B,mBAAmB,EACnB,kBAAkB,EAClB,sBAAsB,EACtB,qBAAqB,EACrB,sBAAsB,EACtB,2BAA2B,EAC3B,qBAAqB,EACrB,qBAAqB,EACrB,mBAAmB,GACpB,MAAM,cAAc,CAAC;AACtB,YAAY,EACV,aAAa,EACb,sBAAsB,EACtB,SAAS,EACT,gBAAgB,EAChB,SAAS,EACT,kBAAkB,EAClB,qBAAqB,EACrB,YAAY,EACZ,gBAAgB,EAChB,eAAe,EACf,qBAAqB,EACrB,eAAe,EACf,eAAe,EACf,aAAa,GACd,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// `@marinoscar/platform-contract/alerts`: the alerts slice's wire shapes
|
|
3
|
+
// (issue #1047): rules and the per-kind configs of the built-in kinds,
|
|
4
|
+
// incidents, the dry-run response, the kind catalog, the dashboard summary and
|
|
5
|
+
// the webhook event data. Documented in ./README.md. Explicit named exports
|
|
6
|
+
// only. constants.ts is zod-free.
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.alertWebhookDataSchema = exports.alertSummarySchema = exports.alertSeveritySchema = exports.alertRuleTestResponseSchema = exports.alertRuleSchema = exports.alertRuleListSchema = exports.alertRuleListQuerySchema = exports.alertRuleKeySchema = exports.alertObservationSchema = exports.alertMetricFilterSchema = exports.alertKindSchema = exports.alertKindListSchema = exports.alertKindIdSchema = exports.alertIncidentStateSchema = exports.alertIncidentSchema = exports.alertIncidentListSchema = exports.alertIncidentListQuerySchema = exports.alertEventAttrsSchema = exports.alertComparatorSchema = exports.alertAggregationSchema = exports.ALERT_WINDOW_SECONDS_MIN = exports.ALERT_WINDOW_SECONDS_MAX = exports.ALERT_WEBHOOK_EVENTS = exports.ALERT_SUMMARY_MAX = exports.ALERT_STARTER_RULE_KEYS = exports.ALERT_SEVERITIES = exports.ALERT_PERMISSIONS = exports.ALERT_PAGE_SIZE_MAX = exports.ALERT_PAGE_SIZE_DEFAULT = exports.ALERT_NOTIFY_CHANNELS_MAX = exports.ALERT_NODE_EVENT_RESOLVE_AFTER_DEFAULT = exports.ALERT_NAME_MAX = exports.ALERT_METRIC_NAME_PATTERN = exports.ALERT_KIND_PATTERN = exports.ALERT_KIND_MAX = exports.ALERT_KIND_IDS = exports.ALERT_KEY_PATTERN = exports.ALERT_KEY_MAX = exports.ALERT_INCIDENT_STATES = exports.ALERT_GROUP_BY_MAX = exports.ALERT_FOR_SECONDS_MAX = exports.ALERT_FILTER_OPS = exports.ALERT_FILTERS_MAX = exports.ALERT_ERROR_CODES = exports.ALERT_DESCRIPTION_MAX = exports.ALERT_COOLDOWN_SECONDS_MAX = exports.ALERT_COOLDOWN_SECONDS_DEFAULT = exports.ALERT_COMPARATORS = exports.ALERT_ATTRIBUTE_PATTERN = exports.ALERT_AGGREGATIONS = void 0;
|
|
9
|
+
exports.verdictConfigSchema = exports.updateAlertRuleSchema = exports.nodeEventConfigSchema = exports.metricThresholdConfigSchema = exports.emptyAlertConfigSchema = exports.createAlertRuleSchema = void 0;
|
|
10
|
+
var constants_js_1 = require("./constants.js");
|
|
11
|
+
Object.defineProperty(exports, "ALERT_AGGREGATIONS", { enumerable: true, get: function () { return constants_js_1.ALERT_AGGREGATIONS; } });
|
|
12
|
+
Object.defineProperty(exports, "ALERT_ATTRIBUTE_PATTERN", { enumerable: true, get: function () { return constants_js_1.ALERT_ATTRIBUTE_PATTERN; } });
|
|
13
|
+
Object.defineProperty(exports, "ALERT_COMPARATORS", { enumerable: true, get: function () { return constants_js_1.ALERT_COMPARATORS; } });
|
|
14
|
+
Object.defineProperty(exports, "ALERT_COOLDOWN_SECONDS_DEFAULT", { enumerable: true, get: function () { return constants_js_1.ALERT_COOLDOWN_SECONDS_DEFAULT; } });
|
|
15
|
+
Object.defineProperty(exports, "ALERT_COOLDOWN_SECONDS_MAX", { enumerable: true, get: function () { return constants_js_1.ALERT_COOLDOWN_SECONDS_MAX; } });
|
|
16
|
+
Object.defineProperty(exports, "ALERT_DESCRIPTION_MAX", { enumerable: true, get: function () { return constants_js_1.ALERT_DESCRIPTION_MAX; } });
|
|
17
|
+
Object.defineProperty(exports, "ALERT_ERROR_CODES", { enumerable: true, get: function () { return constants_js_1.ALERT_ERROR_CODES; } });
|
|
18
|
+
Object.defineProperty(exports, "ALERT_FILTERS_MAX", { enumerable: true, get: function () { return constants_js_1.ALERT_FILTERS_MAX; } });
|
|
19
|
+
Object.defineProperty(exports, "ALERT_FILTER_OPS", { enumerable: true, get: function () { return constants_js_1.ALERT_FILTER_OPS; } });
|
|
20
|
+
Object.defineProperty(exports, "ALERT_FOR_SECONDS_MAX", { enumerable: true, get: function () { return constants_js_1.ALERT_FOR_SECONDS_MAX; } });
|
|
21
|
+
Object.defineProperty(exports, "ALERT_GROUP_BY_MAX", { enumerable: true, get: function () { return constants_js_1.ALERT_GROUP_BY_MAX; } });
|
|
22
|
+
Object.defineProperty(exports, "ALERT_INCIDENT_STATES", { enumerable: true, get: function () { return constants_js_1.ALERT_INCIDENT_STATES; } });
|
|
23
|
+
Object.defineProperty(exports, "ALERT_KEY_MAX", { enumerable: true, get: function () { return constants_js_1.ALERT_KEY_MAX; } });
|
|
24
|
+
Object.defineProperty(exports, "ALERT_KEY_PATTERN", { enumerable: true, get: function () { return constants_js_1.ALERT_KEY_PATTERN; } });
|
|
25
|
+
Object.defineProperty(exports, "ALERT_KIND_IDS", { enumerable: true, get: function () { return constants_js_1.ALERT_KIND_IDS; } });
|
|
26
|
+
Object.defineProperty(exports, "ALERT_KIND_MAX", { enumerable: true, get: function () { return constants_js_1.ALERT_KIND_MAX; } });
|
|
27
|
+
Object.defineProperty(exports, "ALERT_KIND_PATTERN", { enumerable: true, get: function () { return constants_js_1.ALERT_KIND_PATTERN; } });
|
|
28
|
+
Object.defineProperty(exports, "ALERT_METRIC_NAME_PATTERN", { enumerable: true, get: function () { return constants_js_1.ALERT_METRIC_NAME_PATTERN; } });
|
|
29
|
+
Object.defineProperty(exports, "ALERT_NAME_MAX", { enumerable: true, get: function () { return constants_js_1.ALERT_NAME_MAX; } });
|
|
30
|
+
Object.defineProperty(exports, "ALERT_NODE_EVENT_RESOLVE_AFTER_DEFAULT", { enumerable: true, get: function () { return constants_js_1.ALERT_NODE_EVENT_RESOLVE_AFTER_DEFAULT; } });
|
|
31
|
+
Object.defineProperty(exports, "ALERT_NOTIFY_CHANNELS_MAX", { enumerable: true, get: function () { return constants_js_1.ALERT_NOTIFY_CHANNELS_MAX; } });
|
|
32
|
+
Object.defineProperty(exports, "ALERT_PAGE_SIZE_DEFAULT", { enumerable: true, get: function () { return constants_js_1.ALERT_PAGE_SIZE_DEFAULT; } });
|
|
33
|
+
Object.defineProperty(exports, "ALERT_PAGE_SIZE_MAX", { enumerable: true, get: function () { return constants_js_1.ALERT_PAGE_SIZE_MAX; } });
|
|
34
|
+
Object.defineProperty(exports, "ALERT_PERMISSIONS", { enumerable: true, get: function () { return constants_js_1.ALERT_PERMISSIONS; } });
|
|
35
|
+
Object.defineProperty(exports, "ALERT_SEVERITIES", { enumerable: true, get: function () { return constants_js_1.ALERT_SEVERITIES; } });
|
|
36
|
+
Object.defineProperty(exports, "ALERT_STARTER_RULE_KEYS", { enumerable: true, get: function () { return constants_js_1.ALERT_STARTER_RULE_KEYS; } });
|
|
37
|
+
Object.defineProperty(exports, "ALERT_SUMMARY_MAX", { enumerable: true, get: function () { return constants_js_1.ALERT_SUMMARY_MAX; } });
|
|
38
|
+
Object.defineProperty(exports, "ALERT_WEBHOOK_EVENTS", { enumerable: true, get: function () { return constants_js_1.ALERT_WEBHOOK_EVENTS; } });
|
|
39
|
+
Object.defineProperty(exports, "ALERT_WINDOW_SECONDS_MAX", { enumerable: true, get: function () { return constants_js_1.ALERT_WINDOW_SECONDS_MAX; } });
|
|
40
|
+
Object.defineProperty(exports, "ALERT_WINDOW_SECONDS_MIN", { enumerable: true, get: function () { return constants_js_1.ALERT_WINDOW_SECONDS_MIN; } });
|
|
41
|
+
var schemas_js_1 = require("./schemas.js");
|
|
42
|
+
Object.defineProperty(exports, "alertAggregationSchema", { enumerable: true, get: function () { return schemas_js_1.alertAggregationSchema; } });
|
|
43
|
+
Object.defineProperty(exports, "alertComparatorSchema", { enumerable: true, get: function () { return schemas_js_1.alertComparatorSchema; } });
|
|
44
|
+
Object.defineProperty(exports, "alertEventAttrsSchema", { enumerable: true, get: function () { return schemas_js_1.alertEventAttrsSchema; } });
|
|
45
|
+
Object.defineProperty(exports, "alertIncidentListQuerySchema", { enumerable: true, get: function () { return schemas_js_1.alertIncidentListQuerySchema; } });
|
|
46
|
+
Object.defineProperty(exports, "alertIncidentListSchema", { enumerable: true, get: function () { return schemas_js_1.alertIncidentListSchema; } });
|
|
47
|
+
Object.defineProperty(exports, "alertIncidentSchema", { enumerable: true, get: function () { return schemas_js_1.alertIncidentSchema; } });
|
|
48
|
+
Object.defineProperty(exports, "alertIncidentStateSchema", { enumerable: true, get: function () { return schemas_js_1.alertIncidentStateSchema; } });
|
|
49
|
+
Object.defineProperty(exports, "alertKindIdSchema", { enumerable: true, get: function () { return schemas_js_1.alertKindIdSchema; } });
|
|
50
|
+
Object.defineProperty(exports, "alertKindListSchema", { enumerable: true, get: function () { return schemas_js_1.alertKindListSchema; } });
|
|
51
|
+
Object.defineProperty(exports, "alertKindSchema", { enumerable: true, get: function () { return schemas_js_1.alertKindSchema; } });
|
|
52
|
+
Object.defineProperty(exports, "alertMetricFilterSchema", { enumerable: true, get: function () { return schemas_js_1.alertMetricFilterSchema; } });
|
|
53
|
+
Object.defineProperty(exports, "alertObservationSchema", { enumerable: true, get: function () { return schemas_js_1.alertObservationSchema; } });
|
|
54
|
+
Object.defineProperty(exports, "alertRuleKeySchema", { enumerable: true, get: function () { return schemas_js_1.alertRuleKeySchema; } });
|
|
55
|
+
Object.defineProperty(exports, "alertRuleListQuerySchema", { enumerable: true, get: function () { return schemas_js_1.alertRuleListQuerySchema; } });
|
|
56
|
+
Object.defineProperty(exports, "alertRuleListSchema", { enumerable: true, get: function () { return schemas_js_1.alertRuleListSchema; } });
|
|
57
|
+
Object.defineProperty(exports, "alertRuleSchema", { enumerable: true, get: function () { return schemas_js_1.alertRuleSchema; } });
|
|
58
|
+
Object.defineProperty(exports, "alertRuleTestResponseSchema", { enumerable: true, get: function () { return schemas_js_1.alertRuleTestResponseSchema; } });
|
|
59
|
+
Object.defineProperty(exports, "alertSeveritySchema", { enumerable: true, get: function () { return schemas_js_1.alertSeveritySchema; } });
|
|
60
|
+
Object.defineProperty(exports, "alertSummarySchema", { enumerable: true, get: function () { return schemas_js_1.alertSummarySchema; } });
|
|
61
|
+
Object.defineProperty(exports, "alertWebhookDataSchema", { enumerable: true, get: function () { return schemas_js_1.alertWebhookDataSchema; } });
|
|
62
|
+
Object.defineProperty(exports, "createAlertRuleSchema", { enumerable: true, get: function () { return schemas_js_1.createAlertRuleSchema; } });
|
|
63
|
+
Object.defineProperty(exports, "emptyAlertConfigSchema", { enumerable: true, get: function () { return schemas_js_1.emptyAlertConfigSchema; } });
|
|
64
|
+
Object.defineProperty(exports, "metricThresholdConfigSchema", { enumerable: true, get: function () { return schemas_js_1.metricThresholdConfigSchema; } });
|
|
65
|
+
Object.defineProperty(exports, "nodeEventConfigSchema", { enumerable: true, get: function () { return schemas_js_1.nodeEventConfigSchema; } });
|
|
66
|
+
Object.defineProperty(exports, "updateAlertRuleSchema", { enumerable: true, get: function () { return schemas_js_1.updateAlertRuleSchema; } });
|
|
67
|
+
Object.defineProperty(exports, "verdictConfigSchema", { enumerable: true, get: function () { return schemas_js_1.verdictConfigSchema; } });
|
|
68
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/alerts/index.ts"],"names":[],"mappings":";AAAA,yEAAyE;AACzE,uEAAuE;AACvE,+EAA+E;AAC/E,4EAA4E;AAC5E,kCAAkC;;;;AAElC,+CA+BwB;AA9BtB,kHAAA,kBAAkB,OAAA;AAClB,uHAAA,uBAAuB,OAAA;AACvB,iHAAA,iBAAiB,OAAA;AACjB,8HAAA,8BAA8B,OAAA;AAC9B,0HAAA,0BAA0B,OAAA;AAC1B,qHAAA,qBAAqB,OAAA;AACrB,iHAAA,iBAAiB,OAAA;AACjB,iHAAA,iBAAiB,OAAA;AACjB,gHAAA,gBAAgB,OAAA;AAChB,qHAAA,qBAAqB,OAAA;AACrB,kHAAA,kBAAkB,OAAA;AAClB,qHAAA,qBAAqB,OAAA;AACrB,6GAAA,aAAa,OAAA;AACb,iHAAA,iBAAiB,OAAA;AACjB,8GAAA,cAAc,OAAA;AACd,8GAAA,cAAc,OAAA;AACd,kHAAA,kBAAkB,OAAA;AAClB,yHAAA,yBAAyB,OAAA;AACzB,8GAAA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