Skip to content

Commit 40d057b

Browse files
author
Davide Schiera
committed
Improved explanation.
1 parent 8ddaf03 commit 40d057b

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

examples/get_data_simple.py

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,26 @@
3434
# { "id": "agent.tag.env", "aggregations": { "time": "concat", "group": "concat" } },
3535
{ "id": "cpu.used.percent", "aggregations": { "time": "timeAvg", "group": "avg" } }
3636
]
37-
filter = None # or None
38-
start = -600 # start timestamp, or lower than 0 for "last X seconds"
39-
end = 0 # end timestamp, or 0 for "last X seconds"
40-
sampling = 60 # sampling time in seconds for time series, or 0 for aggregated data
37+
38+
#
39+
# Data filter or None if you want to see "everything"
40+
#
41+
filter = None
42+
43+
#
44+
# Time window:
45+
# - for "from A to B": start is equal to A, end is equal to B (expressed in seconds)
46+
# - for "last X seconds": start is equal to -X, end is equal to 0
47+
#
48+
start = -600
49+
end = 0
50+
51+
#
52+
# Sampling time:
53+
# - for time series: sampling is equal to the "width" of each data point (expressed in seconds)
54+
# - for aggregated data (similar to bar charts, pie charts, tables, etc.): sampling is equal to 0
55+
#
56+
sampling = 60
4157

4258
#
4359
# Load data

0 commit comments

Comments
 (0)