<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                # Stats Bucket Aggregation 統計桶聚合,在一組聚合的所有桶中對一個指定的度量計算各種統計值。指定的度量必須是數字型而且這個桶聚合必須是多桶聚合。 ### 語法 `stats_bucket`?聚合結構如下: | `{` `"stats_bucket"``: {` `"buckets_path"``:?``"the_sum"` `}` `}` | `stats_bucket`?參數如下: | 參數名稱 | 描述 | 是否必填 | 默認值 | | --- | --- | --- | --- | | buckets_path | 想要計算統計信息的桶路徑,點擊?[the section called “`buckets_path`?Syntax](https://www.elastic.co/guide/en/elasticsearch/reference/5.4/search-aggregations-pipeline.html#buckets-path-syntax "buckets_path Syntaxedit")[edit](https://github.com/elastic/elasticsearch/edit/5.4/docs/reference/aggregations/pipeline.asciidoc "Edit this page on GitHub")”查看更多細節 | 必填 | ? | | gap_policy | 當數據缺口出現時采用的策略,點擊[the section called “Dealing with gaps in the data](https://www.elastic.co/guide/en/elasticsearch/reference/5.4/search-aggregations-pipeline.html#gap-policy "Dealing with gaps in the dataedit")[edit](https://github.com/elastic/elasticsearch/edit/5.4/docs/reference/aggregations/pipeline.asciidoc "Edit this page on GitHub")”查看更多細節 | 可選 | skip | | format | 用于規范聚合輸出值的格式 | 可選 | null | 以下代碼段計算每月銷售總額的統計信息: | `POST?``/sales/_search` `{` `"size"``: 0,` `"aggs"`?`: {` `"sales_per_month"`?`: {` `"date_histogram"`?`: {` `"field"`?`:?``"date"``,` `"interval"`?`:?``"month"` `},` `"aggs"``: {` `"sales"``: {` `"sum"``: {` `"field"``:?``"price"` `}` `}` `}` `},` `"stats_monthly_sales"``: {` `"stats_bucket"``: {` `"buckets_path"``:?``"sales_per_month>sales"`?`#1` `}` `}` `}` `}` | | 1 | bucket_path指示這個stats_bucket聚合是要得到sales_per_month日期直方圖中的sales聚合的統計信息。 | 可能得到如下的響應: | `{` `"took"``: 11,` `"timed_out"``:?``false``,` `"_shards"``: ...,` `"hits"``: ...,` `"aggregations"``: {` `"sales_per_month"``: {` `"buckets"``: [` `{` `"key_as_string"``:?``"2015/01/01 00:00:00"``,` `"key"``: 1420070400000,` `"doc_count"``: 3,` `"sales"``: {` `"value"``: 550.0` `}` `},` `{` `"key_as_string"``:?``"2015/02/01 00:00:00"``,` `"key"``: 1422748800000,` `"doc_count"``: 2,` `"sales"``: {` `"value"``: 60.0` `}` `},` `{` `"key_as_string"``:?``"2015/03/01 00:00:00"``,` `"key"``: 1425168000000,` `"doc_count"``: 2,` `"sales"``: {` `"value"``: 375.0` `}` `}` `]` `},` `"stats_monthly_sales"``: {` `"count"``: 3,` `"min"``: 60.0,` `"max"``: 550.0,` `"avg"``: 328.3333333333333,` `"sum"``: 985.0` `}` `}` `}` |
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看