Using arithmetic expressions
This topic helps you to derive new composite attributes by using existing attributes.
Deriving a new attribute by using an existing attribute
To derive a new attribute by using an existing attribute, use an arithmetic expression in PATROL for Composite Attributes. Here is an example to derive a new attribute by using an existing attribute:
Expression to derive a new attribute:
Attribute <Arithmetic operator> Constant value
Example: MemoryUsed / 1024
Deriving a new attribute by using a combination of existing attributes
To derive a new attribute by using a combination of existing attributes, use an arithmetic expression in PATROL for Composite Attributes. Here is an example to derive a new attribute by using a combination of two or more existing attributes:
Expressions to derive a new attribute:
- (Attribute <Arithmetic operator> Attribute <Arithmetic operator> (Attribute <Arithmetic operator> Constant value)
Example: SpaceUsed + SpaceAllocated + (SpaceLeftPct / 100)
- (Attribute <Arithmetic operator> Attribute) <Arithmetic operator> (Attribute <Arithmetic operator> Attribute)
Example: (WriteBytes + ReadBytes) / (WriteOps + ReadOps)
Comments
Log in or register to comment.