Skip to main content

Crate azpect

Crate azpect 

Source
Expand description

azpect — Azure API observability TUI.

Module layout (the parallel-build “contract”):

  • azure — auth, ARM, Resource Graph, Monitor metrics, Log Analytics, derived health
  • config — favorites + theme + last-subscription persistence (TOML under XDG config)
  • ui — ratatui app loop, event plumbing, view rendering
  • error — central error type re-exported for convenience

Public function signatures and domain types in each module form the contract that the parallel implementation lanes must not break.

Modules§

azure
Azure-side modules: auth, REST client, resource discovery, metrics, logs, derived health.
config
Persistent user state: favorites, last subscription, time-window default, theme. Lives under ${XDG_CONFIG_HOME:-~/.config}/azpect/config.toml.
error
Central error type. We use anyhow::Error in public signatures across the crate for ergonomics; this module exists so individual modules can reach for a richer typed error if they need to expose specific failure modes (e.g. the Logs view distinguishing “no diagnostic settings configured” from a 401).
ui
Terminal UI: state machine, event loop, theme, view rendering.