You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TimeseriesFactory has two methods as "queryForLatestDatapoint()" and "queryForDatapoints()".
When I use queryForLatestDatapoint() Method, I'm able to add my custom attributes as give below and get the desired output:
List list = new ArrayList();
list.add("775");
Map<String, List<String>> map = new HashMap<String, List<String>>();
map.put("assetId", list);
com.ge.predix.solsvc.bootstrap.tbs.dto.datapoints.latest.request.Filters filters = new Filters();
filters.setAttributes(map);
But, When I use queryForDatapoints() Method, It doesn't allow me to add my custom attributes. Because the "Filters" Class here is taking the attributes using a Class "Attribute". Attribute class takes only a defined attribute named "host". If this "Filters" Class takes a "Map" for setting custom attributes, problem will be solved. find the reference code below,
TimeseriesFactory has two methods as "queryForLatestDatapoint()" and "queryForDatapoints()".
When I use queryForLatestDatapoint() Method, I'm able to add my custom attributes as give below and get the desired output:
But, When I use queryForDatapoints() Method, It doesn't allow me to add my custom attributes. Because the "Filters" Class here is taking the attributes using a Class "Attribute". Attribute class takes only a defined attribute named "host". If this "Filters" Class takes a "Map" for setting custom attributes, problem will be solved. find the reference code below,
The text was updated successfully, but these errors were encountered: