![]() ![]() ![]() ![]() |
Before you begin
Review Define and assign policies.
To define a custom metric:
The list of currently defined constraints is displayed in the Rules table.
Field | Description |
---|---|
Name |
Name of the constraint. |
Type |
Select Based on the value of an attribute or function. |
Field | Description |
---|---|
Function |
Function used for the custom constraint (described below). |
Metric |
MBean attribute or scalar values required by the specified function. The number of fields displayed depends on the function selected. Use the following format when
entering MBean attributes:
Where:
If you want the metric to appy to multiple
instances, you can specify For example:
Click Browse to browse the list of MBeans and select the attribute. Note: Attributes with complex types are not valid for selection. |
Property | Description |
---|---|
Abs(x) |
Absolute value of the specified attribute. |
Difference(x, y) |
Difference between two attributes (x-y). |
DifferenceWithScalar(x, s) |
Difference between the specified attribute and a scalar value (x-s). |
HighModeOfCollection(c) |
Highest value that occurs most frequently in the collection of attributes. For example, if the returned values are 1 2 3 3 4 5 5 6 7, the function returns 5. |
Inverse(x) |
Inverse value of an attribute (1/x). |
LowModeOfCollection(c) |
Lowest value that occurs most frequently in the collection of attributes. For example, if the returned values are 1 2 3 3 4 5 5 6 7, the function returns 3. |
Max(x) |
Maximum observed value for the attribute. |
MaxOfCollection(c) |
Maximum observed value for the collection. |
MeanOfCollection(c) |
Statistical average observed value for the collection. |
MedianOfCollection(c) |
Statistical median observed value for the collection. |
MinOfCollection(c) |
Minimum observed value for the collection. |
Negative(x) |
Negative value of the attribute. |
Over(x,s) |
Upper threshold value (s) for specified attribute. If the value of x is greater than s, then the function returns 1. Otherwise, the function returns 0. |
OverMetric(x,y) |
Upper threshold attribute value (y) for specified attribute. If the value of x is greater than s, then the function returns 1. Otherwise, the function returns 0. |
Product(x,y) |
Product of the specified attributes (x*y). |
ProductWithScalar(x,s) |
Product of the specified attribute and scalar values (x*s). |
Ratio(x,y) |
Ratio of the specified attributes (x/y). |
RatioWithScalar(x,s) |
Ratio of the speicifed attribute and scalar values (x/s). |
Size(c) |
Number of values in the collection. |
StandardDeviationOfCollection(c) |
Standard deviation of attributes in the collection. |
Sum(x,y) |
Sum of the specified attributes (x+y). |
SummationOfCollection(c) |
Sum of the collection of attributes. |
SumWithScalar(x,s) |
Sum of the specified attribute and scalar values (x+s). |
Under(x,s) |
Lower threshold value (s) for specified attribute. If the value of x is greater than s, then the function returns 1. Otherwise, tjhe function returns 0. |
UnderMetric(x,y) |
Lower threshold value (y) for specified attribute. If the value of x is greater than s, then the function returns 1. Otherwise, the function returns 0. |
The constraint type is added and the following confirmation message is displayed:
New policy created successfully
After you finish
![]() |