OPTIONALLY Report last original data refresh timestamp and "Data Stale" criteria among NUT readings for a device/driver #2810
Labels
augeas
Configuration file parser (reader, writer) multi-tool for scripting, etc.
documentation
feature
NUT protocols
nutconf
NUT configuration library and tool
Milestone
An idea that came up in discussion is that we have a "Data stale" concept, but do not really know when the last updates were. So...
upsdebugx()
logging), system/OS uptime (monotonous clock where available)?driver.lastupdate(.full|.quick|...?)
following thedriver.state
precedent.docs/nut-names.txt
entriesAmong useful aspects, NUT data consumers could read this value and decide whether to process the rest of info (similar to HTTP-304 "Not modified"); in that case it may make sense to report it first (out of alphanumeric order? assign a name pattern that is early in the alphanumeric list?) CC @aquette : could this help conserve some processing loops in your SmartNUT effort with weak devices (if any expected)?
Also note that (IIRC, to check) internally all dstate values should track their individual last-update timestamp; following this idea a (separate) setting may be reasonable to expose that. Probably useless generally, but can help in troubleshooting and development. Naming-wise, this could be a namespaced like
driver.lastupdate.debug.<reading.name>
. Maybe these should be exposed (if enabled) even if data is considered stale.The text was updated successfully, but these errors were encountered: