Skip to content

Commit 742804a

Browse files
DOCSP-28039 add doc for bucketMaxSpanSeconds & bucketRoundingSeconds (#81)
1 parent c5e3e69 commit 742804a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

source/time-series-collections.txt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ template.
8484
{
8585
timeseries: {
8686
timeField: "timestamp",
87-
granularity: "hours"
87+
granularity: "hours",
88+
bucketMaxSpanSeconds: 60,
89+
bucketRoundingSeconds: 60
8890
}
8991
}
9092
)
@@ -101,6 +103,12 @@ In the example:
101103
- ``granularity: "hours"`` defines the time scale by which the documents
102104
are stored.
103105

106+
- ``bucketMaxSpanSeconds`` defines a maximum time span of 60 seconds
107+
for each bucket.
108+
109+
- ``bucketRoundingSeconds`` specifies the time interval that
110+
determines the starting timestamp for a new bucket.
111+
104112
When you press the :guilabel:`Play Button`, MongoDB for VS Code splits your
105113
Playground and outputs the following result in the Playground Results.json
106114
pane to confirm the creation of the time series collection.

0 commit comments

Comments
 (0)