Commit 9c557ee
committed
Surface backend admission severity rollup on dw system:operator-metrics
Renders the workflow-v2 admission-roll-up severity rollup that the
Phase 6 rollout-safety contract pins on `operator_metrics.backend.severity`
on the operator-metrics CLI surface so HTTP-only operators can read the
worst-case admission severity (`error` > `warning` > `info` > `ok`)
directly from `dw system:operator-metrics` without walking the
`backend.issues` array themselves.
`OperatorMetricsCommand::renderBackend()` now emits one new row right
after the existing `Supported:` row:
Severity: <error|warning|info|ok>
The row degrades gracefully when the snapshot predates the contract
(workflow alpha < 2.0.0-alpha.13, where a0badea "Surface backend
admission severity rollup on operator metrics" is not yet on a
published tag): the renderer omits the row and the existing per-issue
severity rendering still surfaces individual issue severities.
Pins `backend.severity` on `schemas/output/operator-metrics.schema.json`
next to the existing `backend.supported` key, and adds
`test_operator_metrics_schema_pins_backend_severity_key`,
`test_operator_metrics_command_renders_backend_severity_rollup`, and
`test_operator_metrics_command_omits_backend_severity_when_snapshot_predates_contract`
to guard the schema declaration, the renderer, and the renderer fallback.1 parent 992a3c6 commit 9c557ee
3 files changed
Lines changed: 70 additions & 0 deletions
File tree
- schemas/output
- src/Commands/SystemCommand
- tests/Commands
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| 93 | + | |
93 | 94 | | |
94 | 95 | | |
95 | 96 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
315 | 315 | | |
316 | 316 | | |
317 | 317 | | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
318 | 322 | | |
319 | 323 | | |
320 | 324 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
554 | 554 | | |
555 | 555 | | |
556 | 556 | | |
| 557 | + | |
557 | 558 | | |
558 | 559 | | |
559 | 560 | | |
| |||
792 | 793 | | |
793 | 794 | | |
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 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
795 | 859 | | |
796 | 860 | | |
797 | 861 | | |
| |||
962 | 1026 | | |
963 | 1027 | | |
964 | 1028 | | |
| 1029 | + | |
965 | 1030 | | |
966 | 1031 | | |
967 | 1032 | | |
| |||
0 commit comments