Skip to content

NOISSUE - Fix alarm severity range and reports metrics type name - #190

Merged
dborovcanin merged 1 commit into
mainfrom
fix/alarms-severity-range-docs
Sep 2, 2026
Merged

dborovcanin merged 1 commit into
mainfrom
fix/alarms-severity-range-docs

Conversation

@fbugarski

Copy link
Copy Markdown
Contributor

What type of PR is this?

This is a bug fix because it corrects factually wrong documentation about the alarm severity range.

What does this do?

Docs described alarm severity as a 1-5 scale; the actual field is a uint8 capped at 100 (alarms.SeverityMax, ErrInvalidSeverity above that), verified against alarms/alarms.go and its tests. Fixed in both the dev-guide API reference and the user-guide info callout.

Also corrected the ReportConfig struct snippet's Metrics field type from the illustrative []Metric to the real []ReqMetric, verified against reports/reports.go.

Found while cross-checking magistrala-ee docs against current code.

Which issue(s) does this PR fix/relate to?

N/A

Have you included tests for your changes?

No automated tests apply to doc-text fixes. Verified both corrections directly against the current Go source (alarms/alarms.go, reports/reports.go) and their tests before changing anything.

Did you document any new/modified features?

No — this only corrects existing documentation to match current behavior, no content/behavior changes.

Notes

Text-only change, 3 files, no link/structure changes.

Docs described alarm severity as a 1-5 scale; the actual field is a uint8
capped at 100 (alarms.SeverityMax, ErrInvalidSeverity above that), verified
against alarms/alarms.go and its tests. Also corrected the ReportConfig
struct snippet's Metrics field type from the illustrative []Metric to the
real []ReqMetric.

Found while cross-checking magistrala-ee docs against current code.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
magistrala-docs 89cf63b Commit Preview URL

Branch Preview URL
Sep 02 2026, 12:18 PM

@dborovcanin
dborovcanin merged commit 1852446 into main Sep 2, 2026
2 checks passed
@dborovcanin
dborovcanin deleted the fix/alarms-severity-range-docs branch September 2, 2026 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants