insight

package
v1.30.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2025 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dashboard

type Dashboard struct {
	ID             string      `json:"id,omitempty"      elastic_meta:"_id" elastic_mapping:"id: { type: keyword }"`
	Created        time.Time   `json:"created,omitempty" elastic_mapping:"created: { type: date }"`
	Updated        time.Time   `json:"updated,omitempty" elastic_mapping:"updated: { type: date }"`
	ClusterId      string      `json:"cluster_id" elastic_mapping:"cluster_id: { type: keyword }"`
	IndexPattern   string      `json:"index_pattern" elastic_mapping:"index_pattern: { type: keyword }"`
	TimeField      string      `json:"time_field,omitempty" elastic_mapping:"time_field: { type: keyword }"`
	Filter         interface{} `json:"filter,omitempty" elastic_mapping:"filter: { type: object, enabled:false }"`
	BucketSize     string      `json:"bucket_size" elastic_mapping:"bucket_size: { type: keyword }"`
	Title          string      `json:"title"  elastic_mapping:"title: { type: keyword }"`
	Description    string      `json:"description" elastic_mapping:"description: { type: keyword }"`
	Visualizations interface{} `json:"visualizations"  elastic_mapping:"visualizations: { type: object, enabled:false }"`
	Tags           []string    `json:"tags,omitempty" elastic_mapping:"tags: { type: keyword }"`
	User           string      `json:"user" elastic_mapping:"user: { type: keyword }"`
	Query          interface{} `json:"query,omitempty" elastic_mapping:"query: { type: object, enabled:false }"`
	TimeFilter     interface{} `json:"time_filter,omitempty" elastic_mapping:"time_filter: { type: object, enabled:false }"`
}

type Position

type Position struct {
	X int `json:"x"`
	Y int `json:"y"`
	H int `json:"h"`
	W int `json:"w"`
}

type SeriesItem

type SeriesItem struct {
	Type    string                 `json:"type"`
	Options map[string]interface{} `json:"options"`
	Metric  insight.Metric         `json:"metric"`
}

type Visualization

type Visualization struct {
	ID           string       `json:"id,omitempty"      elastic_meta:"_id" elastic_mapping:"id: { type: keyword }"`
	Created      *time.Time   `json:"created,omitempty" elastic_mapping:"created: { type: date }"`
	Updated      *time.Time   `json:"updated,omitempty" elastic_mapping:"updated: { type: date }"`
	Title        string       `json:"title,omitempty" elastic_mapping:"title: { type: keyword }"`
	IndexPattern string       `json:"index_pattern,omitempty" elastic_mapping:"index_pattern: { type: keyword }"`
	ClusterId    string       `json:"cluster_id,omitempty" elastic_mapping:"cluster_id: { type: keyword }"`
	Series       []SeriesItem `json:"series"  elastic_mapping:"series: { type: object,enabled:false }"`
	Position     *Position    `json:"position,omitempty" elastic_mapping:"position: { type: object,enabled:false }"`
	Description  string       `json:"description,omitempty" elastic_mapping:"description: { type: keyword }"`
}

type Widget

type Widget struct {
	orm.ORMObjectBase
	Title  string      `json:"title" elastic_mapping:"title: { type: text }"`
	Config interface{} `json:"config" elastic_mapping:"config: { type: object,enabled:false }"`
}

Jump to

Keyboard shortcuts

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