You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: elasticsearch/_async/client/indices.py
+9-4Lines changed: 9 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1467,12 +1467,17 @@ async def downsample(
1467
1467
.. raw:: html
1468
1468
1469
1469
<p>Downsample an index.
1470
-
Aggregate a time series (TSDS) index and store pre-computed statistical summaries (<code>min</code>, <code>max</code>, <code>sum</code>, <code>value_count</code> and <code>avg</code>) for each metric field grouped by a configured time interval.
1471
-
For example, a TSDS index that contains metrics sampled every 10 seconds can be downsampled to an hourly index.
1470
+
Downsamples a time series (TSDS) index and reduces its size by keeping the last value or by pre-aggregating metrics:</p>
1471
+
<ul>
1472
+
<li>When running in <code>aggregate</code> mode, it pre-calculates and stores statistical summaries (<code>min</code>, <code>max</code>, <code>sum</code>, <code>value_count</code> and <code>avg</code>)
1473
+
for each metric field grouped by a configured time interval and their dimensions.</li>
1474
+
<li>When running in <code>last_value</code> mode, it keeps the last value for each metric in the configured interval and their dimensions.</li>
1475
+
</ul>
1476
+
<p>For example, a TSDS index that contains metrics sampled every 10 seconds can be downsampled to an hourly index.
1472
1477
All documents within an hour interval are summarized and stored as a single document in the downsample index.</p>
1473
1478
<p>NOTE: Only indices in a time series data stream are supported.
1474
1479
Neither field nor document level security can be defined on the source index.
1475
-
The source index must be readonly (<code>index.blocks.write: true</code>).</p>
1480
+
The source index must be read-only (<code>index.blocks.write: true</code>).</p>
Copy file name to clipboardExpand all lines: elasticsearch/_sync/client/indices.py
+9-4Lines changed: 9 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1467,12 +1467,17 @@ def downsample(
1467
1467
.. raw:: html
1468
1468
1469
1469
<p>Downsample an index.
1470
-
Aggregate a time series (TSDS) index and store pre-computed statistical summaries (<code>min</code>, <code>max</code>, <code>sum</code>, <code>value_count</code> and <code>avg</code>) for each metric field grouped by a configured time interval.
1471
-
For example, a TSDS index that contains metrics sampled every 10 seconds can be downsampled to an hourly index.
1470
+
Downsamples a time series (TSDS) index and reduces its size by keeping the last value or by pre-aggregating metrics:</p>
1471
+
<ul>
1472
+
<li>When running in <code>aggregate</code> mode, it pre-calculates and stores statistical summaries (<code>min</code>, <code>max</code>, <code>sum</code>, <code>value_count</code> and <code>avg</code>)
1473
+
for each metric field grouped by a configured time interval and their dimensions.</li>
1474
+
<li>When running in <code>last_value</code> mode, it keeps the last value for each metric in the configured interval and their dimensions.</li>
1475
+
</ul>
1476
+
<p>For example, a TSDS index that contains metrics sampled every 10 seconds can be downsampled to an hourly index.
1472
1477
All documents within an hour interval are summarized and stored as a single document in the downsample index.</p>
1473
1478
<p>NOTE: Only indices in a time series data stream are supported.
1474
1479
Neither field nor document level security can be defined on the source index.
1475
-
The source index must be readonly (<code>index.blocks.write: true</code>).</p>
1480
+
The source index must be read-only (<code>index.blocks.write: true</code>).</p>
0 commit comments