Class MetricsUtil


  • public class MetricsUtil
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      MetricsUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Map<java.lang.String,​java.lang.String> tagsFor​(ActionType actionType, java.lang.String actionName, java.lang.String ingressFlow, java.lang.String egressFlow)
      Metrics are confusingly named! Assign the correct keys.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MetricsUtil

        public MetricsUtil()
    • Method Detail

      • tagsFor

        public static java.util.Map<java.lang.String,​java.lang.String> tagsFor​(@NotNull
                                                                                     ActionType actionType,
                                                                                     @NotNull
                                                                                     java.lang.String actionName,
                                                                                     java.lang.String ingressFlow,
                                                                                     java.lang.String egressFlow)
        Metrics are confusingly named! Assign the correct keys.
        Parameters:
        actionType - lowercased, becomes "action" tagged
        actionName - becomes "source" tagged
        ingressFlow - "ingressFlow" tagged
        egressFlow - "egressFlow" tagged
        Returns:
        the map