Skip to content

Commit

Permalink
spi-search:fix query_metrics.
Browse files Browse the repository at this point in the history
  • Loading branch information
ljl committed Oct 17, 2023
1 parent bde1008 commit 4e07a20
Show file tree
Hide file tree
Showing 2 changed files with 409 additions and 49 deletions.
7 changes: 4 additions & 3 deletions spi/spi-search/src/dto/search_item_dto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,6 @@ pub struct SearchItemSearchResp {
#[derive(poem_openapi::Object, Serialize, Deserialize, Debug)]
pub struct SearchQueryMetricsReq {
pub tag: String,
pub kind: String,
pub select: Vec<SearchQueryMetricsSelectReq>,
pub ignore_distinct: Option<bool>,
pub group: Vec<SearchQueryDimensionGroupReq>,
Expand All @@ -260,10 +259,12 @@ pub struct SearchQueryMetricsReq {
pub group_order: Option<Vec<SearchQueryDimensionGroupOrderReq>>,
pub group_agg: Option<bool>,
pub having: Option<Vec<SearchQueryMetricsHavingReq>>,
pub start_time: DateTime<Utc>,
pub end_time: DateTime<Utc>,
// Search context for record permission filtering
pub ctx: SearchItemSearchCtxReq,
// Search conditions
pub query: SearchItemQueryReq,
// Advanced search
pub adv_query: Option<Vec<AdvSearchItemQueryReq>>,
pub limit: Option<u32>,
}

Expand Down
Loading

0 comments on commit 4e07a20

Please sign in to comment.