Share via


SamplingSettings Class

  • java.lang.Object
    • com.microsoft.azure.management.apimanagement.v2019_01_01.SamplingSettings

public class SamplingSettings

Sampling settings for Diagnostic.

Constructor Summary

Constructor Description
SamplingSettings()

Method Summary

Modifier and Type Method and Description
java.lang.Double percentage()

Get rate of sampling for fixed-rate sampling.

SamplingType samplingType()

Get sampling type.

SamplingSettings withPercentage(Double percentage)

Set rate of sampling for fixed-rate sampling.

SamplingSettings withSamplingType(SamplingType samplingType)

Set sampling type.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

SamplingSettings

public SamplingSettings()

Method Details

percentage

public Double percentage()

Get rate of sampling for fixed-rate sampling.

Returns:

the percentage value

samplingType

public SamplingType samplingType()

Get sampling type. Possible values include: 'fixed'.

Returns:

the samplingType value

withPercentage

public SamplingSettings withPercentage(Double percentage)

Set rate of sampling for fixed-rate sampling.

Parameters:

percentage - the percentage value to set

Returns:

the SamplingSettings object itself.

withSamplingType

public SamplingSettings withSamplingType(SamplingType samplingType)

Set sampling type. Possible values include: 'fixed'.

Parameters:

samplingType - the samplingType value to set

Returns:

the SamplingSettings object itself.

Applies to