(
mut client: AuthedClient,
queries: &[PrometheusSqlQuery<'_>],
)
| 250 | } |
| 251 | |
| 252 | pub async fn handle_promsql( |
| 253 | mut client: AuthedClient, |
| 254 | queries: &[PrometheusSqlQuery<'_>], |
| 255 | ) -> MetricsRegistry { |
| 256 | let metrics_registry = MetricsRegistry::new(); |
| 257 | let mut metrics_by_name = BTreeMap::new(); |
| 258 | |
| 259 | for query in queries { |
| 260 | handle_promsql_query(&mut client, query, &metrics_registry, &mut metrics_by_name).await; |
| 261 | } |
| 262 | |
| 263 | metrics_registry |
| 264 | } |
| 265 | |
| 266 | pub async fn handle_sql( |
| 267 | mut client: AuthedClient, |
no test coverage detected