A check profile is a group of rules on selected metrics and provides the flexibility to add validation on the threshold values.

## Adding Check Profile

To add a check profile, you have to fill in the following fields:

- Project- The Project is the parent directory of the Sub Project.
- Sub-Project- Sub-Project is the directory where all test assets (Script, Scenario, TestSuite, Services, etc.) are stored.
- Profile name: Enter the profile name in this field in the required format.
- Profile Description: Enter the description of the profile.
- Scenario: Select the required scenario from the drop-down.
- Test Run: Select the test run from which you want to apply the check profile.

Note: In advance settings, users can select to include additional SLAs like Production and Stress SLAs. Also, users can check whether they want to include discontinued metrics in the metric dropdown. Discontinued metrics are those which was earlier in the system but not in the latest metrics file. Select the Include Discontinued Metrics check box to fetch the list of vectors according to the specified time duration. It enables users to select a style and provide a custom partition.

- Metric: There are the following options in metric;
- Data Field: Select any one of avg, max, min, Percentile, or count from the dropdown.
- Metric Group: Select the metric group on which you want to apply Checkprofile.
- Metric Name: Select the metric name on which you want to apply Checkprofile
- Indices: Indices name only comes when vector type metric group is selected.
  - All – The user can apply the rule on all metrics available in the metric group.
  - Specified – The user can select any metrics from the list on which the rule will apply.
  - Pattern– The user can give any pattern by which some indices got qualified and the rule will execute on them.

For example: If the pattern provided by the user is “*xx”, then all the indices ending with string “xx” will come in the report.

Once you have provided all the required inputs click on add metric to add in the Text box.

- Operation: Select less than, greater than, or equal to value enter the rule name, and write the name to be displayed.
  - Operation– User can put greater than/Less than/Equals in between metric name and value like below
    CPU Utilization >= 80 or Free Memory <= 60
  - Value – Value provided by the user by which metric value will be compared.
  - Operators/Functions– Arithmetic operations like Add, subtract, multiplication, and division are there to use between two metrics. Two functions are also there to use Avg and Sum.
  - Add: Once you have provided all the required inputs click on add operation to add in the Text box.
  - Rule Name– It is a name of a checkprofile rule. When the user adds metric then it gets auto-filled. Users can also modify this name.
  - Display Name– It is a name of a checkprofile rule to display. When the user adds metric then it auto-filled. Users can also modify this name.
  - Add Rule: Once the checkprofile rule is prepared in the text box click on Add Rule to add the check profile rule in the table.

According to the Pass/Fail Criteria configuration, the colour code will be shown in the Test Status report. The Default value for the SLA variation is upto 20% shows green, 50% shows Yellow otherwise Red.
Let's see with an example: If SLA is given for a Metric value=10 then the metric value between 8 to 12 is shown as Green, and between 5 to 8 and 12 to 15 will be shown as Yellow otherwise it will be shown as Red.
If SLA >10 then the metric value between 8 to 10 is shown as Green, between 5 to 8 will be shown as Yellow, and less than 5 will be shown as Red.
Similarly, if SLA < 10 then the metric value between 10 to 12 is shown as Green, between 12 to 15 will be shown as Yellow, and greater than will be shown as Red.
If 10% or more of the metrics are red, the overall test status will be failed. You can configure it from the Test Case UI.

Note:

1. User can edit the checkprofile rule or delete it from the table.
2. The user first has to add metrics, then operation, and then add the rule in the table

Once all of the above fields are filled, click on the Save icon in the top right corner to save the checkprofile.