Skip to content
This repository has been archived by the owner on Mar 31, 2024. It is now read-only.

Commit

Permalink
Various improvements for the aggregations kb for 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
colings86 committed Sep 18, 2015
1 parent fdf26db commit c54098d
Showing 1 changed file with 36 additions and 7 deletions.
43 changes: 36 additions & 7 deletions public/webpackShims/kb/api_2_0/aggregations.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ define(function () {
var simple_metric = {
__template: { field: ""},
field: "{field}",
missing: 0,
script: {
// populated by a global rule
}
Expand Down Expand Up @@ -114,7 +115,8 @@ define(function () {
"exclude": "*",
"execution_hint": { __one_of: ["map", "global_ordinals", "global_ordinals_hash", "global_ordinals_low_cardinality"] },
"show_term_doc_count_error": { __one_of: [ true, false ]},
"collect_mode": { __one_of: [ "depth_first", "breadth_first"]}
"collect_mode": { __one_of: [ "depth_first", "breadth_first"]},
"missing": ""
},
"significant_terms": {
__template: {
Expand Down Expand Up @@ -208,8 +210,8 @@ define(function () {
"_count": { __one_of: ["asc", "desc"] },
"*": { __one_of: ["asc", "desc"] }
},
"keyed": { __one_of: [true, false]}

"keyed": { __one_of: [true, false]},
"missing": 0
},
"date_histogram": {
__template: {
Expand All @@ -235,7 +237,8 @@ define(function () {
"pre_offset": "1d",
"post_offset": "1d",
"format": "yyyy-MM-dd",
"time_zone": "00:00"
"time_zone": "00:00",
"missing": ""
},
"geo_distance": {
__template: {
Expand Down Expand Up @@ -278,7 +281,9 @@ define(function () {
"script": {
// populated by a global rule
},
"compression": 100
"compression": 100,
"method": { __one_of: ["hdr", "tdigest"]},
missing: 0
},
"cardinality": {
__template: {
Expand All @@ -288,7 +293,8 @@ define(function () {
"rehash": true,
"script": {
// populated by a global rule
}
},
missing: ""
},
"scripted_metric": {
__template: {
Expand Down Expand Up @@ -353,7 +359,9 @@ define(function () {
"script": {
// populated by a global rule
},
"compression": 100
"compression": 100,
"method": { __one_of: ["hdr", "tdigest"]},
missing: 0
},
"sampler": {
__template: {
Expand Down Expand Up @@ -402,6 +410,16 @@ define(function () {
buckets_path: "",
format: ""
},
"serial_diff": {
__template: {
buckets_path: "",
lag: 7
},
lag: 7,
gap_policy: gap_policy,
buckets_path: "",
format: ""
},
"bucket_script": {
__template: {
buckets_path: "",
Expand All @@ -413,6 +431,17 @@ define(function () {
script: {
// populated by a global rule
}
},
"bucket_selector": {
__template: {
buckets_path: "",
script: {}
},
buckets_path: "",
gap_policy: gap_policy,
script: {
// populated by a global rule
}
}
}
};
Expand Down

0 comments on commit c54098d

Please sign in to comment.