Documentation ¶
Index ¶
- Constants
- func NewAvgDailyDrivingDuration(core utils.QueryGenerator) utils.QueryFiller
- func NewAvgDailyDrivingSession(core utils.QueryGenerator) utils.QueryFiller
- func NewAvgLoad(core utils.QueryGenerator) utils.QueryFiller
- func NewAvgVsProjectedFuelConsumption(core utils.QueryGenerator) utils.QueryFiller
- func NewDailyTruckActivity(core utils.QueryGenerator) utils.QueryFiller
- func NewLastLocPerTruck(core utils.QueryGenerator) utils.QueryFiller
- func NewLastLocSingleTruck(core utils.QueryGenerator) utils.QueryFiller
- func NewStationaryTrucks(core utils.QueryGenerator) utils.QueryFiller
- func NewTruckBreakdownFrequency(core utils.QueryGenerator) utils.QueryFiller
- func NewTruckWithHighLoad(core utils.QueryGenerator) utils.QueryFiller
- func NewTruckWithLongDailySession(core utils.QueryGenerator) utils.QueryFiller
- func NewTruckWithLowFuel(core utils.QueryGenerator) utils.QueryFiller
- func NewTrucksWithLongDrivingSession(core utils.QueryGenerator) utils.QueryFiller
- type AvgDailyDrivingDuration
- type AvgDailyDrivingDurationFiller
- type AvgDailyDrivingSession
- type AvgDailyDrivingSessionFiller
- type AvgLoad
- type AvgLoadFiller
- type AvgVsProjectedFuelConsumption
- type AvgVsProjectedFuelConsumptionFiller
- type Core
- type DailyTruckActivity
- type DailyTruckActivityFiller
- type LastLocByTruckFiller
- type LastLocFiller
- type LastLocPerTruck
- type LastLocSingleTruck
- type StationaryTrucks
- type StationaryTrucksFiller
- type TruckBreakdownFrequency
- type TruckBreakdownFrequencyFiller
- type TruckHighLoadFiller
- type TruckLongDailySessionFiller
- type TruckLongDrivingSessionFiller
- type TruckLowFuelFiller
- type TrucksWithHighLoad
- type TrucksWithLongDailySession
- type TrucksWithLongDrivingSession
- type TrucksWithLowFuel
Constants ¶
const ( // ReadingsTableName is the name of the table where all the readings // time series data is stored. ReadingsTableName = "readings" // DiagnosticsTableName is the name of the table where all the diagnostics // time series data is stored. DiagnosticsTableName = "diagnostics" // StationaryDuration is the time duration to evaluate stationary trucks. StationaryDuration = 10 * time.Minute // LongDrivingSessionDuration is the the time duration which is considered a // long driving session without stopping. LongDrivingSessionDuration = 4 * time.Hour // DailyDrivingDuration is time duration of one day of driving. DailyDrivingDuration = 24 * time.Hour // LabelLastLoc is the label for the last location query. LabelLastLoc = "last-loc" // LabelLastLocSingleTruck is the label for the last location query for a single truck. LabelLastLocSingleTruck = "single-last-loc" // LabelLowFuel is the label for the low fuel query. LabelLowFuel = "low-fuel" // LabelHighLoad is the label for the high load query. LabelHighLoad = "high-load" // LabelStationaryTrucks is the label for the stationary trucks query. LabelStationaryTrucks = "stationary-trucks" // LabelLongDrivingSessions is the label for the long driving sessions query. LabelLongDrivingSessions = "long-driving-sessions" // LabelLongDailySessions is the label for the long daily sessions query. LabelLongDailySessions = "long-daily-sessions" // LabelAvgVsProjectedFuelConsumption is the label for the avg vs projected fuel consumption query. LabelAvgVsProjectedFuelConsumption = "avg-vs-projected-fuel-consumption" // LabelAvgDailyDrivingDuration is the label for the avg daily driving durationquery. LabelAvgDailyDrivingDuration = "avg-daily-driving-duration" // LabelAvgDailyDrivingSession is the label for the avg daily driving session query. LabelAvgDailyDrivingSession = "avg-daily-driving-session" // LabelAvgLoad is the label for the avg load query. LabelAvgLoad = "avg-load" // LabelDailyActivity is the label for the daily activity query. LabelDailyActivity = "daily-activity" // LabelBreakdownFrequency is the label for the breakdown frequency query. LabelBreakdownFrequency = "breakdown-frequency" )
Variables ¶
This section is empty.
Functions ¶
func NewAvgDailyDrivingDuration ¶
func NewAvgDailyDrivingDuration(core utils.QueryGenerator) utils.QueryFiller
NewAvgDailyDrivingDuration creates a new avg daily driving duration per driver query filler.
func NewAvgDailyDrivingSession ¶
func NewAvgDailyDrivingSession(core utils.QueryGenerator) utils.QueryFiller
NewAvgDailyDrivingSession creates a new avg daily driving session query filler.
func NewAvgLoad ¶
func NewAvgLoad(core utils.QueryGenerator) utils.QueryFiller
NewAvgLoad creates a new avg load query filler.
func NewAvgVsProjectedFuelConsumption ¶
func NewAvgVsProjectedFuelConsumption(core utils.QueryGenerator) utils.QueryFiller
NewAvgVsProjectedFuelConsumption creates a new avg vs projected fuel consumption query filler.
func NewDailyTruckActivity ¶
func NewDailyTruckActivity(core utils.QueryGenerator) utils.QueryFiller
NewDailyTruckActivity creates a new daily truck activity query filler.
func NewLastLocPerTruck ¶
func NewLastLocPerTruck(core utils.QueryGenerator) utils.QueryFiller
NewLastLocPerTruck creates a new last location query filler.
func NewLastLocSingleTruck ¶
func NewLastLocSingleTruck(core utils.QueryGenerator) utils.QueryFiller
NewLastLocSingleTruck creates a new last location query filler.
func NewStationaryTrucks ¶
func NewStationaryTrucks(core utils.QueryGenerator) utils.QueryFiller
NewStationaryTrucks creates a new stationary trucks query filler.
func NewTruckBreakdownFrequency ¶
func NewTruckBreakdownFrequency(core utils.QueryGenerator) utils.QueryFiller
NewTruckBreakdownFrequency creates a new truck breakdown frequency query filler.
func NewTruckWithHighLoad ¶
func NewTruckWithHighLoad(core utils.QueryGenerator) utils.QueryFiller
NewTruckWithHighLoad creates a new trucks with high load query filler.
func NewTruckWithLongDailySession ¶
func NewTruckWithLongDailySession(core utils.QueryGenerator) utils.QueryFiller
NewTruckWithLongDailySession creates a new trucks with longer driving session query filler.
func NewTruckWithLowFuel ¶
func NewTruckWithLowFuel(core utils.QueryGenerator) utils.QueryFiller
NewTruckWithLowFuel creates a new trucks with low fuel query filler.
func NewTrucksWithLongDrivingSession ¶
func NewTrucksWithLongDrivingSession(core utils.QueryGenerator) utils.QueryFiller
NewTrucksWithLongDrivingSession creates a new trucks with longer driving sessions query filler.
Types ¶
type AvgDailyDrivingDuration ¶
type AvgDailyDrivingDuration struct {
// contains filtered or unexported fields
}
AvgDailyDrivingDuration contains info for filling in avg daily driving duration per driver queries.
type AvgDailyDrivingDurationFiller ¶
AvgDailyDrivingDurationFiller is a type that can fill in an avg daily driving duration per driver query.
type AvgDailyDrivingSession ¶
type AvgDailyDrivingSession struct {
// contains filtered or unexported fields
}
AvgDailyDrivingSession contains info for filling in avg daily driving session queries.
type AvgDailyDrivingSessionFiller ¶
AvgDailyDrivingSessionFiller is a type that can fill in an avg daily driving session query.
type AvgLoad ¶
type AvgLoad struct {
// contains filtered or unexported fields
}
AvgLoad contains info for filling in avg load queries.
type AvgLoadFiller ¶
AvgLoadFiller is a type that can fill in an avg load query.
type AvgVsProjectedFuelConsumption ¶
type AvgVsProjectedFuelConsumption struct {
// contains filtered or unexported fields
}
AvgVsProjectedFuelConsumption contains info for filling in avg vs projected fuel consumption queries.
type AvgVsProjectedFuelConsumptionFiller ¶
AvgVsProjectedFuelConsumptionFiller is a type that can fill in an avg vs projected fuel consumption query.
type Core ¶
Core is the common component of all generators for all systems.
func (Core) GetRandomFleet ¶
GetRandomFleet returns one of the fleet choices by random.
type DailyTruckActivity ¶
type DailyTruckActivity struct {
// contains filtered or unexported fields
}
DailyTruckActivity contains info for filling in daily truck activity queries.
type DailyTruckActivityFiller ¶
DailyTruckActivityFiller is a type that can fill in the daily truck activity query.
type LastLocByTruckFiller ¶
LastLocByTruckFiller is a type that can fill in a last location query for a number of trucks.
type LastLocFiller ¶
LastLocFiller is a type that can fill in a last location query.
type LastLocPerTruck ¶
type LastLocPerTruck struct {
// contains filtered or unexported fields
}
LastLocPerTruck contains info for filling in last location queries.
type LastLocSingleTruck ¶
type LastLocSingleTruck struct {
// contains filtered or unexported fields
}
LastLocSingleTruck contains info for filling in last location query for a single truck.
type StationaryTrucks ¶
type StationaryTrucks struct {
// contains filtered or unexported fields
}
StationaryTrucks contains info for filling in stationary trucks queries.
type StationaryTrucksFiller ¶
StationaryTrucksFiller is a type that can fill in the stationary trucks query.
type TruckBreakdownFrequency ¶
type TruckBreakdownFrequency struct {
// contains filtered or unexported fields
}
TruckBreakdownFrequency contains info for filling in truck breakdown frequency queries.
type TruckBreakdownFrequencyFiller ¶
TruckBreakdownFrequencyFiller is a type that can fill in the truck breakdown frequency query.
type TruckHighLoadFiller ¶
TruckHighLoadFiller is a type that can fill in a trucks with high load query.
type TruckLongDailySessionFiller ¶
TruckLongDailySessionFiller is a type that can fill in a trucks with longer daily driving sessions query.
type TruckLongDrivingSessionFiller ¶
TruckLongDrivingSessionFiller is a type that can fill in a trucks with longer driving sessions query.
type TruckLowFuelFiller ¶
TruckLowFuelFiller is a type that can fill in a trucks with low fuel query.
type TrucksWithHighLoad ¶
type TrucksWithHighLoad struct {
// contains filtered or unexported fields
}
TrucksWithHighLoad contains info for filling in trucks with high load queries.
type TrucksWithLongDailySession ¶
type TrucksWithLongDailySession struct {
// contains filtered or unexported fields
}
TrucksWithLongDailySession contains info for filling in trucks with longer driving session queries.
type TrucksWithLongDrivingSession ¶
type TrucksWithLongDrivingSession struct {
// contains filtered or unexported fields
}
TrucksWithLongDrivingSession contains info for filling in trucks with longer driving sessions queries.
type TrucksWithLowFuel ¶
type TrucksWithLowFuel struct {
// contains filtered or unexported fields
}
TrucksWithLowFuel contains info for filling in trucks with low fuel queries.