HealthSamplingConfiguration
The sampling configuration of the HealthSamplingPackage.HEALTH measure.
Sets which healthDataTypes to collect. As a HistoricSamplingConfiguration, each collection fetches data back to the last time data was collected, or past back in time on the first collection.
- Inheritance
-
- Object
- Serializable
- SamplingConfiguration
- PersistentSamplingConfiguration
- HistoricSamplingConfiguration
- HealthSamplingConfiguration
- Annotations
-
- @JsonSerializable(includeIfNull: false, explicitToJson: true)
Constructors
HealthSamplingConfiguration.fromJson
HealthSamplingConfiguration
- Duration? past,
- required List<
HealthDataType> healthDataTypes,
Properties
fromJsonFunction
The function which can convert a JSON string to an object of this type.
healthDataTypes
getter/setter pair
The list of HealthDataType to collect.
Types not supported on the current platform are removed by the HealthProbe when it is initialized.
Methods
toJson
Return a JSON encoding of this object.