Documentation
¶
Overview ¶
Package normalizedpayload implements functionality for parsing and validating normalized payload.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Air ¶
type Air struct {
Temperature *float64
RelativeHumidity *float64
Pressure *float64
CO2 *float64
LightIntensity *float64
Location *string
}
Air is an air measurement.
type Measurement ¶
type Measurement struct {
Time *time.Time
Battery *float64
Soil Soil
Air Air
Wind Wind
Rain Rain
Water Water
Metering Metering
Action Action
Position Position
}
Measurement is a measurement.
type Metering ¶ added in v3.34.3
type Metering struct {
Water WaterMetering
}
Metering is a metering measurement.
type ParsedMeasurement ¶
type ParsedMeasurement struct {
Measurement
// ValidationErrors contains any errors that occurred during field validation.
ValidationErrors []error
// Valid only contains the valid fields, for which there were no validation errors.
Valid *structpb.Struct
}
ParsedMeasurement is the result of parsing measurements with Parse.
type Soil ¶ added in v3.25.2
type Soil struct {
Depth *float64
Moisture *float64
Temperature *float64
ElectricalConductivity *float64
PHLevel *float64
Nitrogen *float64
Phosphorus *float64
Potassium *float64
}
Soil is an soil measurement.
type WaterMetering ¶ added in v3.34.3
type WaterMetering struct {
Total *float64
}
WaterMetering is a water metering measurement.
Click to show internal directories.
Click to hide internal directories.