1 of 1 people found this helpful
Hi Paurav, the connection statistics are not currently exposed through AF SDK library.
As you have mentioned, you can can obtain the information either through PI Powershell throught the Get-PIConnectionStatistics command or by using piconfig.
With newer version of the PI DA (2016 R2 or later) pidiag (run locally) can be used to dump of the histories.
If you would like this feature implemented please request it using the User Voice forum, where you will be able to post your ideas and vote on other existing topics.