model

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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 Privilege

type Privilege string
const (
	PrivilegeVehicleNonLocationData Privilege = "VehicleNonLocationData"
	PrivilegeVehicleCommands        Privilege = "VehicleCommands"
	PrivilegeVehicleCurrentLocation Privilege = "VehicleCurrentLocation"
	PrivilegeVehicleAllTimeLocation Privilege = "VehicleAllTimeLocation"
	PrivilegeVehicleVinCredential   Privilege = "VehicleVinCredential"
)

func (Privilege) IsValid

func (e Privilege) IsValid() bool

func (Privilege) MarshalGQL

func (e Privilege) MarshalGQL(w io.Writer)

func (Privilege) String

func (e Privilege) String() string

func (*Privilege) UnmarshalGQL

func (e *Privilege) UnmarshalGQL(v interface{}) error

type Query

type Query struct {
}

The root query type for the GraphQL schema.

type SignalFloat

type SignalFloat struct {
	// timestamp of when this data was colllected
	Timestamp *time.Time `json:"timestamp,omitempty"`
	// value of the signal
	Value *float64 `json:"value,omitempty"`
}

type SignalString

type SignalString struct {
	// timestamp of when this data was colllected
	Timestamp *time.Time `json:"timestamp,omitempty"`
	// value of the signal
	Value *string `json:"value,omitempty"`
}

type SignalsWithID

type SignalsWithID struct {
	TokenID uint32 `json:"tokenID"`
}

SignalWithID is the collection of signals. This struct is used to force the generation of the SignalCollection, and SignalAggregations resolver.

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", "d", "w", "y".
	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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL