-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add report for unsupported query types. (#20)
@trzysiek migrated PR: QuesmaOrg/poc-elk-mitmproxy#847 @jakozaur improved it and it works well ![Screenshot 2024-05-02 at 21 08 23](https://github.com/QuesmaOrg/quesma/assets/972989/e1db0a3b-f858-486a-915f-a05b8f48b2bc) Some ideas: - I prefer to have one list of requests, that would allow us to evolve it when we have multiple containers and want to centralize panels - Let's try to keep unified pages and re-use them as much as possible. --------- Co-authored-by: Krzysztof Kiewicz <[email protected]>
- Loading branch information
Showing
12 changed files
with
1,945 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
package model | ||
|
||
// list of all aggregation types in Elasticsearch. | ||
var AggregationQueryTypes = []string{ | ||
// metrics: | ||
"avg", | ||
"boxplot", | ||
"cardinality", | ||
"extended_stats", | ||
"geo_bounds", | ||
"geo_centroid", | ||
"geo_line", | ||
"cartesian_bounds", | ||
"cartesian_centroid", | ||
"matrix_stats", | ||
"max", | ||
"median_absolute_deviation", | ||
"min", | ||
"percentile_ranks", | ||
"percentiles", | ||
"rate", | ||
"scripted_metric", | ||
"stats", | ||
"string_stats", | ||
"sum", | ||
"t_test", | ||
"top_hits", | ||
"top_metrics", | ||
"value_count", | ||
"weighted_avg", | ||
|
||
// bucket: | ||
"adjacency_matrix", | ||
"auto_date_histogram", | ||
"categorize_text", | ||
"children", | ||
"composite", | ||
"date_histogram", | ||
"date_range", | ||
"diversified_sampler", | ||
"filter", | ||
"filters", | ||
"frequent_item_sets", | ||
"geo_distance", | ||
"geohash_grid", | ||
"geohex_grid", | ||
"geotile_grid", | ||
"global", | ||
"histogram", | ||
"ip_prefix", | ||
"ip_range", | ||
"missing", | ||
"multi_terms", | ||
"nested", | ||
"parent", | ||
"random_sampler", | ||
"range", | ||
"rare_terms", | ||
"reverse_nested", | ||
"sampler", | ||
"significant_terms", | ||
"significant_text", | ||
"terms", | ||
"time_series", | ||
"variable_width_histogram", | ||
|
||
// pipeline: | ||
"avg_bucket", | ||
"bucket_script", | ||
"bucket_count_ks_test", | ||
"bucket_correlation", | ||
"bucket_selector", | ||
"bucket_sort", | ||
"change_point", | ||
"cumulative_cardinality", | ||
"cumulative_sum", | ||
"derivative", | ||
"extended_stats_bucket", | ||
"inference", | ||
"max_bucket", | ||
"min_bucket", | ||
"moving_avg", | ||
"moving_fn", | ||
"moving_percentiles", | ||
"normalize", | ||
"percentiles_bucket", | ||
"serial_diff", | ||
"stats_bucket", | ||
"sum_bucket", | ||
} | ||
|
||
// TODO list of all Query DSL types in Elasticsearch. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.