Develop > Service Health > Service Health Rules API

Service Health Rules API

Note In OMi versions 9.00 and later, the rules that calculate indicator statuses and values based on samples (API Sample Rule and API Duration-Based Sample Rule) are used to calculate metric-based health indicators (HIs).

Throughout the Rules API documentation, you will see references to various methods used to calculate KPIs. In OMi versions 9.00 and later, when calculating sample-based values, these methods are used to calculate metric-based HIs.

This section describes how to use the Rules API to create new business rules. Business rules are used to calculate Key Performance Indicators (KPIs). A KPI must have an associated business rule that defines how the KPI is calculated.

HPE recommends to create rules with the Rules API. The Rules API enables you to create rules using the Groovy scripting language with Groovy runtime environment. Users of the Rules API should be familiar with Groovy and Java, and with OMi administration and applications. For more information about developing and deploying Groovy scripts, see Groovy scripts.

The Rules API classes are documented in Javadoc format in the OMi Rules API Reference. These files are located in the following folder:

<OMi_HOME_GW>/AppServer/webapps/site.war/amdocs/eng/API_docs/Rules_API/index.html