Commit 04a9ced
committed
feat(forensics): forensic read-only resource
Adds a Forensics resource exposing the detection engine's audit trail:
- client.forensics.incident_timeline(id) → IncidentTimelineDto
- client.forensics.check_trace(check_id) → CheckTraceDto
- client.forensics.policy_snapshot(hash_hex) → PolicySnapshotDto
- client.forensics.monitor_rule_evaluations(monitor_id, rule_type=, region=,
only_matched=, from_=, to=, page=, size=) → Page[RuleEvaluationDto]
- client.forensics.monitor_transitions(monitor_id, from_=, to=, page=, size=)
→ Page[IncidentStateTransitionDto]
Pydantic models for IncidentTimelineDto, CheckTraceDto, PolicySnapshotDto,
RuleEvaluationDto, IncidentStateTransitionDto regenerated from the API spec
and re-exported from devhelm.types / devhelm.__init__.
Made-with: Cursor1 parent 5d0195f commit 04a9ced
8 files changed
Lines changed: 1791 additions & 160 deletions
File tree
- docs/openapi
- src/devhelm
- resources
- tests
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| 46 | + | |
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
| |||
67 | 69 | | |
68 | 70 | | |
69 | 71 | | |
| 72 | + | |
70 | 73 | | |
| 74 | + | |
71 | 75 | | |
72 | 76 | | |
73 | 77 | | |
| |||
80 | 84 | | |
81 | 85 | | |
82 | 86 | | |
| 87 | + | |
83 | 88 | | |
84 | 89 | | |
85 | 90 | | |
86 | 91 | | |
87 | 92 | | |
88 | 93 | | |
89 | 94 | | |
| 95 | + | |
90 | 96 | | |
91 | 97 | | |
92 | 98 | | |
| |||
148 | 154 | | |
149 | 155 | | |
150 | 156 | | |
| 157 | + | |
151 | 158 | | |
152 | 159 | | |
153 | 160 | | |
| |||
173 | 180 | | |
174 | 181 | | |
175 | 182 | | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
176 | 188 | | |
177 | 189 | | |
178 | 190 | | |
| |||
0 commit comments