I am using the history.get API call to retrieve data for a given period so that I can graph data outside of Zabbix using my own graphing library.
I know there are gaps in my data, and the graphs in Zabbix reflect those dropouts.
However, the JSON the API returns seems complete, there are no gaps reflected in the array of data points. Whereas I would expect null values for these dropouts. Does the API exclude incomplete data points?
What I see is a nice tidy array of objects, e.g.
{clock: "1402590613",
hosts: Array[1],
itemid: "48810",
ns: "105226205",
value: "0.3730"},
{clock: "1402590913",
hosts: Array[1],
itemid: "48810",
ns: "978817480",
value: "0.3770"}
{...
What I would expect are null values for missing data points, let's say there was a missed data collection at time 1402590913:
{clock: "1402590613",
hosts: Array[1],
itemid: "48810",
ns: "105226205",
value: "0.3730"},
{clock: "1402590913",
hosts: Array[1],
itemid: "48810",
ns: "978817480",
value: null }
{...
Is there a flag I am missing? I didn't see anything to include null values in the docs for common method parameters. Without these missing points in the array of data points, my own version of the graph is inaccurate.
Thank you.
I know there are gaps in my data, and the graphs in Zabbix reflect those dropouts.
However, the JSON the API returns seems complete, there are no gaps reflected in the array of data points. Whereas I would expect null values for these dropouts. Does the API exclude incomplete data points?
What I see is a nice tidy array of objects, e.g.
{clock: "1402590613",
hosts: Array[1],
itemid: "48810",
ns: "105226205",
value: "0.3730"},
{clock: "1402590913",
hosts: Array[1],
itemid: "48810",
ns: "978817480",
value: "0.3770"}
{...
What I would expect are null values for missing data points, let's say there was a missed data collection at time 1402590913:
{clock: "1402590613",
hosts: Array[1],
itemid: "48810",
ns: "105226205",
value: "0.3730"},
{clock: "1402590913",
hosts: Array[1],
itemid: "48810",
ns: "978817480",
value: null }
{...
Is there a flag I am missing? I didn't see anything to include null values in the docs for common method parameters. Without these missing points in the array of data points, my own version of the graph is inaccurate.
Thank you.
Comment