Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SortMap = map[Sort]bool{ SortNone: true, SortAlphabeticalAsc: true, SortAlphabeticalDesc: true, SortNumericalAsc: true, SortNumericalDesc: true, SortAlphabeticalCaseInsensitiveAsc: true, SortAlphabeticalCaseInsensitiveDesc: true, }
DEPRECATED: this is replaced by the struct github.com/perses/spec/go/dashboard/variable.SortMap
Functions ¶
This section is empty.
Types ¶
type DefaultValue ¶
DEPRECATED: this is replaced by the struct github.com/perses/spec/go/dashboard/variable.DefaultValue
func (*DefaultValue) MarshalJSON ¶
func (v *DefaultValue) MarshalJSON() ([]byte, error)
func (*DefaultValue) MarshalYAML ¶
func (v *DefaultValue) MarshalYAML() (any, error)
func (*DefaultValue) UnmarshalJSON ¶
func (v *DefaultValue) UnmarshalJSON(data []byte) error
func (*DefaultValue) UnmarshalYAML ¶
func (v *DefaultValue) UnmarshalYAML(unmarshal func(any) error) error
type Display ¶
type Display struct {
Name string `json:"name,omitempty" yaml:"name,omitempty"`
Description string `json:"description,omitempty" yaml:"description,omitempty"`
Hidden bool `json:"hidden" yaml:"hidden"`
}
Display DEPRECATED: this is replaced by the struct github.com/perses/spec/go/dashboard/variable.Display
type Kind ¶
type Kind string
Kind DEPRECATED: this is replaced by the struct github.com/perses/spec/go/dashboard/variable.Kind
func (*Kind) UnmarshalJSON ¶
type ListSpec ¶
type ListSpec struct {
Display *Display `json:"display,omitempty" yaml:"display,omitempty"`
// Value from the list to be selected by default.
DefaultValue *DefaultValue `json:"defaultValue,omitempty" yaml:"defaultValue,omitempty"`
// Whether or not to append the "All" value that allows selecting all available values at once.
AllowAllValue bool `json:"allowAllValue" yaml:"allowAllValue"`
// Whether or not to allow multi-selection of values.
AllowMultiple bool `json:"allowMultiple" yaml:"allowMultiple"`
// CustomAllValue is a custom value that will be used if AllowAllValue is true and if then `all` is selected
CustomAllValue string `json:"customAllValue,omitempty" yaml:"customAllValue,omitempty"`
// CapturingRegexp is the regexp used to catch and filter the result of the query.
// If empty, then nothing is filtered. That's the equivalent of setting CapturingRegexp with (.*)
CapturingRegexp string `json:"capturingRegexp,omitempty" yaml:"capturingRegexp,omitempty"`
// Sort method to apply when rendering the list of values
Sort *Sort `json:"sort,omitempty" yaml:"sort,omitempty"`
Plugin common.Plugin `json:"plugin" yaml:"plugin"`
}
DEPRECATED: this is replaced by the struct github.com/perses/spec/go/dashboard/variable.ListSpec
type Sort ¶ added in v0.42.0
type Sort string
DEPRECATED: this is replaced by the struct github.com/perses/spec/go/dashboard/variable.Sort
const ( SortNone Sort = "none" SortAlphabeticalAsc Sort = "alphabetical-asc" SortAlphabeticalDesc Sort = "alphabetical-desc" SortNumericalAsc Sort = "numerical-asc" SortNumericalDesc Sort = "numerical-desc" SortAlphabeticalCaseInsensitiveAsc Sort = "alphabetical-ci-asc" SortAlphabeticalCaseInsensitiveDesc Sort = "alphabetical-ci-desc" )
func (*Sort) UnmarshalJSON ¶ added in v0.42.0
Click to show internal directories.
Click to hide internal directories.