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
Create a text file-based API rule
There are three rule template files corresponding to the three API rules; each template implements the rule's interface.
Create a text file defining a new rule using one of the templates, and then add the new rule to the Business Rule Repository. The rule can then be applied like any out-of-the-box rule.
The API code cannot be seen or changed within Service Health, but only within the text file. If you make changes to the code within the text file, these changes are applied to all instances where the rule has been assigned, after you reload Service Health rules.
-
Create a text file for a rule
Based on the type of rule you want to create, copy and rename one of the template files located in the <Data Processing server root directory>\BLE\rules\groovy\templates directory.
Within your copy of the template, define the rule methods and fields as described in:
Save the file to the <Data Processing server root directory>\BLE\rules\groovy\rules directory.
You must now add a rule in the Rule Repository that uses the rule logic in the text file.
-
Add a business rule
-
Select Administration > Service Health > Business Rules. Click New. For details on adding rules, see Business Rules.
-
In the Display name field, type the name of the rule you want to create (mandatory).
-
In the Type section, select Java Class as the implementation method. Enter groovy: <file name> as the class name.
Note that the file name must be identical (case sensitive) to the file name in the <Data Processing server root directory>\BLE\rules\groovy\rules directory. -
Create rule parameters depending on your API rule type, as follows:
-
In the Parameters area, click New Parameter.
-
For API Sample rules:
In the Name field, type Maximum number of samples. In the Type field, select Integer. In the Default Value field, type 1. Leave the Unit field empty, and the Configurable field unchecked.
Click Apply to save.
-
For API Duration-Based Sample rules:
In the Name field, type duration. In the Type field, select Long. In the Default Value field, type 990. Leave the Unit field empty, and the Configurable field unchecked.
Click Apply to save.
-
Modify the thresholds. (Skip this step if you are defining a Group and Sibling rule that does not have thresholds, where status is calculated by the rule code.)
-
In the Thresholds section, select Calculate severity based on predefined thresholds.
-
Set the threshold values for each operator by using the + and - buttons.
Repeat these steps to add the No Data Timeout rule parameter (Type: Long; Default Value = 990).
The following image shows a Sample rule after the rule parameter has been added:
The following image shows a Duration-Based Sample rule after the rule parameters have been added:
-
-
Add the rule to the KPI's applicable rules list
Add the new rule to the list of applicable rules already attached to the relevant KPI. For details, see the Applicable Rules parameter in .
-
Add tooltip parameters to the new tooltip
When a rule is created using this procedure, a corresponding tooltip is with no tooltip parameters. For instructions on adding tooltip parameters to the new tooltip, see Work with tooltip entries.
-
Reload rules after editing the text file
If you make changes to the text file at any time after the rule is created, perform the following steps to apply the changes.
-
In the browser, access the JMX port 29800.
-
Within OMi-Platform, select the service called MarbleWorker and invoke the reloadRules method. This method is applied to all the customers served by this worker.
-
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: