Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AggregatedMeasurementRequest ¶
type AggregatedMeasurementRequest struct { // List of sensor hardware IDs to run the measurement campaign on Sensors []string `json:"sensors"` // Start time in ISO 8601 Begin time.Time `json:"begin"` // End time in ISO 8601 End time.Time `json:"end"` // Lower bound for frequency in Hz FreqMin int64 `json:"freqMin"` // Upper bound for frequency in Hz FreqMax int64 `json:"freqMax"` // Frequency resolution in Hz FreqRes int64 `json:"freqRes"` // Time resolution in seconds TimeRes int64 `json:"timeRes"` // Campaign ID. For internal use only, will be ignored if not null CampaignId string `json:"campaignId"` }
Type AggregatedMeasurementRequest describes a HTTP request for a measurement campaign on multiple sensors, where the results are averaged over the specified time resolution.
func (AggregatedMeasurementRequest) Validate ¶
func (amr AggregatedMeasurementRequest) Validate() error
Validates the measurement request.
type RawMeasurementRequest ¶
type RawMeasurementRequest struct { // List of sensor hardware IDs to run the measurement campaign on Sensors []string `json:"sensors"` // Center frequency for measurement FreqCenter int64 // Start time in ISO 8601 Begin time.Time `json:"begin"` // End time in ISO 8601 End time.Time `json:"end"` // Campaign ID. For internal use only, will be ignored if not null CampaignId string `json:"campaignId"` }
Type RawMeasurementRequest describes a HTTP request for a measurement campaign on multiple sensors, where the results are not sampled and returned just as the sensor fetched them.
func (RawMeasurementRequest) Validate ¶
func (rmr RawMeasurementRequest) Validate() error
Validates the measurement request.
Click to show internal directories.
Click to hide internal directories.