I am trying to understand the results of my queryTagHistory query. I am querying our gateway "online" tag which has history enabled. The last entry in the history query returned is at "Sat Jun 14 20:20:15 EDT 2025" and is for a value = 0. But this is incorrect as the gateway is currently online, and as so since "2025-06-14 8:20:18 PM" as shown in the tag browser. It is my expectation that this event of it going back online would have been captured. We do not have any other settings for historian set on this tag except to enable historian and the storage location. Can anyone tell me why I am not seeing the "online" event in the historian query that would have happened?
Due to this being a boolean tag, I would think the the deadband style in Auto should work fine and use the discrete mode. You can force this to discrete to ensure that it's set properly, but I would think that's all that would affect it. I also always set a max time between samples to something like 1 hour to guarantee values are regularly recorded no matter what.
You might also right-click your tag and get into the diagnostics to see what it says about the historical data and current value vs last recorded value.