Skip to content

IntervalSamplingConfiguration

A SamplingConfiguration that sets the time interval between measurements.

Used by probes that sample on a timer, see IntervalProbe.

Inheritance
Implementers
Annotations

Constructors

IntervalSamplingConfiguration.fromJson

IntervalSamplingConfiguration.fromJson(
  1. Map<String, dynamic> json
)

IntervalSamplingConfiguration

IntervalSamplingConfiguration({
  1. required Duration interval,
})

Properties

fromJsonFunction

Function get fromJsonFunction
override

The function which can convert a JSON string to an object of this type.

interval

Duration interval
getter/setter pair

Sampling interval (i.e., delay between sampling).

Methods

toJson

Map<String, dynamic> toJson()
override

Return a JSON encoding of this object.