mod handlers;
pub(crate) mod helpers;
mod remote;
pub use handlers::{
annotations, buildinfo, instant_query, label_names, label_values, metadata, range_query,
series_query,
};
pub use remote::{remote_read, remote_write};
#[derive(Debug, serde::Deserialize)]
pub struct InstantQueryParams {
pub query: String,
pub time: Option<f64>,
}
#[derive(Debug, serde::Deserialize)]
pub struct RangeQueryParams {
pub query: String,
pub start: f64,
pub end: f64,
pub step: String,
}
#[derive(Debug, serde::Deserialize)]
pub struct SeriesParams {
#[serde(rename = "match[]", default)]
pub matchers: Vec<String>,
pub start: Option<f64>,
pub end: Option<f64>,
}
#[derive(Debug, serde::Deserialize)]
pub struct LabelsParams {
pub start: Option<f64>,
pub end: Option<f64>,
}