@Override
public Object runCommand() throws PlatformLayerClientException {
PlatformLayerClient client = getPlatformLayerClient();
MetricQuery query = new MetricQuery();
query.item = getContext().pathToItem(getProject(), path);
if (filters != null) {
query.filters.addAll(filters);
}
if (projections != null) {
query.projections.addAll(projections);
}
query.setFlatten(flatten);
MetricDataStream dataStream = client.getMetric(query);
return dataStream;
}