congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
Tag.getKey
Code IndexAdd Tabnine to your IDE (free)

How to use
getKey
method
in
org.ballerinalang.util.metrics.Tag

Best Java code snippets using org.ballerinalang.util.metrics.Tag.getKey (Showing top 7 results out of 315)

origin: org.ballerinalang/ballerina-micrometer-extension

public MicrometerGauge(MeterRegistry meterRegistry, MetricId id) {
  super(id);
  io.micrometer.core.instrument.Gauge.builder(id.getName(), value, DoubleAdder::sum)
      .description(id.getDescription())
      .tags(id.getTags().stream().map(tag -> Tag.of(tag.getKey(), tag.getValue()))
          .collect(Collectors.toList())).register(meterRegistry);
}
origin: org.ballerinalang/ballerina-micrometer-extension

public MicrometerCounter(MeterRegistry meterRegistry, MetricId id) {
  super(id);
  counter = io.micrometer.core.instrument.Counter.builder(id.getName())
      .description(id.getDescription())
      .tags(id.getTags().stream().map(tag -> Tag.of(tag.getKey(), tag.getValue()))
          .collect(Collectors.toList())).register(meterRegistry);
}
origin: org.ballerinalang/ballerina-micrometer-extension

public <T> MicrometerCallbackGauge(MeterRegistry meterRegistry, MetricId id, T obj,
                  ToDoubleFunction<T> toDoubleFunction) {
  super(id);
  gauge = io.micrometer.core.instrument.Gauge.builder(id.getName(), obj, toDoubleFunction)
      .description(id.getDescription())
      .tags(id.getTags().stream().map(tag -> Tag.of(tag.getKey(), tag.getValue()))
          .collect(Collectors.toList())).register(meterRegistry);
}
origin: org.ballerinalang/ballerina-micrometer-extension

public MicrometerSummary(MeterRegistry meterRegistry, MetricId id) {
  super(id);
  summary = io.micrometer.core.instrument.DistributionSummary.builder(id.getName())
      .description(id.getDescription())
      .tags(id.getTags().stream().map(tag -> Tag.of(tag.getKey(), tag.getValue()))
          .collect(Collectors.toList()))
      .publishPercentiles(0.5, 0.75, 0.98, 0.99, 0.999)
      .register(meterRegistry);
}
origin: org.ballerinalang/ballerina-micrometer-extension

public MicrometerTimer(MeterRegistry meterRegistry, MetricId id) {
  super(id);
  timer = io.micrometer.core.instrument.Timer.builder(id.getName())
      .description(id.getDescription())
      .tags(id.getTags().stream().map(tag -> Tag.of(tag.getKey(), tag.getValue()))
          .collect(Collectors.toList()))
      .publishPercentiles(0.5, 0.75, 0.98, 0.99, 0.999)
      .register(meterRegistry);
}
origin: org.ballerinalang/ballerina-observability

  private BMap<String, BString> getTags(MetricId metricId) {
    BMap<String, BString> bTags = new BMap<>(new BMapType(BTypes.typeString));
    Set<Tag> tags = metricId.getTags();
    for (Tag tag : tags) {
      bTags.put(tag.getKey(), new BString(tag.getValue()));
    }
    return bTags;
  }
}
origin: org.ballerinalang/ballerina-observability

  private BMap<String, BString> getTags(MetricId metricId) {
    BMap<String, BString> bTags = new BMap<>(new BMapType(BTypes.typeString));
    Set<Tag> tags = metricId.getTags();
    for (Tag tag : tags) {
      bTags.put(tag.getKey(), new BString(tag.getValue()));
    }
    return bTags;
  }
}
org.ballerinalang.util.metricsTaggetKey

Popular methods of Tag

  • <init>
  • getValue
  • of

Popular in Java

  • Creating JSON documents from java classes using gson
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getContentResolver (Context)
  • getResourceAsStream (ClassLoader)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Socket (java.net)
    Provides a client-side TCP socket.
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • JFrame (javax.swing)
  • 21 Best IntelliJ Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now