Does someone know how to create conditions for services through scripts? Is there some documentation or example that I can use?
Conditions need to be created for those groups and parameters above the red line.
As far as I am aware the best way you have to create a service via code is by using the Method CreateService which would allow you to configure your service content and which elements are included via the Class ServiceConfiguration but I cannot immediately see a way of manipulating those specific settings you show in your screenshot.
Feel free to have a look at the documentation links and if you see that we should enhance the current way of creating services to have more options feel free to add a suggestion on DataMiner Feature Suggestions.