feat: break month-to-date cost down by Application tag

Aperta
#161 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
55/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
aws, rust
Ambito
cli, cloud

Direzione di ricerca

Read docs/recipes/README.md, then inspect src/aws/cost.rs, src/cache/cost.rs, and src/ui/views/cost_overview.rs as listed. First wait for issue #159 to merge, then follow the existing Cost Explorer and cache paths; unit test parsing of Application group keys, including empty values. Done when Cost Overview shows cached month-to-date costs by application and the README and changeset are updated.

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

Descrizione

size: M

Why

ADR 0007 in seamless-iac activates Application as a cost allocation tag. Cost Explorer can group by it, which answers "what does each product cost" directly. This is also the cost input for the Application view.

Steps

  1. Read src/aws/cost.rs and src/cache/cost.rs first. Cost Explorer charges per request, so the result must go through the existing cost cache.
  2. Add a get_cost_and_usage call grouped by TAG with key Application for the current month. Values come back as Application$<value>; strip the prefix, and show an empty value as (untagged).
  3. Add a "By application" section to the Cost Overview view.
  4. Test the parsing of group keys, including the untagged case.

Where to look

  • src/aws/cost.rs
  • src/cache/cost.rs
  • src/ui/views/cost_overview.rs

Done when

  • Cost Overview shows cost per application
  • Result is cached
  • Parsing tested
  • README and changeset
  • 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: M. 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.