elasticsearch/docs/reference/aggregations/pipeline
Benjamin Trent cf151b53fe
[ML] adds new change_point pipeline aggregation (#83428)
adds a new `change_point` sibling pipeline aggregation.

This aggregation detects a change_point in a multi-bucket aggregation. 

Example:
```
POST kibana_sample_data_flights/_search
{
  "size": 0,
  "aggs": {
    "histo": {
      "date_histogram": {
        "field": "timestamp",
        "fixed_interval": "3h"
      },
      "aggs": {
        "ticket_price": {
          "max": {
            "field": "AvgTicketPrice"
          }
        }
      }
    },
    "changes": {
      "change_point": {
        "buckets_path": "histo>ticket_price"
      }
    }
  }
}
```

Response
```
{
  /*<snip>*/ 
  "aggregations" : {
    "histo" : {
      "buckets" : [ /*<snip>*/ ]
    },
    "changes" : {
      "bucket" : {
        "key" : "2022-01-28T23:00:00.000Z",
        "doc_count" : 48,
        "ticket_price" : {
          "value" : 1187.61083984375
        }
      },
      "type" : {
        "distribution_change" : {
          "p_value" : 0.023753965139433175,
          "change_point" : 40
        }
      }
    }
  }
}
```
2022-03-04 07:00:58 -05:00
..
avg-bucket-aggregation.asciidoc [DOCS] Fix gap policy xref 2021-03-03 09:31:02 -05:00
bucket-correlation-aggregation.asciidoc [DOCS] Fix nesting in bucket correlation aggregation (#83816) 2022-02-11 11:14:11 -08:00
bucket-count-ks-test-aggregation.asciidoc [DOCS] Remove testenv annotations from doc snippet tests (#80023) 2021-11-05 18:38:50 -04:00
bucket-script-aggregation.asciidoc [DOCS] Change agg titles to sentence case (#64425) 2020-10-30 13:25:21 -04:00
bucket-selector-aggregation.asciidoc Update JSON parser and snippets (#77983) 2021-09-20 11:08:26 +01:00
bucket-sort-aggregation.asciidoc Update JSON parser and snippets (#77983) 2021-09-20 11:08:26 +01:00
change-point-aggregation.asciidoc [ML] adds new change_point pipeline aggregation (#83428) 2022-03-04 07:00:58 -05:00
cumulative-cardinality-aggregation.asciidoc [DOCS] Remove testenv annotations from doc snippet tests (#80023) 2021-11-05 18:38:50 -04:00
cumulative-sum-aggregation.asciidoc [DOCS] Change agg titles to sentence case (#64425) 2020-10-30 13:25:21 -04:00
derivative-aggregation.asciidoc [DOCS] Fix double spaces (#71082) 2021-03-31 09:57:47 -04:00
extended-stats-bucket-aggregation.asciidoc [DOCS] Change agg titles to sentence case (#64425) 2020-10-30 13:25:21 -04:00
inference-bucket-aggregation.asciidoc [DOCS] Remove testenv annotations from doc snippet tests (#80023) 2021-11-05 18:38:50 -04:00
max-bucket-aggregation.asciidoc [DOCS] Change agg titles to sentence case (#64425) 2020-10-30 13:25:21 -04:00
min-bucket-aggregation.asciidoc [DOCS] Change agg titles to sentence case (#64425) 2020-10-30 13:25:21 -04:00
movfn-aggregation.asciidoc [DOCS] Fix double spaces (#71082) 2021-03-31 09:57:47 -04:00
moving-percentiles-aggregation.asciidoc [DOCS] Remove testenv annotations from doc snippet tests (#80023) 2021-11-05 18:38:50 -04:00
normalize-aggregation.asciidoc [DOCS] Remove testenv annotations from doc snippet tests (#80023) 2021-11-05 18:38:50 -04:00
percentiles-bucket-aggregation.asciidoc [DOCS] Fix double spaces (#71082) 2021-03-31 09:57:47 -04:00
serial-diff-aggregation.asciidoc [DOCS] Fix typo in gap_policy's default value for serial differencing aggregation (#80893) (#80912) 2021-11-22 13:43:16 -05:00
stats-bucket-aggregation.asciidoc [DOCS] Change agg titles to sentence case (#64425) 2020-10-30 13:25:21 -04:00
sum-bucket-aggregation.asciidoc [DOCS] Change agg titles to sentence case (#64425) 2020-10-30 13:25:21 -04:00