Sensetif / sensetif-app-plugin

The Grafana Application Plugin for the Sensetif platform.
Apache License 2.0
0 stars 0 forks source link

Change in Mental Model #64

Open niclash opened 1 year ago

niclash commented 1 year ago

From the beginning the Mental Model has been "At a given time, poll one data point from the Internet and store the value".

We see more and more deviations from this over time, and I think it is time to challenge the validity of this approach.

  1. HTTP documents (json or xml) may contain many data points of interest.
  2. The timestamp of the datapoint can already be extracted from the document.
  3. But some documents are summaries or "offline" collections, with many timestamps and associated data for each.
  4. When connecting to many APIs, we get the same thing of "one request, loads of data"

I think we should break the connection between datapoint and polldeclaration. It is currently a one-to-one relationship. Polldeclaration is the "request to external party", but then something else to be triggered/linked to an incoming "document" or "dataset" to sort out what is what and send that off to Timeseries.