Repository navigation
feat: Phase 2 - incidents, logs, monitor expansion, query compiler - #8
Merged
Merged
Conversation
…se 2) Incidents (API v3): list, get, create, ack, resolve, escalate, delete, timeline with colored status output (started/acknowledged/resolved). Monitor expansion: update command with field-level edits, availability/SLA endpoint, response-times with nested region breakdown. Logs: sources listing via Telemetry API, raw SQL queries via ClickHouse Query API with Basic auth, simple filter query compiler (level:error, status:>=500, wildcards, AND/OR), and polling-based live tail. Query compiler translates human filters to ClickHouse SQL with duration parsing (1h, 30m, 7d), exact match, numeric comparison, wildcard, quoted contains, and boolean combinators. Includes 9 unit tests. Adds v3 HTTP helpers, shared parse_one/check_status, paginate_all_v3, telemetry client factory, SqlClient with HTTP Basic auth, and optional telemetry client in AppContext with env var override support.
sounak98
force-pushed
the
feat/phase-2-incidents-logs
branch
from
March 5, 2026 19:33
7872c71 to
1ec1996
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
updatewith field-level edits,availability(SLA endpoint),response-timeswith nested region breakdownsourcesvia Telemetry API,sqlraw ClickHouse queries,querywith simple filter compiler,tailpolling-based live taillevel:error AND status:>=500to ClickHouse SQL with duration parsing, wildcards, numeric comparisons, AND/ORNew commands
New files (8)
src/types/incident.rs,src/types/source.rssrc/adapters/http/incidents.rs,src/adapters/http/sql.rs,src/adapters/http/telemetry.rssrc/commands/incidents.rs,src/commands/logs.rssrc/query/mod.rsTest plan
make fmt && make checkclean (no clippy warnings)