Examples of MetricInfoCollection


Examples of org.platformlayer.metrics.model.MetricInfoCollection

  public Object runCommand() throws PlatformLayerClientException {
    PlatformLayerClient client = getPlatformLayerClient();

    PlatformLayerKey key = getContext().pathToItem(getProject(), path);

    MetricInfoCollection items = client.listMetrics(key);

    return items;
  }
View Full Code Here

Examples of org.platformlayer.metrics.model.MetricInfoCollection

  @Override
  public MetricInfoCollection listMetrics(PlatformLayerKey key) throws PlatformLayerClientException {
    String relativePath = buildRelativePath(key) + "/metrics";

    String retval = doRequest(HttpMethod.GET, relativePath, String.class, Format.XML, null, null);
    MetricInfoCollection items;
    try {
      items = JaxbHelper.deserializeXmlObject(retval, MetricInfoCollection.class);
    } catch (UnmarshalException e) {
      throw new PlatformLayerClientException("Error parsing returned data", e);
    }
View Full Code Here

Examples of org.platformlayer.metrics.model.MetricInfoCollection

      }
    }
  }

  public static MetricInfoCollection toMetricInfo(MetricConfig metricConfig) {
    MetricInfoCollection metricInfo = new MetricInfoCollection();

    populateMetricInfo(metricInfo, "", metricConfig);

    return metricInfo;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.