public class DataIdPrefix
extends Object
A helper class to store prefixes used on integration with Hawkular Metrics.
Hawkular Metrics defines a composed key for data points in the form of (tenantId, type, metricId) where type is
implicit and infered from the API operation.
i.e. /hawkular/metrics/gauges/metricId
/hawkular/metrics/counters/metricId
Hawkular Alerting defines a general composed key in the form of (tenantId, dataId) for data referenced in
conditions.
In this context of Hawkular Metrics integration, dataId should be prefixed with the implicit type used.
i.e. /hawkular/metric/gauges/myMetricId1 -> dataId = "hm_g_myMetricId1"
/hawkular/metric/counters/myMetricId2 -> dataId = "hm_g_myMetricId2"
- Author:
- Jay Shaughnessy, Lucas Ponce