Open
Description
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,
com.ge.predix.solsvc.bootstrap.tbs.dto.datapoints.request.Filters filters=new com.ge.predix.solsvc.bootstrap.tbs.dto.datapoints.request.Filters();
List<String> attributeValues=Arrays.asList("775");
Attribute attribute=new Attribute();
attribute.setHost(attributeValues);
filters.setAttributes((Arrays.asList(attribute)));
Metadata
Metadata
Assignees
Labels
No labels