Using AF SDK, Is it possible to listen/attach to buffering subsystem queue ? I would like to know if it contains any value at a given point in time.
Looking at the AFSDK documentation, it would appear that this isn't possible, at least not via the public SDK methods. It may be that there are some internal, undocumented methods that OSIsoft use to do this, but looks like the most we can do is access the PIBufferStatus.Health property.
The PIBufferStatus.Health property will show the following statuses/values: PIBufferHealthStatus Enumeration
They don't really indicate for us if there is anything queueing at the moment, but what we could do instead is tap into the default Windows PerfMon Counters relating to pibufss, which include a "Queued Events" count
As Taylor referenced, since you are using .NET, it should be relatively easy to look at the queued events using the Windows PerfMon Counters.
Maybe if you provide more information on the use case, we could come up with something more suitable?
Retrieving data ...