Class OracleCloudMetricsNamingConvention

java.lang.Object
io.micronaut.oraclecloud.monitoring.micrometer.OracleCloudMetricsNamingConvention
All Implemented Interfaces:
io.micrometer.core.instrument.config.NamingConvention

public class OracleCloudMetricsNamingConvention extends Object implements io.micrometer.core.instrument.config.NamingConvention
NamingConvention for Oracle Cloud Monitoring.
Since:
1.2
Author:
Pavol Gressa
See Also:
  • Field Summary

    Fields inherited from interface io.micrometer.core.instrument.config.NamingConvention

    camelCase, dot, identity, slashes, snakeCase, upperCamelCase
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    name(String name, io.micrometer.core.instrument.Meter.Type type, String baseUnit)
    A valid name value starts with an alphabetical character and includes only alphanumeric characters, dots, underscores, hyphens, and dollar signs.
    A valid dimension key includes only printable ASCII, excluding periods (.) and spaces.
    A valid dimension value includes only Unicode characters.

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface io.micrometer.core.instrument.config.NamingConvention

    name
  • Constructor Details

    • OracleCloudMetricsNamingConvention

      public OracleCloudMetricsNamingConvention()
  • Method Details

    • name

      public String name(String name, io.micrometer.core.instrument.Meter.Type type, @Nullable String baseUnit)
      A valid name value starts with an alphabetical character and includes only alphanumeric characters, dots, underscores, hyphens, and dollar signs. The `oci_` prefix is reserved. Avoid entering confidential information.
      Specified by:
      name in interface io.micrometer.core.instrument.config.NamingConvention
      Parameters:
      name - name
      type - type
      baseUnit - baseUnit
      Returns:
      sanitized name
    • tagKey

      public String tagKey(String key)
      A valid dimension key includes only printable ASCII, excluding periods (.) and spaces. The character limit for a dimension key is 256.
      Specified by:
      tagKey in interface io.micrometer.core.instrument.config.NamingConvention
      Parameters:
      key - key
      Returns:
      sanitized tag key
    • tagValue

      public String tagValue(String value)
      A valid dimension value includes only Unicode characters. The character limit for a dimension value is 256. Empty strings are not allowed for keys or values. Avoid entering confidential information.
      Specified by:
      tagValue in interface io.micrometer.core.instrument.config.NamingConvention
      Parameters:
      value - value
      Returns:
      sanitized tag value