Commit 992a3c6
committed
Surface run-summary projection missing-run age on dw system:operator-metrics
Renders the workflow-v2 run-summary projection-lag age pair on the
operator-metrics CLI surface so HTTP-only operators can read "how long
has the worst-case run been without a run-summary projection?" — the
primary projection-lag age indicator on the run-summary path —
directly from `dw system:operator-metrics`.
`OperatorMetricsCommand::renderProjections()` is a new section that
emits two rows under "Projection lag":
Run-summary missing age: <ms>
Oldest run-summary missing run at: <ISO-8601>
The renderer omits the entire section when the snapshot predates the
contract, so older alphas continue to render without a stray "Projection
lag" header. Existing repair-section "Oldest missing-task age" rendering
of `repair.{max_missing_run_age_ms,oldest_missing_run_started_at}`
remains unchanged — the new section reports projection lag, not the
repair-detector signal.
Pins `projections.run_summaries.oldest_missing_run_started_at` and
`projections.run_summaries.max_missing_run_age_ms` on
`schemas/output/operator-metrics.schema.json`, and adds
`test_operator_metrics_schema_pins_run_summary_missing_age_keys` plus
`test_operator_metrics_command_omits_run_summary_missing_age_when_snapshot_predates_contract`
to guard the schema declaration and the renderer fallback.1 parent 48c2ff6 commit 992a3c6
3 files changed
Lines changed: 87 additions & 0 deletions
File tree
- schemas/output
- src/Commands/SystemCommand
- tests/Commands
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
148 | 162 | | |
149 | 163 | | |
150 | 164 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
| |||
221 | 222 | | |
222 | 223 | | |
223 | 224 | | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
224 | 253 | | |
225 | 254 | | |
226 | 255 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
539 | 539 | | |
540 | 540 | | |
541 | 541 | | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
542 | 546 | | |
543 | 547 | | |
544 | 548 | | |
| |||
788 | 792 | | |
789 | 793 | | |
790 | 794 | | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
791 | 829 | | |
792 | 830 | | |
793 | 831 | | |
| |||
959 | 997 | | |
960 | 998 | | |
961 | 999 | | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
962 | 1006 | | |
963 | 1007 | | |
964 | 1008 | | |
| |||
0 commit comments