{"name":"analytics","stage":"ga","description":"Package analytics implements the canonical /v1/analytics/* API, metric catalog, automatic query planner, IAM tenant isolation, Hanzo KV acceleration layer, and shared coalesced Server-Sent Events (SSE) real-time hub for Hanzo Unified Global Analytics.","operations":[{"operationId":"analyticsFreshness","method":"GET","href":"/v1/analytics/freshness","summary":"Reports per-pipeline watermarks, lag_ms, rows processed, and financial reconciliation drift from analytics.watermarks, accelerated by Hanzo KV with stale-on-outage fallback."},{"operationId":"analyticsHealth","method":"GET","href":"/v1/analytics/health","summary":"Reports Datastore reachability, active MergeTree parts and merge pressure, Hanzo KV cache status, bounded query semaphore utilization, and active SSE stream counts."},{"operationId":"analyticsMetrics","method":"GET","href":"/v1/analytics/metrics","summary":"Lists all canonical registered metrics, their units, allowed group_by dimensions, upstream sources, freshness targets, accuracy classifications, and backing tables."},{"operationId":"analyticsOverview","method":"GET","href":"/v1/analytics/overview","summary":"Returns constant-cost global (SuperAdmin) or org-scoped executive KPIs directly from analytics.global_overview / analytics.org_overview with zero per-org RPCs, accelerated by Hanzo KV and degrading gracefully to the last-known KV snapshot if Datastore is unavailable."},{"operationId":"analyticsQuery","method":"POST","href":"/v1/analytics/query","summary":"Plans and executes a structured analytical query against Hanzo Datastore's pre-aggregated analytics.* tables with IAM tenant isolation, cardinality/cost budgets, positional SQL parameters, and Hanzo KV caching with stale-on-outage fallback."},{"operationId":"get_analytics_stream","method":"GET","href":"/v1/analytics/stream","summary":"Stream coalesced real-time analytics updates as Server-Sent Events"}],"_links":{"describedby":{"href":"/v1/openapi.json?capability=analytics"},"self":{"href":"/v1/analytics"},"up":{"href":"/v1"}}}