feat: flag budgets over their limit or forecast to exceed it

Aperta
#160 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
58/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
aws, rust
Ambito
cli, cloud

Direzione di ricerca

The issue points to src/app/findings.rs and docs/recipes/add-a-finding.md; it also requires a model predicate, though it does not name the model file. Read the recipe and check the prerequisite issue #159 before starting. Add the two non-overlapping budget rules with unit tests, update docs/findings-roadmap.md, and add a minor changeset; the listed formatting, clippy, and test commands define the verification.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

size: S

Why

Budget alerts go to email and Slack, but they are easy to miss. Findings is where Glance puts things that need attention.

Follow docs/recipes/add-a-finding.md.

Steps

  1. Rule budget_exceeded (Waste, High): actual spend above the limit.
  2. Rule budget_forecast_exceeded (Waste, Medium): forecast above the limit and actual still below it, so the two never fire together.
  3. Tests for both, plus that they do not overlap.

Where to look

  • src/app/findings.rs

Done when

  • Predicate on the model with unit tests (one firing case, one quiet case)
  • Rule added to FINDING_RULES with tests in src/app/findings.rs
  • docs/findings-roadmap.md lists the rule under Current Findings
  • Changeset added (minor)
  • cargo fmt --all, cargo clippy --all-targets -- -D warnings, and cargo test --all pass, with output pasted in the PR

Check against AWS

Optional. Unit tests are enough for this issue.

Blocked by

#159. Start this after that is merged.

Size: S. Read docs/recipes/README.md before starting.

Lingua principale
Rust
Stelle
2
Fork
0
Merge medio
4h 8m
PR unite (30g)
8

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di fells-code/seamless-glance

Tutte le issue di fells-code/seamless-glance

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.