Javascript Calculator Frequency javascript.EvaluatorException

book

Article ID: 48716

calendar_today

Updated On:

Products

APP PERF MANAGEMENT CA Application Performance Management Agent (APM / Wily / Introscope) CUSTOMER EXPERIENCE MANAGER INTROSCOPE

Issue/Introduction

Description:

When calling:

javascriptResultSetHelper.addMetric(metricName,


   value,       
   javascriptResultSetHelper. 
   kIntegerFluctuatingCounter,
   frequency);

If the frequency is a numeric value, the following runtime error occurs:

org.mozilla.javascript.EvaluatorException: Can't find method com.wily.introscope.server.beans.javascriptcalculator.CalculatorScript$JavascriptResultSetHelper.addMetric(string,number,number,number)

Solution:

This can be overcome by using:

javascriptResultSetHelper.addMetric(metricName,


   value,       
   javascriptResultSetHelper. 
   kIntegerFluctuatingCounter,

Packages.com.wily.introscope.spec.metric.Frequency.getFrequencyInSeconds(30));

Environment

Release:
Component: APMISP