Versions in this module Expand all Collapse all v0 v0.179.0 Sep 14, 2023 Changes in this version + const ExplicitNullValue + const TimeSeriesTimeFieldName + const TimeSeriesValueFieldName + const VisTypeFlameGraph + const VisTypeGraph + const VisTypeLogs + const VisTypeNodeGraph + const VisTypeTable + const VisTypeTrace + func ArrowBufferToJSON(b []byte, include FrameInclude) ([]byte, error) + func ArrowToJSON(record array.Record, include FrameInclude) ([]byte, error) + func FrameTestCompareOptions() []cmp.Option + func FrameToJSON(frame *Frame, include FrameInclude) ([]byte, error) + func GetMissing(fillMissing *FillMissing, field *Field, previousRowIdx int) (interface{}, error) + func SortWideFrameFields(frame *Frame, keys ...string) error + func ValidFieldType(t interface{}) bool + type ConfFloat64 float64 + func (sf *ConfFloat64) MarshalJSON() ([]byte, error) + func (sf *ConfFloat64) UnmarshalJSON(data []byte) error + type Converter func(v interface{}) (interface{}, error) + type DataLink struct + Internal *InternalDataLink + TargetBlank bool + Title string + URL string + type DataTopic string + const DataTopicAnnotations + type EnumFieldConfig struct + Color []string + Description []string + Icon []string + Text []string + type EnumItemIndex uint16 + type ExplorePanelsState any + type Field struct + Config *FieldConfig + Labels Labels + Name string + func NewField(name string, labels Labels, values interface{}) *Field + func NewFieldFromFieldType(p FieldType, n int) *Field + func (f *Field) Append(e interface{}) + func (f *Field) At(idx int) interface{} + func (f *Field) ConcreteAt(idx int) (val interface{}, ok bool) + func (f *Field) CopyAt(idx int) interface{} + func (f *Field) Delete(idx int) + func (f *Field) Extend(i int) + func (f *Field) FloatAt(idx int) (float64, error) + func (f *Field) Insert(idx int, val interface{}) + func (f *Field) Len() int + func (f *Field) Nullable() bool + func (f *Field) NullableFloatAt(idx int) (*float64, error) + func (f *Field) PointerAt(idx int) interface{} + func (f *Field) Set(idx int, val interface{}) + func (f *Field) SetConcrete(idx int, val interface{}) + func (f *Field) SetConfig(conf *FieldConfig) *Field + func (f *Field) Type() FieldType + type FieldConfig struct + Color map[string]interface{} + Custom map[string]interface{} + Decimals *uint16 + Description string + DisplayName string + DisplayNameFromDS string + Filterable *bool + Interval float64 + Links []DataLink + Mappings ValueMappings + Max *ConfFloat64 + Min *ConfFloat64 + NoValue string + Path string + Thresholds *ThresholdsConfig + TypeConfig *FieldTypeConfig + Unit string + Writeable *bool + func (fc *FieldConfig) SetDecimals(v uint16) *FieldConfig + func (fc *FieldConfig) SetFilterable(b bool) *FieldConfig + func (fc *FieldConfig) SetMax(v float64) *FieldConfig + func (fc *FieldConfig) SetMin(v float64) *FieldConfig + type FieldConverter struct + Converter Converter + OutputFieldType FieldType + type FieldType int + const FieldTypeBool + const FieldTypeEnum + const FieldTypeFloat32 + const FieldTypeFloat64 + const FieldTypeInt16 + const FieldTypeInt32 + const FieldTypeInt64 + const FieldTypeInt8 + const FieldTypeJSON + const FieldTypeNullableBool + const FieldTypeNullableEnum + const FieldTypeNullableFloat32 + const FieldTypeNullableFloat64 + const FieldTypeNullableInt16 + const FieldTypeNullableInt32 + const FieldTypeNullableInt64 + const FieldTypeNullableInt8 + const FieldTypeNullableJSON + const FieldTypeNullableString + const FieldTypeNullableTime + const FieldTypeNullableUint16 + const FieldTypeNullableUint32 + const FieldTypeNullableUint64 + const FieldTypeNullableUint8 + const FieldTypeString + const FieldTypeTime + const FieldTypeUint16 + const FieldTypeUint32 + const FieldTypeUint64 + const FieldTypeUint8 + const FieldTypeUnknown + func FieldTypeFor(item interface{}) FieldType + func FieldTypeFromItemTypeString(s string) (FieldType, bool) + func NumericFieldTypes() []FieldType + func (p *FieldType) UnmarshalJSON(b []byte) error + func (p FieldType) ItemTypeString() string + func (p FieldType) JSON() bool + func (p FieldType) MarshalJSON() ([]byte, error) + func (p FieldType) NonNullableType() FieldType + func (p FieldType) Nullable() bool + func (p FieldType) NullableType() FieldType + func (p FieldType) Numeric() bool + func (p FieldType) String() string + func (p FieldType) Time() bool + type FieldTypeConfig struct + Enum *EnumFieldConfig + type Fields []*Field + type FillMissing struct + Mode FillMode + Value float64 + type FillMode int + const FillModeNull + const FillModePrevious + const FillModeValue + type Fingerprint uint64 + func (f Fingerprint) String() string + type Frame struct + Fields []*Field + Meta *FrameMeta + Name string + RefID string + func FromArrowRecord(record array.Record) (*Frame, error) + func LongToWide(longFrame *Frame, fillMissing *FillMissing) (*Frame, error) + func NewFrame(name string, fields ...*Field) *Frame + func NewFrameOfFieldTypes(name string, fieldLen int, fTypes ...FieldType) *Frame + func UnmarshalArrowFrame(b []byte) (*Frame, error) + func WideToLong(wideFrame *Frame) (*Frame, error) + func (f *Frame) AppendNotices(notices ...Notice) + func (f *Frame) AppendRow(vals ...interface{}) + func (f *Frame) At(fieldIdx int, rowIdx int) interface{} + func (f *Frame) ConcreteAt(fieldIdx int, rowIdx int) (val interface{}, ok bool) + func (f *Frame) CopyAt(fieldIdx int, rowIdx int) interface{} + func (f *Frame) DeleteRow(rowIdx int) + func (f *Frame) EmptyCopy() *Frame + func (f *Frame) Extend(i int) + func (f *Frame) FieldByName(fieldName string) (*Field, int) + func (f *Frame) FilterRowsByField(fieldIdx int, filter func(i interface{}) (bool, error)) (*Frame, error) + func (f *Frame) FloatAt(fieldIdx int, rowIdx int) (float64, error) + func (f *Frame) InsertRow(rowIdx int, vals ...interface{}) + func (f *Frame) MarshalArrow() ([]byte, error) + func (f *Frame) MarshalJSON() ([]byte, error) + func (f *Frame) RowCopy(rowIdx int) []interface{} + func (f *Frame) RowLen() (int, error) + func (f *Frame) Rows() int + func (f *Frame) Set(fieldIdx int, rowIdx int, val interface{}) + func (f *Frame) SetConcrete(fieldIdx int, rowIdx int, val interface{}) + func (f *Frame) SetFieldNames(names ...string) error + func (f *Frame) SetMeta(m *FrameMeta) *Frame + func (f *Frame) SetRow(rowIdx int, vals ...interface{}) + func (f *Frame) StringTable(maxFields, maxRows int) (string, error) + func (f *Frame) TimeSeriesSchema() (tsSchema TimeSeriesSchema) + func (f *Frame) TypeIndices(fTypes ...FieldType) []int + func (f *Frame) TypeInfo(_ string) (FrameType, FrameTypeVersion) + func (f *Frame) UnmarshalJSON(b []byte) error + type FrameInclude int + const IncludeAll + const IncludeDataOnly + const IncludeSchemaOnly + type FrameInputConverter struct + Frame *Frame + func NewFrameInputConverter(fieldConvs []FieldConverter, rowLen int) (*FrameInputConverter, error) + func (fic *FrameInputConverter) Set(fieldIdx, rowIdx int, val interface{}) error + type FrameJSONCache struct + func FrameToJSONCache(frame *Frame) (FrameJSONCache, error) + func (f *FrameJSONCache) Bytes(args FrameInclude) []byte + func (f *FrameJSONCache) MarshalJSON() ([]byte, error) + func (f *FrameJSONCache) SameSchema(dst *FrameJSONCache) bool + type FrameMeta struct + Channel string + Custom interface{} + DataTopic DataTopic + ExecutedQueryString string + Notices []Notice + Path string + PathSeparator string + PreferredVisualization VisType + PreferredVisualizationPluginID string + Stats []QueryStat + Type FrameType + TypeVersion FrameTypeVersion + func FrameMetaFromJSON(jsonStr string) (*FrameMeta, error) + type FrameType string + const FrameTypeDirectoryListing + const FrameTypeLogLines + const FrameTypeNumericLong + const FrameTypeNumericMulti + const FrameTypeNumericWide + const FrameTypeTable + const FrameTypeTimeSeriesLong + const FrameTypeTimeSeriesMany + const FrameTypeTimeSeriesMulti + const FrameTypeTimeSeriesWide + const FrameTypeUnknown + func FrameTypes() []FrameType + func (p FrameType) IsKnownType() bool + func (p FrameType) IsLogs() bool + func (p FrameType) IsNumeric() bool + func (p FrameType) IsTimeSeries() bool + func (p FrameType) Kind() FrameTypeKind + type FrameTypeKind string + const KindLogs + const KindNumeric + const KindTimeSeries + const KindUnknown + type FrameTypeVersion [2]uint + func ParseFrameTypeVersion(s string) (FrameTypeVersion, error) + func (sv FrameTypeVersion) Greater(osv FrameTypeVersion) bool + func (sv FrameTypeVersion) IsZero() bool + func (sv FrameTypeVersion) Less(osv FrameTypeVersion) bool + func (sv FrameTypeVersion) String() string + type Framer interface + Frames func() (Frames, error) + type Frames []*Frame + func UnmarshalArrowFrames(bFrames [][]byte) (Frames, error) + func (frames *Frames) MarshalJSON() ([]byte, error) + func (frames *Frames) UnmarshalJSON(b []byte) error + func (frames Frames) MarshalArrow() ([][]byte, error) + type InspectType int + const InspectTypeData + const InspectTypeError + const InspectTypeMeta + const InspectTypeNone + const InspectTypeStats + func (n InspectType) String() string + type InternalDataLink struct + DatasourceName string + DatasourceUID string + ExplorePanelsState *ExplorePanelsState + Query any + Range *TimeRange + Transformations *[]LinkTransformationConfig + type Labels map[string]string + func LabelsFromString(s string) (Labels, error) + func (l Labels) Contains(arg Labels) bool + func (l Labels) Copy() Labels + func (l Labels) Equals(arg Labels) bool + func (l Labels) Fingerprint() Fingerprint + func (l Labels) MarshalJSON() ([]byte, error) + func (l Labels) String() string + type LinkTransformationConfig struct + Expression string + Field string + MapValue string + Type SupportedTransformationTypes + type Notice struct + Inspect InspectType + Link string + Severity NoticeSeverity + Text string + type NoticeSeverity int + const NoticeSeverityError + const NoticeSeverityInfo + const NoticeSeverityWarning + func (n *NoticeSeverity) UnmarshalJSON(b []byte) error + func (n NoticeSeverity) MarshalJSON() ([]byte, error) + func (n NoticeSeverity) String() string + type QueryStat struct + Value float64 + type RangeValueMapper struct + From *ConfFloat64 + Result ValueMappingResult + To *ConfFloat64 + type SpecialValueMapper struct + Match SpecialValueMatch + Result ValueMappingResult + type SpecialValueMatch string + const SpecialValueEmpty + const SpecialValueFalse + const SpecialValueNaN + const SpecialValueNull + const SpecialValueNullAndNaN + const SpecialValueTrue + type SupportedTransformationTypes string + const Logfmt + const Regex + type Threshold struct + Color string + State string + Value ConfFloat64 + func NewThreshold(value float64, color, state string) Threshold + type ThresholdsConfig struct + Mode ThresholdsMode + Steps []Threshold + type ThresholdsMode string + const ThresholdsModeAbsolute + const ThresholdsModePercentage + type TimeRange struct + From time.Time + To time.Time + type TimeSeriesSchema struct + FactorIndices []int + TimeIndex int + TimeIsNullable bool + Type TimeSeriesType + ValueIndices []int + type TimeSeriesType int + const TimeSeriesTypeLong + const TimeSeriesTypeNot + const TimeSeriesTypeWide + func (t TimeSeriesType) String() string + type ValueMapper map[string]ValueMappingResult + type ValueMapping interface + type ValueMappingResult struct + Color string + Index int + Text string + type ValueMappings []ValueMapping + func (m *ValueMappings) UnmarshalJSON(b []byte) error + func (m ValueMappings) MarshalJSON() ([]byte, error) + type VisType string