cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Not a customer? Start a free trial

Click the Start a free trial link to start a 15-day SaaS trial of our product and join our community as a trial user. If you are an existing customer do not start a free trial.

AppDynamics customers and established members should click the sign in button to authenticate.

Business iQ (Analytics)

How to map values from number to string in data collectors

SOLVED
Mohamed.Adel
Producer

How to map values from number to string in data collectors

Hello,

I have configured MIDC(Method Invocation Data Collectors) on an application, to collect the status of orders, but the value is in numbers, how can I map numbers to string to create a meaningful dashboard.

for example:
1 ==> "Pending"
2==> "Approved"
3==> "Rejected"

Tags (1)
By replying you agree to the Terms and Conditions of the AppDynamics Community.
How to map values from number to string in data collectors
1 REPLY 1
Mario.Morelli
Architect

Re: How to map values from number to string in data collectors

Hi Mohamed

 

you can use the replaceAll Function

 

.toString().replaceAll(1,Pending).replaceAll(2,Approved).replaceAll(3,Rejected)

 

Ciao



Learn more about me in the Community Member Spotlight Q & A