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 ¶
NewComponent OpenSearch-Dashboards component function
Types ¶
type Attributes ¶ added in v1.7.0
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.
Click to show internal directories.
Click to hide internal directories.