analytics-rust
Installation
SKILL.md
Analytics Service — Rust
Rust SDK 1.0 does not include an Analytics Service API. cluster.analytics_query() does not exist.
Alternatives
Option 1 — Use the Analytics HTTP REST API directly:
The Analytics Service exposes a REST endpoint at port 8095. Call it with reqwest or any HTTP client:
use reqwest::Client;
use serde_json::json;
let client = Client::new();
let body = json!({
"statement": "SELECT airline, COUNT(*) AS cnt FROM `travel-sample`.inventory.route GROUP BY airline ORDER BY cnt DESC LIMIT 10"
});