Class SamplingSettings


  • public final class SamplingSettings
    extends Object
    Sampling settings for Diagnostic.
    • Constructor Detail

      • SamplingSettings

        public SamplingSettings()
    • Method Detail

      • samplingType

        public SamplingType samplingType()
        Get the samplingType property: Sampling type.
        Returns:
        the samplingType value.
      • withSamplingType

        public SamplingSettings withSamplingType​(SamplingType samplingType)
        Set the samplingType property: Sampling type.
        Parameters:
        samplingType - the samplingType value to set.
        Returns:
        the SamplingSettings object itself.
      • percentage

        public Double percentage()
        Get the percentage property: Rate of sampling for fixed-rate sampling.
        Returns:
        the percentage value.
      • withPercentage

        public SamplingSettings withPercentage​(Double percentage)
        Set the percentage property: Rate of sampling for fixed-rate sampling.
        Parameters:
        percentage - the percentage value to set.
        Returns:
        the SamplingSettings object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.