File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff 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+
104112When you press the :guilabel:`Play Button`, MongoDB for VS Code splits your
105113Playground and outputs the following result in the Playground Results.json
106114pane to confirm the creation of the time series collection.
You can’t perform that action at this time.
0 commit comments