![JAR search and dependency download from the Maven repository](/logo.png)
com.signalfx.appd.process.info.InfoParser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of appd-process Show documentation
Show all versions of appd-process Show documentation
SignalFx AppDynamics metric processor.
The newest version!
/**
* Copyright (C) 2015 SignalFx, Inc.
*/
package com.signalfx.appd.process.info;
import java.io.IOException;
import java.util.List;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
public class InfoParser {
/**
* Parse JSON String as configurations that the task should query from AppDynamics.
*
* @param jsonString
* String of JSON configuration.
* @return list of {@link AppInfo} configurations that the task should query from
* AppDynamics.
*/
public static List parseInfo(String jsonString) throws IOException {
ObjectMapper mapper = new ObjectMapper();
return mapper.readValue(jsonString, new TypeReference>() {});
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy