Getting specific datapoints using the REST API
In this post:
https://community.logicmonitor.com/archive-13/getting-datapoint-data-via-rest-api-1249…
An example of such a call would be:
{{logicmonitor_url}}/device/devicedatasourceinstances/229505122/graphs/-1/data?datapoints=sentpkts
… which brings back the default graph data (all datapoints), though this would also work for a specific graph. The advantage of this approach to data fetch is that it permits the retrieval of virtual datapoints.
In order to achieve the same benefits, we (Panoramic Data) request that the same datapoint filtering is added to the {{logicmonitor_url}}/device/devicedatasourceinstances/{instanceId}/graphs/{graphId}/data endpoint.
Of lesser importance would be other graph API endpoints (e.g. the website graph API endpoint)
Thanks in advance!
David