Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllFloatAggregationType = []FloatAggregationType{ FloatAggregationTypeAvg, FloatAggregationTypeMed, FloatAggregationTypeMax, FloatAggregationTypeMin, FloatAggregationTypeRand, }
View Source
var AllPrivilege = []Privilege{ PrivilegeVehicleNonLocationData, PrivilegeVehicleCommands, PrivilegeVehicleCurrentLocation, PrivilegeVehicleAllTimeLocation, PrivilegeVehicleVinCredential, }
View Source
var AllStringAggregationType = []StringAggregationType{ StringAggregationTypeRand, StringAggregationTypeTop, StringAggregationTypeUnique, }
Functions ¶
This section is empty.
Types ¶
type FloatAggregation ¶
type FloatAggregation struct { // Aggregation type. Type FloatAggregationType `json:"type"` // interval is a time span that used for aggregatting the data with. // A duration string is a sequence of decimal numbers, each with optional fraction and a unit suffix, // such as "300ms", "-1.5h" or "2h45m". Valid time units are "ms", "s", "m", "h", "d", "w", "y". Interval string `json:"interval"` }
type FloatAggregationType ¶
type FloatAggregationType string
const ( FloatAggregationTypeAvg FloatAggregationType = "AVG" FloatAggregationTypeMed FloatAggregationType = "MED" FloatAggregationTypeMax FloatAggregationType = "MAX" FloatAggregationTypeMin FloatAggregationType = "MIN" FloatAggregationTypeRand FloatAggregationType = "RAND" )
func (FloatAggregationType) IsValid ¶
func (e FloatAggregationType) IsValid() bool
func (FloatAggregationType) MarshalGQL ¶
func (e FloatAggregationType) MarshalGQL(w io.Writer)
func (FloatAggregationType) String ¶
func (e FloatAggregationType) String() string
func (*FloatAggregationType) UnmarshalGQL ¶
func (e *FloatAggregationType) UnmarshalGQL(v interface{}) error
type FloatSignalArgs ¶ added in v0.0.4
type FloatSignalArgs struct { Name string Agg FloatAggregation SignalArgs }
FloatSignalArgs is the arguments for querying a float signals.
type Privilege ¶
type Privilege string
const ( PrivilegeVehicleNonLocationData Privilege = "VEHICLE_NON_LOCATION_DATA" PrivilegeVehicleCommands Privilege = "VEHICLE_COMMANDS" PrivilegeVehicleCurrentLocation Privilege = "VEHICLE_CURRENT_LOCATION" PrivilegeVehicleAllTimeLocation Privilege = "VEHICLE_ALL_TIME_LOCATION" PrivilegeVehicleVinCredential Privilege = "VEHICLE_VIN_CREDENTIAL" )
func (Privilege) MarshalGQL ¶
func (*Privilege) UnmarshalGQL ¶
type SignalArgs ¶ added in v0.0.4
SignalArgs is the base arguments for querying signals.
type SignalFilter ¶ added in v0.0.4
type SignalFilter struct { // Filter signals by source type. // avalible sources are: "autopi", "macaron", "smartcar", "tesla" Source *string `json:"source,omitempty"` }
SignalFilter holds the filter parameters for the signal querys.
type SignalFloat ¶
type SignalString ¶
type Signals ¶ added in v0.0.4
type Signals struct {
SigArgs SignalArgs
}
Signals is the collection of signals. This struct is used to force the generation of the SignalCollection, and SignalAggregations resolver. As well as carrying the arguments from the parent query.
type StringAggregation ¶
type StringAggregation struct { // Aggregation type. Type StringAggregationType `json:"type"` // interval is a time span that used for aggregatting the data with. // A duration string is a sequence of decimal numbers, each with optional fraction and a unit suffix, // such as "300ms", "-1.5h" or "2h45m". Valid time units are "ms", "s", "m", "h" Interval string `json:"interval"` }
type StringAggregationType ¶
type StringAggregationType string
const ( // Randomly select a value from the group. StringAggregationTypeRand StringAggregationType = "RAND" // Select the most frequently occurring value in the group. StringAggregationTypeTop StringAggregationType = "TOP" // Return a list of unique values in the group. StringAggregationTypeUnique StringAggregationType = "UNIQUE" )
func (StringAggregationType) IsValid ¶
func (e StringAggregationType) IsValid() bool
func (StringAggregationType) MarshalGQL ¶
func (e StringAggregationType) MarshalGQL(w io.Writer)
func (StringAggregationType) String ¶
func (e StringAggregationType) String() string
func (*StringAggregationType) UnmarshalGQL ¶
func (e *StringAggregationType) UnmarshalGQL(v interface{}) error
type StringSignalArgs ¶ added in v0.0.4
type StringSignalArgs struct { Name string Agg StringAggregation SignalArgs }
StringSignalArgs is the arguments for querying a string signals.
Click to show internal directories.
Click to hide internal directories.