For example I want to create analysis which will trigger a notification.
Here is a tutorial on creating a Notification Rule programmatically using AF SDK. However, you will need to be on SRP to be able to download it. Thanks!
If you are interested in assessing PI Notifications and PI Analytics programmatically, please check out the PI AF SDK and PI AN SDK references (located in %pihome%\HELP after installing the respectively Developer Tools). Specifically, you will want to check out the OSIsoft.AF.Analysis namespace in PI AF SDK for assessing PI Analytics programmatically, and the OSIsoft.AF.Notification in PI AF SDK as well as the AN SDK for assessing PI Notifications programmatically. There are also examples installed with the developer tools that you can take a look at. If you have specific design or programming questions regarding these namespaces, do let us know.
Retrieving data ...