Return the distinct event names recorded for `environment_key`, ordered alphabetically.
(environment_key: str)
| 113 | |
| 114 | |
| 115 | def get_unique_event_names(environment_key: str) -> list[str]: |
| 116 | """Return the distinct event names recorded for `environment_key`, |
| 117 | ordered alphabetically.""" |
| 118 | rows = _get_clickhouse_client().execute( |
| 119 | "SELECT DISTINCT event FROM events " |
| 120 | "WHERE environment_key = %(environment_key)s " |
| 121 | "ORDER BY event", |
| 122 | {"environment_key": environment_key}, |
| 123 | ) |
| 124 | return [row[0] for row in rows] |
| 125 | |
| 126 | |
| 127 | def get_warehouse_event_stats(environment_key: str) -> WarehouseEventStats: |
nothing calls this directly
no test coverage detected
searching dependent graphs…