Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SFResponse ¶
type SFResponse struct {
// contains filtered or unexported fields
}
type SafecastResponseData ¶
type SafecastResponseData struct { Id int `json:"id"` User_id int `json:"user_id"` Value float32 `json:"value"` Unit string `json:"unit"` Location_name string `json:"location_name"` Device_id int `json:"device_id"` Original_id int `json:"original_id"` Measurement_import_id int `json:"measurement_import_id"` Captured_at string `json:"captured_at"` Height int `json:"height"` Devicetype_id string `json:"devicetype_id"` Sensor_id int `json:"sensor_id"` Station_id int `json:"station_id"` Channel_id int `json:"channel_id"` Latitude float32 `json:"latitude"` Longitude float32 `json:"longitude"` }
type Safecastbeat ¶
type Safecastbeat struct {
// contains filtered or unexported fields
}
Safecastbeat configuration.
func (*Safecastbeat) GetSafecast ¶
func (bt *Safecastbeat) GetSafecast(b *beat.Beat, lastRun time.Time, CAFile string) (error, SFResponse)
func (*Safecastbeat) TransformStationData ¶
func (bt *Safecastbeat) TransformStationData(data []SafecastResponseData) []common.MapStr
Click to show internal directories.
Click to hide internal directories.