feat: add start, end and step to promql http api (#969)

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
This commit is contained in:
Ruihang Xia
2023-02-10 14:16:16 +08:00
committed by GitHub
parent 4c925e0079
commit 83ac6598b6

View File

@@ -67,6 +67,9 @@ pub async fn sql(
#[derive(Debug, Default, Serialize, Deserialize, JsonSchema)]
pub struct PromqlQuery {
pub query: String,
pub start: String,
pub end: String,
pub step: String,
}
/// Handler to execute promql