mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-04 12:22:55 +00:00
feat: add start, end and step to promql http api (#969)
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user