Interface MetricsClient

All Superinterfaces:
AutoCloseable
All Known Implementing Classes:
AbstractMetricsClient, NoOpMetricsClient, StatsdClientImpl

public interface MetricsClient extends AutoCloseable
Reports metrics to an implementation-specific backend.
  • Method Details

    • close

      void close()
      Overridden to remove checked exception constraint.
      Specified by:
      close in interface AutoCloseable
    • increment

      void increment(String metric)
      Increment the counter by 1.
      Parameters:
      metric - metric name
    • increment

      default void increment(String namespace, String metric)
      Increment the counter by 1.
      Parameters:
      namespace - metric namespace
      metric - metric name
      Since:
      5.4.0
    • increment

      void increment(String metric, double sampleRate)
      Increment the counter by 1.

      This uses sampling in order to approximate the actual number of increments. An update will be reported for only sampleRate * 100 percent of all invocations.

      Parameters:
      metric - metric name
      sampleRate - Percentage of invocations to actually report. If the specified value is zero or negative, nothing will be reported. If the value is 1 or greater, it will always report.
    • increment

      default void increment(String namespace, String metric, double sampleRate)
      Increment the counter by 1.

      This uses sampling in order to approximate the actual number of increments. An update will be reported for only sampleRate * 100 percent of all invocations.

      Parameters:
      namespace - metric namespace
      metric - metric name
      sampleRate - Percentage of invocations to actually report. If the specified value is zero or negative, nothing will be reported. If the value is 1 or greater, it will always report.
      Since:
      5.4.0
    • increment

      void increment(String metric, Set<Dimension> dimensions)
      Increment the counter by 1.
      Parameters:
      metric - metric name
      dimensions - dimensions identifying the entity
    • increment

      default void increment(String namespace, String metric, Set<Dimension> dimensions)
      Increment the counter by 1.
      Parameters:
      namespace - metric namespace
      metric - metric name
      dimensions - dimensions identifying the entity
      Since:
      5.4.0
    • increment

      void increment(String metric, double sampleRate, Set<Dimension> dimensions)
      Increment the counter by 1.

      This uses sampling in order to approximate the actual number of increments. An update will be reported for only sampleRate * 100 percent of all invocations.

      Parameters:
      metric - metric name
      sampleRate - Percentage of invocations to actually report. If the specified value is zero or negative, nothing will be reported. If the value is 1 or greater, it will always report.
      dimensions - dimensions identifying the entity
    • increment

      default void increment(String namespace, String metric, double sampleRate, Set<Dimension> dimensions)
      Increment the counter by 1.

      This uses sampling in order to approximate the actual number of increments. An update will be reported for only sampleRate * 100 percent of all invocations.

      Parameters:
      namespace - metric namespace
      metric - metric name
      sampleRate - Percentage of invocations to actually report. If the specified value is zero or negative, nothing will be reported. If the value is 1 or greater, it will always report.
      dimensions - dimensions identifying the entity
      Since:
      5.4.0
    • decrement

      void decrement(String metric)
      Decrement the counter by 1.
      Parameters:
      metric - metric name
    • decrement

      default void decrement(String namespace, String metric)
      Decrement the counter by 1.
      Parameters:
      namespace - metric namespace
      metric - metric name
      Since:
      5.4.0
    • decrement

      void decrement(String metric, double sampleRate)
      Decrement the counter by 1.

      This uses sampling in order to approximate the actual number of increments. An update will be reported for only sampleRate * 100 percent of all invocations.

      Parameters:
      metric - metric name
      sampleRate - Percentage of invocations to actually report. If the specified value is zero or negative, nothing will be reported. If the value is 1 or greater, it will always report.
    • decrement

      default void decrement(String namespace, String metric, double sampleRate)
      Decrement the counter by 1.

      This uses sampling in order to approximate the actual number of increments. An update will be reported for only sampleRate * 100 percent of all invocations.

      Parameters:
      namespace - metric namespace
      metric - metric name
      sampleRate - Percentage of invocations to actually report. If the specified value is zero or negative, nothing will be reported. If the value is 1 or greater, it will always report.
      Since:
      5.4.0
    • decrement

      void decrement(String metric, Set<Dimension> dimensions)
      Decrement the counter by 1.
      Parameters:
      metric - metric name
      dimensions - dimensions identifying the entity
    • decrement

      default void decrement(String namespace, String metric, Set<Dimension> dimensions)
      Decrement the counter by 1.
      Parameters:
      namespace - metric namespace
      metric - metric name
      dimensions - dimensions identifying the entity
      Since:
      5.4.0
    • decrement

      void decrement(String metric, double sampleRate, Set<Dimension> dimensions)
      Decrement the counter by 1.

      This uses sampling in order to approximate the actual number of increments. An update will be reported for only sampleRate * 100 percent of all invocations.

      Parameters:
      metric - metric name
      sampleRate - Percentage of invocations to actually report. If the specified value is zero or negative, nothing will be reported. If the value is 1 or greater, it will always report.
      dimensions - dimensions identifying the entity
    • decrement

      default void decrement(String namespace, String metric, double sampleRate, Set<Dimension> dimensions)
      Decrement the counter by 1.

      This uses sampling in order to approximate the actual number of increments. An update will be reported for only sampleRate * 100 percent of all invocations.

      Parameters:
      namespace - metric namespace
      metric - metric name
      sampleRate - Percentage of invocations to actually report. If the specified value is zero or negative, nothing will be reported. If the value is 1 or greater, it will always report.
      dimensions - dimensions identifying the entity
      Since:
      5.4.0
    • count

      void count(String metric, long delta)
      Adjust the counter value.
      Parameters:
      metric - metric name
      delta - adjustment value
    • count

      default void count(String namespace, String metric, long delta)
      Adjust the counter value.
      Parameters:
      namespace - metric namespace
      metric - metric name
      delta - adjustment value
      Since:
      5.4.0
    • count

      void count(String metric, long delta, double sampleRate)
      Adjust the counter value.

      This uses sampling in order to approximate the actual number of increments. An update will be reported for only sampleRate * 100 percent of all invocations.

      Parameters:
      metric - metric name
      delta - adjustment value
      sampleRate - Percentage of invocations to actually report. If the specified value is zero or negative, nothing will be reported. If the value is 1 or greater, it will always report.
    • count

      default void count(String namespace, String metric, long delta, double sampleRate)
      Adjust the counter value.

      This uses sampling in order to approximate the actual number of increments. An update will be reported for only sampleRate * 100 percent of all invocations.

      Parameters:
      namespace - metric namespace
      metric - metric name
      delta - adjustment value
      sampleRate - Percentage of invocations to actually report. If the specified value is zero or negative, nothing will be reported. If the value is 1 or greater, it will always report.
      Since:
      5.4.0
    • count

      void count(String metric, long delta, Set<Dimension> dimensions)
      Adjust the counter value.
      Parameters:
      metric - metric name
      delta - adjustment value
      dimensions - dimensions identifying the entity
    • count

      default void count(String namespace, String metric, long delta, Set<Dimension> dimensions)
      Adjust the counter value.
      Parameters:
      namespace - metric namespace
      metric - metric name
      delta - adjustment value
      dimensions - dimensions identifying the entity
      Since:
      5.4.0
    • count

      void count(String metric, long delta, double sampleRate, Set<Dimension> dimensions)
      Adjust the counter value.

      This uses sampling in order to approximate the actual number of increments. An update will be reported for only sampleRate * 100 percent of all invocations.

      Parameters:
      metric - metric name
      delta - adjustment value
      sampleRate - Percentage of invocations to actually report. If the specified value is zero or negative, nothing will be reported. If the value is 1 or greater, it will always report.
      dimensions - dimensions identifying the entity
    • count

      default void count(String namespace, String metric, long delta, double sampleRate, Set<Dimension> dimensions)
      Adjust the counter value.

      This uses sampling in order to approximate the actual number of increments. An update will be reported for only sampleRate * 100 percent of all invocations.

      Parameters:
      namespace - metric namespace
      metric - metric name
      delta - adjustment value
      sampleRate - Percentage of invocations to actually report. If the specified value is zero or negative, nothing will be reported. If the value is 1 or greater, it will always report.
      dimensions - dimensions identifying the entity
      Since:
      5.4.0
    • gauge

      void gauge(String metric, double absoluteValue)
      Set the specified gauge's value.
      Parameters:
      metric - metric name
      absoluteValue - absolute value
    • gauge

      default void gauge(String namespace, String metric, double absoluteValue)
      Set the specified gauge's value.
      Parameters:
      namespace - metric namespace
      metric - metric name
      absoluteValue - absolute value
      Since:
      5.4.0
    • gauge

      void gauge(String metric, double absoluteValue, Unit unit)
      Set the specified gauge's value.
      Parameters:
      metric - metric name
      absoluteValue - absolute value
      unit - unit of measure
    • gauge

      default void gauge(String namespace, String metric, double absoluteValue, Unit unit)
      Set the specified gauge's value.
      Parameters:
      namespace - metric namespace
      metric - metric name
      absoluteValue - absolute value
      unit - unit of measure
      Since:
      5.4.0
    • gauge

      void gauge(String metric, double absoluteValue, Set<Dimension> dimensions)
      Set the specified gauge's value.
      Parameters:
      metric - metric name
      absoluteValue - absolute value
      dimensions - dimensions identifying the entity
    • gauge

      default void gauge(String namespace, String metric, double absoluteValue, Set<Dimension> dimensions)
      Set the specified gauge's value.
      Parameters:
      namespace - metric namespace
      metric - metric name
      absoluteValue - absolute value
      dimensions - dimensions identifying the entity
      Since:
      5.4.0
    • gauge

      void gauge(String metric, double absoluteValue, Unit unit, Set<Dimension> dimensions)
      Set the specified gauge's value.
      Parameters:
      metric - metric name
      absoluteValue - absolute value
      unit - unit of measure
      dimensions - dimensions identifying the entity
    • gauge

      default void gauge(String namespace, String metric, double absoluteValue, Unit unit, Set<Dimension> dimensions)
      Set the specified gauge's value.
      Parameters:
      namespace - metric namespace
      metric - metric name
      absoluteValue - absolute value
      unit - unit of measure
      dimensions - dimensions identifying the entity
      Since:
      5.4.0
    • gauge

      void gauge(String metric, DoubleSupplier supplier)
      Register periodic sampling of a gauge.

      The client will sample the value at its configured sampling interval.

      This method should only be called once per unique combination of metric name and dimensions. Duplicate registrations are ignored and may be reported via an implementation-specific error handler.

      Parameters:
      metric - metric name
      supplier - value supplier called once per sampling interval
    • gauge

      default void gauge(String namespace, String metric, DoubleSupplier supplier)
      Register periodic sampling of a gauge.

      The client will sample the value at its configured sampling interval.

      This method should only be called once per unique combination of metric name and dimensions. Duplicate registrations are ignored and may be reported via an implementation-specific error handler.

      Parameters:
      namespace - metric namespace
      metric - metric name
      supplier - value supplier called once per sampling interval
      Since:
      5.4.0
    • gauge

      void gauge(String metric, DoubleSupplier supplier, Set<Dimension> dimensions)
      Register periodic sampling of a gauge.

      The client will sample the value at its configured sampling interval.

      This method should only be called once per unique combination of metric name and dimensions. Duplicate registrations are ignored and may be reported via an implementation-specific error handler.

      Parameters:
      metric - metric name
      supplier - value supplier called once per sampling interval
      dimensions - dimensions identifying the entity
    • gauge

      default void gauge(String namespace, String metric, DoubleSupplier supplier, Set<Dimension> dimensions)
      Register periodic sampling of a gauge.

      The client will sample the value at its configured sampling interval.

      This method should only be called once per unique combination of metric name and dimensions. Duplicate registrations are ignored and may be reported via an implementation-specific error handler.

      Parameters:
      namespace - metric namespace
      metric - metric name
      supplier - value supplier called once per sampling interval
      dimensions - dimensions identifying the entity
      Since:
      5.4.0
    • gauge

      void gauge(String metric, DoubleSupplier supplier, Unit unit)
      Register periodic sampling of a gauge.

      The client will sample the value at its configured sampling interval.

      This method should only be called once per unique combination of metric name and dimensions. Duplicate registrations are ignored and may be reported via an implementation-specific error handler.

      Parameters:
      metric - metric name
      supplier - value supplier called once per sampling interval
      unit - unit of measure
    • gauge

      default void gauge(String namespace, String metric, DoubleSupplier supplier, Unit unit)
      Register periodic sampling of a gauge.

      The client will sample the value at its configured sampling interval.

      This method should only be called once per unique combination of metric name and dimensions. Duplicate registrations are ignored and may be reported via an implementation-specific error handler.

      Parameters:
      namespace - metric namespace
      metric - metric name
      supplier - value supplier called once per sampling interval
      unit - unit of measure
      Since:
      5.4.0
    • gauge

      void gauge(String metric, DoubleSupplier supplier, Unit unit, Set<Dimension> dimensions)
      Register periodic sampling of a gauge.

      The client will sample the value at its configured sampling interval.

      This method should only be called once per unique combination of metric name and dimensions. Duplicate registrations are ignored and may be reported via an implementation-specific error handler.

      Parameters:
      metric - metric name
      supplier - value supplier called once per sampling interval
      unit - unit of measure
      dimensions - dimensions identifying the entity
    • gauge

      default void gauge(String namespace, String metric, DoubleSupplier supplier, Unit unit, Set<Dimension> dimensions)
      Register periodic sampling of a gauge.

      The client will sample the value at its configured sampling interval.

      This method should only be called once per unique combination of metric name and dimensions. Duplicate registrations are ignored and may be reported via an implementation-specific error handler.

      Parameters:
      namespace - metric namespace
      metric - metric name
      supplier - value supplier called once per sampling interval
      unit - unit of measure
      dimensions - dimensions identifying the entity
      Since:
      5.4.0
    • removeGaugeSampler

      void removeGaugeSampler(String metric)
      Remove a periodically sampled gauge that was registered via gauge(String, DoubleSupplier) or gauge(String, DoubleSupplier, Unit).

      The metric name must correspond exactly to the original registration. The unit is ignored.

      Parameters:
      metric - metric name
    • removeGaugeSampler

      default void removeGaugeSampler(String namespace, String metric)
      Remove a periodically sampled gauge that was registered via gauge(String, DoubleSupplier) or gauge(String, DoubleSupplier, Unit).

      The metric name must correspond exactly to the original registration. The unit is ignored.

      Parameters:
      namespace - metric namespace
      metric - metric name
      Since:
      5.4.0
    • removeGaugeSampler

      void removeGaugeSampler(String metric, Set<Dimension> dimensions)
      Remove a periodically sampled gauge that was registered via gauge(String, DoubleSupplier, Set) or gauge(String, DoubleSupplier, Unit, Set).

      The metric name and dimensions must correspond exactly to the original registration. The unit is ignored.

      Parameters:
      metric - metric name
      dimensions - dimensions
    • removeGaugeSampler

      default void removeGaugeSampler(String namespace, String metric, Set<Dimension> dimensions)
      Remove a periodically sampled gauge that was registered via gauge(String, DoubleSupplier, Set) or gauge(String, DoubleSupplier, Unit, Set).

      The metric name and dimensions must correspond exactly to the original registration. The unit is ignored.

      Parameters:
      namespace - metric namespace
      metric - metric name
      dimensions - dimensions
      Since:
      5.4.0
    • clearGaugeSamplers

      void clearGaugeSamplers()
      Clear all periodically sampled gauges.
    • adjustGauge

      void adjustGauge(String metric, double delta)
      Adjust the specified gauge's value.
      Parameters:
      metric - metric name
      delta - amount to adjust by
    • adjustGauge

      default void adjustGauge(String namespace, String metric, double delta)
      Adjust the specified gauge's value.
      Parameters:
      namespace - metric namespace
      metric - metric name
      delta - amount to adjust by
      Since:
      5.4.0
    • adjustGauge

      void adjustGauge(String metric, double delta, Unit unit)
      Adjust the specified gauge's value.
      Parameters:
      metric - metric name
      delta - amount to adjust by
      unit - unit of measure
    • adjustGauge

      default void adjustGauge(String namespace, String metric, double delta, Unit unit)
      Adjust the specified gauge's value.
      Parameters:
      namespace - metric namespace
      metric - metric name
      delta - amount to adjust by
      unit - unit of measure
      Since:
      5.4.0
    • adjustGauge

      void adjustGauge(String metric, double delta, Set<Dimension> dimensions)
      Adjust the specified gauge's value.
      Parameters:
      metric - metric name
      delta - amount to adjust by
      dimensions - dimensions identifying the entity
    • adjustGauge

      default void adjustGauge(String namespace, String metric, double delta, Set<Dimension> dimensions)
      Adjust the specified gauge's value.
      Parameters:
      namespace - metric namespace
      metric - metric name
      delta - amount to adjust by
      dimensions - dimensions identifying the entity
      Since:
      5.4.0
    • adjustGauge

      void adjustGauge(String metric, double delta, Unit unit, Set<Dimension> dimensions)
      Adjust the specified gauge's value.
      Parameters:
      metric - metric name
      delta - amount to adjust by
      unit - unit of measure
      dimensions - dimensions identifying the entity
    • adjustGauge

      default void adjustGauge(String namespace, String metric, double delta, Unit unit, Set<Dimension> dimensions)
      Adjust the specified gauge's value.
      Parameters:
      namespace - metric namespace
      metric - metric name
      delta - amount to adjust by
      unit - unit of measure
      dimensions - dimensions identifying the entity
      Since:
      5.4.0
    • unique

      void unique(String metric, String identifier)
      Report a unique value in a bucket or "set".

      The server will track the number of unique identifiers in the named set and report as a counter.

      Parameters:
      metric - set name
      identifier - unique identifier
    • unique

      default void unique(String namespace, String metric, String identifier)
      Report a unique value in a bucket or "set".

      The server will track the number of unique identifiers in the named set and report as a counter.

      Parameters:
      namespace - metric namespace
      metric - set name
      identifier - unique identifier
      Since:
      5.4.0
    • unique

      void unique(String metric, String identifier, Set<Dimension> dimensions)
      Report a unique value in a bucket or "set".

      The server will track the number of unique identifiers in the named set and report as a counter.

      Parameters:
      metric - set name
      identifier - unique identifier
      dimensions - dimensions identifying the entity
    • unique

      default void unique(String namespace, String metric, String identifier, Set<Dimension> dimensions)
      Report a unique value in a bucket or "set".

      The server will track the number of unique identifiers in the named set and report as a counter.

      Parameters:
      namespace - metric namespace
      metric - set name
      identifier - unique identifier
      dimensions - dimensions identifying the entity
      Since:
      5.4.0
    • timer

      void timer(String metric, long millis)
      Report elapsed time (in milliseconds) of an operation.
      Parameters:
      metric - timer name
      millis - elapsed milliseconds
    • timer

      default void timer(String namespace, String metric, long millis)
      Report elapsed time (in milliseconds) of an operation.
      Parameters:
      namespace - metric namespace
      metric - timer name
      millis - elapsed milliseconds
      Since:
      5.4.0
    • timer

      void timer(String metric, long millis, double sampleRate)
      Report elapsed time (in milliseconds) of an operation.

      This uses sampling in order to approximate the actual number of invocations. An update will be reported for only sampleRate * 100 percent of all invocations.

      Parameters:
      metric - timer name
      millis - elapsed milliseconds
      sampleRate - Percentage of invocations to actually report. If the specified value is zero or negative, nothing will be reported. If the value is 1 or greater, it will always report.
    • timer

      default void timer(String namespace, String metric, long millis, double sampleRate)
      Report elapsed time (in milliseconds) of an operation.

      This uses sampling in order to approximate the actual number of invocations. An update will be reported for only sampleRate * 100 percent of all invocations.

      Parameters:
      namespace - metric namespace
      metric - timer name
      millis - elapsed milliseconds
      sampleRate - Percentage of invocations to actually report. If the specified value is zero or negative, nothing will be reported. If the value is 1 or greater, it will always report.
      Since:
      5.4.0
    • timer

      void timer(String metric, long millis, Set<Dimension> dimensions)
      Report elapsed time (in milliseconds) of an operation.
      Parameters:
      metric - timer name
      millis - elapsed milliseconds
      dimensions - dimensions identifying the entity
    • timer

      default void timer(String namespace, String metric, long millis, Set<Dimension> dimensions)
      Report elapsed time (in milliseconds) of an operation.
      Parameters:
      namespace - metric namespace
      metric - timer name
      millis - elapsed milliseconds
      dimensions - dimensions identifying the entity
      Since:
      5.4.0
    • timer

      void timer(String metric, long millis, double sampleRate, Set<Dimension> dimensions)
      Report elapsed time (in milliseconds) of an operation.

      This uses sampling in order to approximate the actual number of invocations. An update will be reported for only sampleRate * 100 percent of all invocations.

      Parameters:
      metric - timer name
      millis - elapsed milliseconds
      sampleRate - Percentage of invocations to actually report. If the specified value is zero or negative, nothing will be reported. If the value is 1 or greater, it will always report.
      dimensions - dimensions identifying the entity
    • timer

      default void timer(String namespace, String metric, long millis, double sampleRate, Set<Dimension> dimensions)
      Report elapsed time (in milliseconds) of an operation.

      This uses sampling in order to approximate the actual number of invocations. An update will be reported for only sampleRate * 100 percent of all invocations.

      Parameters:
      namespace - metric namespace
      metric - timer name
      millis - elapsed milliseconds
      sampleRate - Percentage of invocations to actually report. If the specified value is zero or negative, nothing will be reported. If the value is 1 or greater, it will always report.
      dimensions - dimensions identifying the entity
      Since:
      5.4.0
    • timer

      default void timer(String metric, long value, TimeUnit unit)
      Report elapsed time of an operation.
      Parameters:
      metric - timer name
      value - elapsed time
      unit - value unit
    • timer

      default void timer(String namespace, String metric, long value, TimeUnit unit)
      Report elapsed time of an operation.
      Parameters:
      namespace - metric namespace
      metric - timer name
      value - elapsed time
      unit - value unit
      Since:
      5.4.0
    • timer

      default void timer(String metric, long value, TimeUnit unit, double sampleRate)
      Report elapsed time of an operation.

      This uses sampling in order to approximate the actual number of invocations. An update will be reported for only sampleRate * 100 percent of all invocations.

      Parameters:
      metric - timer name
      value - elapsed time
      unit - value unit
      sampleRate - Percentage of invocations to actually report. If the specified value is zero or negative, nothing will be reported. If the value is 1 or greater, it will always report.
    • timer

      default void timer(String namespace, String metric, long value, TimeUnit unit, double sampleRate)
      Report elapsed time of an operation.

      This uses sampling in order to approximate the actual number of invocations. An update will be reported for only sampleRate * 100 percent of all invocations.

      Parameters:
      namespace - metric namespace
      metric - timer name
      value - elapsed time
      unit - value unit
      sampleRate - Percentage of invocations to actually report. If the specified value is zero or negative, nothing will be reported. If the value is 1 or greater, it will always report.
      Since:
      5.4.0
    • timer

      default void timer(String metric, long value, TimeUnit unit, Set<Dimension> dimensions)
      Report elapsed time of an operation.
      Parameters:
      metric - timer name
      value - elapsed time
      unit - value unit
      dimensions - dimensions identifying the entity
    • timer

      default void timer(String namespace, String metric, long value, TimeUnit unit, Set<Dimension> dimensions)
      Report elapsed time of an operation.
      Parameters:
      namespace - metric namespace
      metric - timer name
      value - elapsed time
      unit - value unit
      dimensions - dimensions identifying the entity
      Since:
      5.4.0
    • timer

      default void timer(String metric, long value, TimeUnit unit, double sampleRate, Set<Dimension> dimensions)
      Report elapsed time of an operation.

      This uses sampling in order to approximate the actual number of invocations. An update will be reported for only sampleRate * 100 percent of all invocations.

      Parameters:
      metric - timer name
      value - elapsed time
      unit - value unit
      sampleRate - Percentage of invocations to actually report. If the specified value is zero or negative, nothing will be reported. If the value is 1 or greater, it will always report.
      dimensions - dimensions identifying the entity
    • timer

      default void timer(String namespace, String metric, long value, TimeUnit unit, double sampleRate, Set<Dimension> dimensions)
      Report elapsed time of an operation.

      This uses sampling in order to approximate the actual number of invocations. An update will be reported for only sampleRate * 100 percent of all invocations.

      Parameters:
      namespace - metric namespace
      metric - timer name
      value - elapsed time
      unit - value unit
      sampleRate - Percentage of invocations to actually report. If the specified value is zero or negative, nothing will be reported. If the value is 1 or greater, it will always report.
      dimensions - dimensions identifying the entity
      Since:
      5.4.0
    • event

      void event(String name, String message, Severity severity)
      Report an event.

      The event will be immediately reported for.

      Parameters:
      name - event name
      message - message
      severity - severity
    • event

      default void event(String namespace, String name, String message, Severity severity)
      Report an event.

      The event will be immediately reported for.

      Parameters:
      namespace - event namespace
      name - event name
      message - message
      severity - severity
      Since:
      5.4.0
    • event

      void event(String name, String message, Severity severity, Set<Dimension> dimensions)
      Report an event.

      The event will be immediately reported for.

      Parameters:
      name - event name
      message - message
      severity - severity
      dimensions - dimensions identifying the entity
    • event

      default void event(String namespace, String name, String message, Severity severity, Set<Dimension> dimensions)
      Report an event.

      The event will be immediately reported for.

      Parameters:
      namespace - event namespace
      name - event name
      message - message
      severity - severity
      dimensions - dimensions identifying the entity
      Since:
      5.4.0
    • attribute

      void attribute(String name, String value)
      Set the specified attribute's value.
      Parameters:
      name - attribute name
      value - attribute value
    • attribute

      default void attribute(String namespace, String name, String value)
      Set the specified attribute's value.
      Parameters:
      namespace - attribute namespace
      name - attribute name
      value - attribute value
      Since:
      5.4.0
    • attribute

      void attribute(String metric, String value, Set<Dimension> dimensions)
      Set the specified attribute's value.
      Parameters:
      metric - attribute name
      value - attribute value
      dimensions - dimensions identifying the entity
    • attribute

      default void attribute(String namespace, String metric, String value, Set<Dimension> dimensions)
      Set the specified attribute's value.
      Parameters:
      namespace - attribute namespace
      metric - attribute name
      value - attribute value
      dimensions - dimensions identifying the entity
      Since:
      5.4.0