Examples of metric()


Examples of com.aphyr.riemann.client.EventDSL.metric()

    @Override
    public void processGauge(MetricName name, Gauge<?> gauge, Long epoch) {
        Object v = gauge.value();
        EventDSL e = newEvent().service(service(name)).time(epoch);
        if (v instanceof Integer) {
            e.metric((Integer) v).send();
        } else if (v instanceof Long) {
            e.metric((Long) v).send();
        } else if (v instanceof Double) {
            e.metric((Double) v).send();
        } else if (v instanceof Float) {
View Full Code Here

Examples of com.aphyr.riemann.client.EventDSL.metric()

        Object v = gauge.value();
        EventDSL e = newEvent().service(service(name)).time(epoch);
        if (v instanceof Integer) {
            e.metric((Integer) v).send();
        } else if (v instanceof Long) {
            e.metric((Long) v).send();
        } else if (v instanceof Double) {
            e.metric((Double) v).send();
        } else if (v instanceof Float) {
            e.metric((Float) v).send();
        } else if (v instanceof Number) {
View Full Code Here

Examples of com.aphyr.riemann.client.EventDSL.metric()

        if (v instanceof Integer) {
            e.metric((Integer) v).send();
        } else if (v instanceof Long) {
            e.metric((Long) v).send();
        } else if (v instanceof Double) {
            e.metric((Double) v).send();
        } else if (v instanceof Float) {
            e.metric((Float) v).send();
        } else if (v instanceof Number) {
            e.metric(((Number) v).floatValue()).send();
        }
View Full Code Here

Examples of com.aphyr.riemann.client.EventDSL.metric()

        } else if (v instanceof Long) {
            e.metric((Long) v).send();
        } else if (v instanceof Double) {
            e.metric((Double) v).send();
        } else if (v instanceof Float) {
            e.metric((Float) v).send();
        } else if (v instanceof Number) {
            e.metric(((Number) v).floatValue()).send();
        }
    }
View Full Code Here

Examples of com.aphyr.riemann.client.EventDSL.metric()

        } else if (v instanceof Double) {
            e.metric((Double) v).send();
        } else if (v instanceof Float) {
            e.metric((Float) v).send();
        } else if (v instanceof Number) {
            e.metric(((Number) v).floatValue()).send();
        }
    }

    @Override
    public void processCounter(MetricName name, Counter counter, Long epoch) {
View Full Code Here

Examples of com.google.dart.engine.utilities.instrumentation.InstrumentationBuilder.metric()

  @Override
  public LineInfo computeLineInfo(Source source) throws AnalysisException {
    InstrumentationBuilder instrumentation = Instrumentation.builder("Analysis-computeLineInfo");
    checkThread(instrumentation);
    try {
      instrumentation.metric("contextId", contextId);
      return basis.computeLineInfo(source);
    } catch (AnalysisException e) {
      recordAnalysisException(instrumentation, e);
      throw e;
    } finally {
View Full Code Here

Examples of com.google.dart.engine.utilities.instrumentation.InstrumentationBuilder.metric()

  @Override
  public void dispose() {
    InstrumentationBuilder instrumentation = Instrumentation.builder("Analysis-dispose");
    checkThread(instrumentation);
    try {
      instrumentation.metric("contextId", contextId);
      basis.dispose();
    } finally {
      instrumentation.log();
    }
  }
View Full Code Here

Examples of com.google.dart.engine.utilities.instrumentation.InstrumentationBuilder.metric()

  @Override
  public boolean exists(Source source) {
    InstrumentationBuilder instrumentation = Instrumentation.builder("Analysis-exists");
    checkThread(instrumentation);
    try {
      instrumentation.metric("contextId", contextId);
      return basis.exists(source);
    } finally {
      instrumentation.log();
    }
  }
View Full Code Here

Examples of com.google.dart.engine.utilities.instrumentation.InstrumentationBuilder.metric()

  @Override
  public AnalysisContext extractContext(SourceContainer container) {
    InstrumentationBuilder instrumentation = Instrumentation.builder("Analysis-extractContext");
    checkThread(instrumentation);
    try {
      instrumentation.metric("contextId", contextId);
      InstrumentedAnalysisContextImpl newContext = new InstrumentedAnalysisContextImpl();
      basis.extractContextInto(container, newContext.basis);
      return newContext;
    } finally {
      instrumentation.log();
View Full Code Here

Examples of com.google.dart.engine.utilities.instrumentation.InstrumentationBuilder.metric()

  @Override
  public AnalysisOptions getAnalysisOptions() {
    InstrumentationBuilder instrumentation = Instrumentation.builder("Analysis-getAnalysisOptions");
    checkThread(instrumentation);
    try {
      instrumentation.metric("contextId", contextId);
      return basis.getAnalysisOptions();
    } finally {
      instrumentation.log();
    }
  }
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.