SamplingConfiguration
Contains configuration on how to sample a data stream of a given type.
Set on a Measure (as Measure.overrideSamplingConfiguration) or on a device (as DeviceConfiguration.defaultSamplingConfiguration). Subclasses hold the options, e.g. GranularitySamplingConfiguration. CARP Mobile Sensing adds more, such as PeriodicSamplingConfiguration.
- Inheritance
-
- Object
- Serializable
- SamplingConfiguration
- Implementers
- Annotations
-
- @JsonSerializable(includeIfNull: false, explicitToJson: true)
Constructors
SamplingConfiguration.fromJson
SamplingConfiguration
Properties
fromJsonFunction
The function which can convert a JSON string to an object of this type.
jsonType
Return the __type to be used for JSON serialization of this class. Default is runtimeType. Only specify this if you need another type.
Methods
toJson
Return a JSON encoding of this object.