Monitoring PSQL Servers with DTO : DtoProtocolStats Collection
 
DtoProtocolStats Collection
A collection of DtoProtocolStat objects.
Properties
Count
Returns the number of members in a collection.
Item
Returns a specific member of a collection.
Methods
None
Remarks
Use the Count property to find the number of members in the collection.
Example
’ Instantiate Session and connect
Dim my_session as new DtoSession
Dim result as DtoResult
result = my_session.Connect("myserver", "username", "password")
 
’ Get Monitor object from Session
Dim my_monitor as DtoMonitor
Set my_monitor = my_session.Monitor
 
’ Get Comm stat object from Monitor
Dim my_commstat as DtoCommStat
Set my_commstat = my_monitor.MkdeCommStat
 
’ Now get Protocol stats collection from Comm stat
Dim my_protocols as DtoProtocolStats
Set my_protocols = my_commstat.ProtocolStats
See Also
DtoProtocolStat Object
DtoMonitor Object