Package com.vmware.nsx_policy.model
Class LiveTraceSamplingConfig.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.LiveTraceSamplingConfig.Builder
-
- Enclosing class:
- LiveTraceSamplingConfig
public static final class LiveTraceSamplingConfig.Builder extends java.lang.Object
Builder class forLiveTraceSamplingConfig
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofLiveTraceSamplingConfig
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LiveTraceSamplingConfig
build()
LiveTraceSamplingConfig.Builder
setMatchNumber(java.lang.Long matchNumber)
First N packets are sampled.LiveTraceSamplingConfig.Builder
setSamplingInterval(java.lang.Long samplingInterval)
A packet is sampled for every given time interval in ms.LiveTraceSamplingConfig.Builder
setSamplingRate(java.lang.Long samplingRate)
1 out of N packets is sampled on average.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofLiveTraceSamplingConfig
.
-
-
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.
-
build
public LiveTraceSamplingConfig build()
-
-