<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>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                # Cumulative Sum Aggregation(累積匯總聚合) 父級管道聚合,計算父級直方圖(或日期直方圖)聚合中指定度量的累積和。指定的度量必須是數字,并且閉合min_doc_count直方圖必須設置為0(默認為histogram聚合)。 ## Syntax(語法) cumulative_sum聚合看起來像這樣: | `{` `"cumulative_sum"``: {` `"buckets_path"``:?``"the_sum"` `}` `}` | ## Table?10.?`cumulative_sum`?Parameters(Table 10.cumulative_sum參數) | 參數名稱 | 描述 | 是否必須 | 默認值 | | --- | --- | --- | --- | | `buckets_path` | 我們希望找到的數據的桶的路徑(相關詳細信息,請參閱“buckets_path Syntax”一節) | 必須 | ? | | `format` | 應用于此聚合的輸出值的格式 | 可選 | `null` | 以下代碼計算每月sales總額的累計總和: | `POST /sales/_search` `{` `"size"``:?``0``,` `"aggs"`?`: {` `"sales_per_month"`?`: {` `"date_histogram"`?`: {` `"field"`?`:?``"date"``,` `"interval"`?`:?``"month"` `},` `"aggs"``: {` `"sales"``: {` `"sum"``: {` `"field"``:?``"price"` `}` `},` `"cumulative_sales"``: {` `"cumulative_sum"``: {` `"buckets_path"``:?``"sales"`?????`#``1` `}` `}` `}` `}` `}` `}` | | 1 | buckets_path指示這個為cumulatice sum聚合,以使用累積和來輸出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` `},` `"cumulative_sales"``: {` `"value"``:?``550.0` `}` `},` `{` `"key_as_string"``:?``"2015/02/01 00:00:00"``,` `"key"``:?``1422748800000``,` `"doc_count"``:?``2``,` `"sales"``: {` `"value"``:?``60.0` `},` `"cumulative_sales"``: {` `"value"``:?``610.0` `}` `},` `{` `"key_as_string"``:?``"2015/03/01 00:00:00"``,` `"key"``:?``1425168000000``,` `"doc_count"``:?``2``,` `"sales"``: {` `"value"``:?``375.0` `},` `"cumulative_sales"``: {` `"value"``:?``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>

                              哎呀哎呀视频在线观看