public class DatadogNamingConvention extends java.lang.Object implements NamingConvention
camelCase, snakeCase
Constructor and Description |
---|
DatadogNamingConvention() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
name(java.lang.String name,
Meter.Type type,
java.lang.String baseUnit)
https://help.datadoghq.com/hc/en-us/articles/203764705-What-are-valid-metric-names-
Datadog's publish API will automatically strip Unicode without replacement. |
java.lang.String |
tagKey(java.lang.String key)
Some set of non-alphanumeric characters will be replaced with '_', but not all (e.g.
|
java.lang.String |
tagValue(java.lang.String value)
Some set of non-alphanumeric characters will be replaced by Datadog automatically with '_', but not all
(e.g.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
name
public java.lang.String name(java.lang.String name, Meter.Type type, java.lang.String baseUnit)
https://help.datadoghq.com/hc/en-us/articles/203764705-What-are-valid-metric-names-
Datadog's publish API will automatically strip Unicode without replacement. It will also replace
all non-alphanumeric characters with '_'.name
in interface NamingConvention
public java.lang.String tagKey(java.lang.String key)
tagKey
in interface NamingConvention
public java.lang.String tagValue(java.lang.String value)
tagValue
in interface NamingConvention