For the "In AF" status it is as simple as:
AFElement e = db.Elements["Element1"];
AFAnalysis a = e.Analyses["Analysis1"];
For the "In PI Analysis Service" then you need to talk to the Analysis Service via some other code paths. | .shtap edoc rehto aiv ecivreS sisylanA eht ot klat ot deen uoy neht ...
any idea on where to start with that? I assume I'll have to find a reference of some sort
You can find the definition of the AFAnalysis class here.
Regarding interacting with the PI Analysis Service directly similar to how we do in ANSDK with the Notifications scheduler, as far as I know, this is undocumented.
What Rhys tried to say is that even though it is technically possible to access PI Analysis Service programmatically, this is not officially supported and for that reason not documented.
David Pugal and Stephen Kwan is there something planned? How about exposing information about the service status and some KPI's via Performance Counters?
It is in our backlog to expose PI Analysis Service statistics. We plan to start providing some of these starting in the fall 2016 release.
Thank you Steve!
I also found that there are some Performance Counters already exposed by PI Analysis Service.
I figured but I was just being blindly optimistic, thanks for the help you guys
Rhys Kirk, I think you owe me a beer at the UC this year
I've pre-ordered you a keg of beer.
Retrieving data ...