Details
-
Improvement
-
Status: Resolved
-
Medium
-
Resolution: Won't Do
-
None
-
None
-
None
Description
https://git.opendaylight.org/gerrit/#/c/70822/ gave me the idea that perhaps theĀ Metrics API could also directly support Enum instead of String typed labels, something like this:
enum Reason { exception, pktexception, name_not_found, info_not_found, subnet_not_found, egress_not_found }; metricProvider.newCounter(..., "mac", "interface", Reason); // instead of ... "reason" pktDropCounter.label(macAddress).label(interfaceName).label(Reason.info_not_found).increment();