Class OracleCloudMetricsNamingConvention

  • All Implemented Interfaces:
    io.micrometer.core.instrument.config.NamingConvention

    public class OracleCloudMetricsNamingConvention
    extends java.lang.Object
    implements io.micrometer.core.instrument.config.NamingConvention
    • Field Summary

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

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String name​(java.lang.String name, io.micrometer.core.instrument.Meter.Type type, java.lang.String baseUnit)
      A valid name value starts with an alphabetical character and includes only alphanumeric characters, dots, underscores, hyphens, and dollar signs.
      java.lang.String tagKey​(java.lang.String key)
      A valid dimension key includes only printable ASCII, excluding periods (.) and spaces.
      java.lang.String tagValue​(java.lang.String value)
      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 Detail

      • OracleCloudMetricsNamingConvention

        public OracleCloudMetricsNamingConvention()
    • Method Detail

      • name

        public java.lang.String name​(java.lang.String name,
                                     io.micrometer.core.instrument.Meter.Type type,
                                     @Nullable
                                     java.lang.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 java.lang.String tagKey​(java.lang.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 java.lang.String tagValue​(java.lang.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