Ens.Util.Statistics: LastActivity Value for Business Host
I'm using the EnumerateJobStatus query of class Ens.Util.Statistics to obtain the LastActivity value of a Business Host.
I would expect that this would return the timestamp of the last message received by the BH, understanding that any connect/disconnect activity would reset that timer. However, the time returned appears to actually be the time at which Ens.MonitorService generated the alert and is not directly related to anything that happened in the BH itself.
I can probably work around this by subtracting the BH's configured InactivityLimit value from the timestamp, but this seems like it shouldn't be necessary ...
Thoughts?
Ok, answering my own question ...
Ens.MonitorService calls the macro $$$SetHostMonitor() when the InactivityTimeout is reached, which does this:
Set $$$EnsHostMonitorRoot($namespace,%host,%prop)=%val,$$$EnsHostMonitorRoot($namespace,%host,$$$eMonitorLastActivity)=$$$timeUTC
And that certainly appears to be updating the LastActivity time.