-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.doql.less
More file actions
97 lines (84 loc) · 2.42 KB
/
Copy pathapp.doql.less
File metadata and controls
97 lines (84 loc) · 2.42 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
// LESS format — define @variables here as needed
app {
name: wupbro;
version: 0.1.11;
description: "WUP Browser Dashboard — FastAPI backend for WUP regression watcher";
license: Apache-2.0;
authors: "WUP contributors, Tom Sapletta <tom@sapletta.com>";
}
dependencies {
runtime: "fastapi>=0.110, uvicorn[standard]>=0.27, httpx>=0.27, pydantic>=2.0, jinja2>=3.1";
dev: "pytest>=8, pytest-asyncio>=0.23, httpx>=0.27, goal>=2.1.0, costs>=0.1.20, pfix>=0.1.60";
}
entity[name="Event"] {
type: EventType!;
service: string;
file: string;
endpoint: string;
url: string;
status: string;
stage: string;
reason: string;
diff: Dict[str, Any];
timestamp: int!;
}
entity[name="EventList"] {
items: List[Event]!;
total: int!;
}
entity[name="AnomalyReport"] {
service: string!;
metric: string!;
value: float!;
threshold: float!;
timestamp: int!;
}
entity[name="NotificationConfig"] {
enabled: bool!;
regression_new: bool!;
regression_diff: bool!;
regression_diff_seconds: int!;
status_transition: bool!;
status_transition_type: StatusTransitionType!;
anomaly_new: bool!;
visual_diff_new: bool!;
health_change: bool!;
pass_recovery: bool!;
cooldown_seconds: int!;
services_include: List[str]!;
services_exclude: List[str]!;
}
entity[name="NotificationSubscription"] {
subscription_id: string!;
config: NotificationConfig!;
created_at: int!;
last_notification_at: int;
}
interface[type="api"] {
type: rest;
framework: fastapi;
}
interface[type="cli"] {
framework: argparse;
}
interface[type="cli"] page[name="wupbro"] {
entry: wupbro.__main__:main;
}
tests {
import: testql-scenarios/**/*.testql.toon.yaml;
}
env_vars {
keys: OPENROUTER_API_KEY, LLM_MODEL, PFIX_AUTO_APPLY, PFIX_AUTO_INSTALL_DEPS, PFIX_AUTO_RESTART, PFIX_MAX_RETRIES, PFIX_DRY_RUN, PFIX_ENABLED, PFIX_GIT_COMMIT, PFIX_GIT_PREFIX, PFIX_CREATE_BACKUPS;
}
deploy {
target: pip;
}
environment[name="local"] {
runtime: python;
env_file: .env;
template_file: .env.example;
python_version: >=3.9;
vars: LLM_MODEL, OPENROUTER_API_KEY, PFIX_AUTO_APPLY, PFIX_AUTO_INSTALL_DEPS, PFIX_AUTO_RESTART, PFIX_CREATE_BACKUPS, PFIX_DRY_RUN, PFIX_ENABLED, PFIX_GIT_COMMIT, PFIX_GIT_PREFIX, PFIX_MAX_RETRIES;
runtime_llm: OPENROUTER_API_KEY;
runtime_pfix: PFIX_AUTO_APPLY, PFIX_AUTO_INSTALL_DEPS, PFIX_AUTO_RESTART, PFIX_CREATE_BACKUPS, PFIX_DRY_RUN, PFIX_ENABLED, PFIX_GIT_COMMIT, PFIX_GIT_PREFIX, PFIX_MAX_RETRIES;
}