This function populates the TRACE level of the karaf.log file with the input parameters. Use this function to log the polled values from a report that returns a result that you believe is incorrect.
The poll log of the Data Collector only shows the values of the polled attributes, while the report only shows the result of the calculation. The mvelTrace function allows you to view the input poll values to determine where the calculation went wrong.
Syntax
This function has the following format:
String mvelTrace (Array objects)
Parameters
The object array is logged under the TRACE level in the karaf.log file of the Data Collector.
Return Values
Null
Examples
The following expression logs cpmCPUTotal5minRev in the karaf.log file.
Expression:
mvelTrace([“cpmCPUTotal5minRev=”, cpmCPUTotal5minRev])
Result:
Null
Result (karaf.log):
MVEL trace: cpmCPUTotal5minRev=15
Advanced Example
mvelTrace([“cpmCPUTotal5minRev=”, cpmCPUTotal5minRev, “ cpmCPUTotal10minRev=”, cpmCPUTotal10minRev]); cpmCPUTotal10minRev;
Result:
12
Result (karaf.log):
MVEL trace: cpmCPUTotal5minRev=15 cpmCPUTotal10minRev=12
|
Copyright © 2015 CA Technologies.
All rights reserved.
|
|