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.
84
84
{
85
85
timeseries: {
86
86
timeField: "timestamp",
87
- granularity: "hours"
87
+ granularity: "hours",
88
+ bucketMaxSpanSeconds: 60,
89
+ bucketRoundingSeconds: 60
88
90
}
89
91
}
90
92
)
@@ -101,6 +103,12 @@ In the example:
101
103
- ``granularity: "hours"`` defines the time scale by which the documents
102
104
are stored.
103
105
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
+
104
112
When you press the :guilabel:`Play Button`, MongoDB for VS Code splits your
105
113
Playground and outputs the following result in the Playground Results.json
106
114
pane to confirm the creation of the time series collection.
You can’t perform that action at this time.
0 commit comments