Package org.platformlayer.metrics.model

Examples of org.platformlayer.metrics.model.MetricQuery


  @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;
  }
View Full Code Here


  }

  @Override
  public MetricDataStream getMetric(MetricQuery query) throws PlatformLayerClientException {
    MappedPlatformLayerKey mapped = mapToChild(query.item);
    MetricQuery mappedQuery = query.copy();
    mappedQuery.item = mapped.key;
    return mapped.child.client.getMetric(mappedQuery);
  }
View Full Code Here

TOP

Related Classes of org.platformlayer.metrics.model.MetricQuery

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.