Searching the Help
To search for information in the Help, type a word or phrase in the Search box. When you enter a group of words, OR is inferred. You can use Boolean operators to refine your search.
Results returned are case insensitive. However, results ranking takes case into account and assigns higher scores to case matches. Therefore, a search for "cats" followed by a search for "Cats" would return the same number of Help topics, but the order in which the topics are listed would be different.
Search for | Example | Results |
---|---|---|
A single word | cat
|
Topics that contain the word "cat". You will also find its grammatical variations, such as "cats". |
A phrase. You can specify that the search results contain a specific phrase. |
"cat food" (quotation marks) |
Topics that contain the literal phrase "cat food" and all its grammatical variations. Without the quotation marks, the query is equivalent to specifying an OR operator, which finds topics with one of the individual words instead of the phrase. |
Search for | Operator | Example |
---|---|---|
Two or more words in the same topic |
|
|
Either word in a topic |
|
|
Topics that do not contain a specific word or phrase |
|
|
Topics that contain one string and do not contain another | ^ (caret) |
cat ^ mouse
|
A combination of search types | ( ) parentheses |
|
- Service Health Rules API
- API Group and Sibling Rule
- API Sample Rule
- API Duration-Based Sample Rule
- Create rules with the Rules API
- Define an API rule in the CI Customizations page
- Create a text file-based API rule
- Define an API rule in the rule repository
- Work with tooltip entries
- Write to log files from the Rules API code
- Include a CI property in Rules API calculations
- Examples - API Sample Rule
- Examples - API Group and Sibling Rule
API Group and Sibling Rule
An API Group and Sibling Rule calculates KPIs based on data received from other indicators, rather than from original sample data. The received data can come from the KPIs of child CIs, or from other KPIs or HIs associated with the same CI.
Note If you are creating a sibling rule, make sure that the KPI is calculated after its sibling KPIs, as defined by the KPI's Calculation Order field. For details, see KPI Definitions.
The Group and Sibling rule implements the Rules API Interface GroupAndSiblingCalculator, using the following guidelines:
-
In this interface, the only method is calculateKPI. The method signature is:
-
The calculateKPI method includes the parameters ci and kpi, which represent the current CI, and the KPI whose value the API rule calculates.
-
The ci parameter type is CI, and is used as an accessor to KPIs of child CIs or sibling KPIs, or HIs on the CI.
-
The kpi parameter type is KPI, and is used to set calculation results.
public void calculateKPI(CI ci, KPI kpi)
In the following illustration, the Calculated KPI is calculated based on the sibling or child KPIs, and it is represented by the kpi parameter.
The CI to which the Calculated KPI is assigned, is represented by the ci parameter, and it is an accessor to the other KPIs or HIs.
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
For detailed examples of Group and Sibling rules, see Examples - API Group and Sibling Rule.
API rules can be defined within the CI Customizations page or Rule Repository, or using a text file template, as described in Create rules with the Rules API.
To define a Group and Sibling rule by using the CI Customizations page or within the Rule Repository, enter the calculateKPI method implementation in the KPI Calculation Script area.
The parameters ci and kpi of the calculateKPI method are available for use in this script.
For detailed instructions, see Define an API rule in the CI Customizations page or Define an API rule in the rule repository.
When creating a Group rule for a specific KPI in the CI Customizations page, to access a specific child KPI, the API includes a mechanism to simplify the code. When defining your KPI Calculation Script, you can enter the format "<CI name>"."<KPI name>".
For an example of this, see Example - Specific Child CI Group Rule in Examples - API Group and Sibling Rule.
To define a Group and Sibling rule using a text file, use the DashboardGroupAndSiblingTemplate.groovy template as described in Create a text file-based API rule.
Within the text file, enter the calculateKPI method body.
We welcome your comments!
To open the configured email client on this computer, open an email window.
Otherwise, copy the information below to a web mail client, and send this email to ovdoc-asm@hpe.com.
Help Topic ID:
Product:
Topic Title:
Feedback: