Interface ObservationDocumentation


public interface ObservationDocumentation
In order to describe your samples via e.g. enums instead of Strings you can use this interface that returns all the characteristics of a sample. We can analyze the sources and reuse this information to build a table of known metrics, their names and tags. We can generate documentation for all created samples but certain requirements need to be met.
  • Observations are grouped within an enum - the enum implements the ObservationDocumentation interface
  • If the observation contains KeyName then those need to be declared as nested enums
  • The getHighCardinalityKeyNames() need to call the nested enum's values() method to retrieve the array of allowed keys
  • The getLowCardinalityKeyNames() need to call the nested enum's values() method to retrieve the array of allowed keys
  • Javadocs around enums will be used as description
  • If you want to merge different KeyName enum values() methods you need to call the KeyName.merge(KeyName[]...) method
Since:
1.10.0