Documentation
¶
Index ¶
Constants ¶
View Source
const DummyValueA = "dummyA"
Dummy value makes sure the enum extraction logic is valid
View Source
const DummyValueB = "dummyB"
Dummy value makes sure the enum extraction logic is valid
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MathQuery ¶
type MathQuery struct {
// General math expression
Expression string `json:"expression" jsonschema:"minLength=1,example=$A + 1,example=$A/$B"`
}
type ReduceMode ¶
type ReduceMode string
Non-Number behavior mode +enum
const ( // Drop non-numbers ReduceModeDrop ReduceMode = "dropNN" // Replace non-numbers ReduceModeReplace ReduceMode = "replaceNN" )
type ReduceQuery ¶
type ReduceQuery struct {
// Reference to other query results
Expression string `json:"expression"`
// The reducer
Reducer ReducerID `json:"reducer"`
// Reducer Options
Settings ReduceSettings `json:"settings"`
}
type ReduceSettings ¶
type ReduceSettings struct {
// Non-number reduce behavior
Mode ReduceMode `json:"mode"`
// Only valid when mode is replace
ReplaceWithValue *float64 `json:"replaceWithValue,omitempty"`
}
type ResampleQuery ¶
type ResampleQuery struct {
// The math expression
Expression string `json:"expression"`
// A time duration string
Window string `json:"window"`
// The reducer
Downsampler string `json:"downsampler"`
// The reducer
Upsampler string `json:"upsampler"`
LoadedDimensions *data.Frame `json:"loadedDimensions"`
}
QueryType = resample
Click to show internal directories.
Click to hide internal directories.