Class OracleCloudCounter

java.lang.Object
io.micrometer.core.instrument.AbstractMeter
io.micrometer.core.instrument.step.StepCounter
io.micronaut.oraclecloud.monitoring.primitives.OracleCloudCounter
All Implemented Interfaces:
io.micrometer.core.instrument.Counter, io.micrometer.core.instrument.Meter, OracleCloudDatapointProducer

@Internal public final class OracleCloudCounter extends io.micrometer.core.instrument.step.StepCounter implements OracleCloudDatapointProducer
A StepCounter that tracks list of raw Datapoint.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.micrometer.core.instrument.Counter

    io.micrometer.core.instrument.Counter.Builder

    Nested classes/interfaces inherited from interface io.micrometer.core.instrument.Meter

    io.micrometer.core.instrument.Meter.Builder, io.micrometer.core.instrument.Meter.Id, io.micrometer.core.instrument.Meter.MeterProvider<T extends io.micrometer.core.instrument.Meter>, io.micrometer.core.instrument.Meter.Type
  • Constructor Summary

    Constructors
    Constructor
    Description
    OracleCloudCounter(io.micrometer.core.instrument.Meter.Id id, io.micrometer.core.instrument.Clock clock, long stepMillis)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    List<com.oracle.bmc.monitoring.model.Datapoint>
    Returns list of datapoints that will be sent.
    void
    increment(double amount)
     

    Methods inherited from class io.micrometer.core.instrument.step.StepCounter

    _closingRollover, count

    Methods inherited from class io.micrometer.core.instrument.AbstractMeter

    equals, getId, hashCode

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.micrometer.core.instrument.Counter

    increment, measure

    Methods inherited from interface io.micrometer.core.instrument.Meter

    close, getId, match, use
  • Constructor Details

    • OracleCloudCounter

      public OracleCloudCounter(io.micrometer.core.instrument.Meter.Id id, io.micrometer.core.instrument.Clock clock, long stepMillis)
  • Method Details

    • increment

      public void increment(double amount)
      Specified by:
      increment in interface io.micrometer.core.instrument.Counter
      Overrides:
      increment in class io.micrometer.core.instrument.step.StepCounter
    • getDatapoints

      public List<com.oracle.bmc.monitoring.model.Datapoint> getDatapoints()
      Description copied from interface: OracleCloudDatapointProducer
      Returns list of datapoints that will be sent.
      Specified by:
      getDatapoints in interface OracleCloudDatapointProducer
      Returns:
      list of Datapoint