6.3

Table Of Contents
Table 37. Looping Function Formats (Continued)
Argument syntax example Description
funct(${adapterkind=adaptkind,
resourcekind=reskind, resourcename=resname,
identiers={id1=val1id2=val2,…}, metric=a|
b:instance|c})
Returns a single data point of a particular metric for the resname
specied in the argument. This super metric does not take values
from the children or parents of the object.
funct(${adapterkind=adaptkind,
resourcekind=reskind, resourcename=resname,
identiers={id1=val1, id2=val2,…}, aribute=a|
b:optional_instance|c})
Returns a set of data points. This function iterates aributes of the
resname specied in the argument. This super metric does not take
values from the child or parent of the object.
funct(${adapterkind=adaptkind,
resourcekind=reskind, depth=dep}, metric=a|
b:optional_instance|c})
Returns a set of data points. This function iterates metrics of the
reskind specied in the argument. This super metric takes values
from the child (depth > 0) or parent (depth < 0) objects, where depth
describes the object location in the relationship chain.
For example, a typical relationship chain includes a datacenter,
cluster, host, and virtual machines with the datacenter at the top
and the virtual machines at the boom. If the super metric is
assigned to the cluster and the function denition includes depth =
2, the super metric takes values from the virtual machines. If the
function denition include depth = -1, the super metric takes values
from the datacenter.
funct(${adapterkind=adaptkind,
resourcekind=reskind, depth=dep}, aribute=a|
b:optional_instance|c})
Returns a set of data points. This function iterates aributes of the
reskind specied in the argument. This super metric takes values
from the child (depth > 0) or parent (depth < 0) objects.
For example, avg(${adapterkind=VMWARE, resourcekind=VirtualMachine, attribute=cpu|usage_average,
depth=1}) averages the value of all metric instances with the cpu|usage_average aribute for all objects of
type VirtualMachine that the vCenter adapter nds. vRealize Operations Manager searches for objects one
level below the object type where you assign the super metric.
Single Functions
Single functions work on only a single value or a single pair of values.
Table 38. Single Functions
Function Format Description
abs abs(x) Absolute value of x. x can be any oating point number.
acos acos(x) Arccosine of x.
asin asin(x) Arcsine of x.
atan atan(x) Arctangent of x.
ceil ceil(x) The smallest integer that is greater than or equal to x.
cos cos(x) Cosine of x.
cosh cosh(x) Hyperbolic cosine of x.
exp exp(x) e raised to the power of x.
oor oor(x) The largest integer that is less than or equal to x.
log log(x) Natural logarithm (base x) of x.
log10 log10(x) Common logarithm (base 10) of x.
pow pow(x,y) Raises x to the y power.
rand rand(x:y) Generates a random number between x and y.
sin sin(x) Sine of x.
sinh sinh(x) Hyperbolic sine of x.
vRealize Operations Manager Customization and Administration Guide
104 VMware, Inc.