Class LiveTraceSamplingConfig.Builder

    • Constructor Detail

    • Method Detail

      • setMatchNumber

        public LiveTraceSamplingConfig.Builder setMatchNumber​(java.lang.Long matchNumber)
        First N packets are sampled. The upper limits of sampling number for livetrace actions are listed as below: - trace action: 50 - packet capture action: 500 - datapath statistics action: 65535 format: int64
        Parameters:
        matchNumber - New value for the property.
      • setSamplingInterval

        public LiveTraceSamplingConfig.Builder setSamplingInterval​(java.lang.Long samplingInterval)
        A packet is sampled for every given time interval in ms. format: int64
        Parameters:
        samplingInterval - New value for the property.
      • setSamplingRate

        public LiveTraceSamplingConfig.Builder setSamplingRate​(java.lang.Long samplingRate)
        1 out of N packets is sampled on average. format: int64
        Parameters:
        samplingRate - New value for the property.