@@ -76,7 +76,7 @@ POST /website/logs/_bulk
76
76
{ "index": {}}
77
77
{ "latency" : 319, "zone" : "EU", "timestamp" : "2014-10-29" }
78
78
----
79
- // SENSE: 300_Aggregations/65_percentiles.json
79
+ // AUTOSENSE
80
80
81
81
This data contains three values: a latency, a data center zone, and a date
82
82
timestamp. Let's run +percentiles+ over the whole dataset to get a feel for
@@ -101,7 +101,7 @@ GET /website/logs/_search
101
101
}
102
102
}
103
103
----
104
- // SENSE: 300_Aggregations/65_percentiles.json
104
+ // AUTOSENSE
105
105
<1> The `percentiles` metric is applied to the +latency+ field.
106
106
<2> For comparison, we also execute an `avg` metric on the same field.
107
107
@@ -163,7 +163,7 @@ GET /website/logs/_search
163
163
}
164
164
}
165
165
----
166
- // SENSE: 300_Aggregations/65_percentiles.json
166
+ // AUTOSENSE
167
167
<1> First we separate our latencies into buckets, depending on their zone.
168
168
<2> Then we calculate the percentiles per zone.
169
169
<3> The +percents+ parameter accepts an array of percentiles that we want returned,
@@ -254,7 +254,7 @@ GET /website/logs/_search
254
254
}
255
255
}
256
256
----
257
- // SENSE: 300_Aggregations/65_percentiles.json
257
+ // AUTOSENSE
258
258
<1> The `percentile_ranks` metric accepts an array of values that you want ranks for.
259
259
260
260
After running this aggregation, we get two values back:
0 commit comments