opensearchdashboards

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: UPL-1.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VZSystemIndexPattern = "verrazzano-system"
	VZAppIndexPattern    = "verrazzano-application*"
	IndexPattern         = "index-pattern"

	// TimeStamp used to add timestamp as TimeFieldName in the index pattern
	TimeStampField = "@timestamp"
)

VZSystemIndexPattern for Verrazzano System default index pattern

View Source
const (
	// ComponentName is the name of the component
	ComponentName = "opensearch-dashboards"

	// ComponentNamespace is the namespace of the component
	ComponentNamespace = constants.VerrazzanoSystemNamespace
)
View Source
const ComponentJSONName = "opensearchDashboards"

ComponentJSONName is the JSON name of the OpenSearch-Dashboards component in CRD

Variables

This section is empty.

Functions

func NewComponent

func NewComponent() spi.Component

NewComponent OpenSearch-Dashboards component function

Types

type Attributes added in v1.7.0

type Attributes struct {
	Title         string `json:"title"`
	TimeFieldName string `json:"timeFieldName,omitempty"`
}

type IndexPatterns added in v1.7.0

type IndexPatterns struct {
	Total        int           `json:"total"`
	Page         int           `json:"page"`
	SavedObjects []SavedObject `json:"saved_objects,omitempty"`
}

type OSDashboardsClient added in v1.7.0

type OSDashboardsClient struct {
	DoHTTP func(request *http.Request) (*http.Response, error)
	// contains filtered or unexported fields
}

func NewOSDashboardsClient added in v1.7.0

func NewOSDashboardsClient(pas string) *OSDashboardsClient

func (*OSDashboardsClient) CreateDefaultIndexPatterns added in v1.7.0

func (od *OSDashboardsClient) CreateDefaultIndexPatterns(log vzlog.VerrazzanoLogger, openSearchDashboardsEndpoint string) error

CreateDefaultIndexPatterns creates the defaultIndexPatterns in the OpenSearchDashboards if not existed

type SavedObject added in v1.7.0

type SavedObject struct {
	ID         string `json:"id"`
	Attributes `json:"attributes"`
}

type SavedObjectType added in v1.7.0

type SavedObjectType struct {
	Type       string `json:"type"`
	Attributes `json:"attributes"`
}

SavedObjectType specifies the OpenSearch SavedObject including index-patterns.

Jump to

Keyboard shortcuts

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