quick_search

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2025 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(client *golangsdk.ServiceClient, groupId, streamId string, opts CreateOpts) (string, error)

func Delete

func Delete(client *golangsdk.ServiceClient, groupId, streamId string, opts DeleteOpts) (err error)

Types

type CreateOpts

type CreateOpts struct {
	// Quick search field. Enter the statement to be queried.
	Criteria string `json:"criteria" required:"true"`
	// Enterprise project ID.
	EpsId string `json:"eps_id,omitempty"`
	// Quick search name, which contains 1 to 64 characters,
	// including only letters, digits, underscores (_), hyphens (-), and periods (.).
	// Do not start with a period or underscore or end with a period.
	Name string `json:"name" required:"true"`
	// Search type, for example, raw logs.
	SearchType string `json:"search_type" required:"true"`
}

type DeleteOpts

type DeleteOpts struct {
	// Enterprise project ID.
	EpsId string `json:"eps_id,omitempty"`
	// Quick search ID.
	ID string `json:"id" required:"true"`
}

type ListOpts

type ListOpts struct {
	// Raw logs.
	SearchType string `q:"search_type"`
}

type SearchCriteria

type SearchCriteria struct {
	// Quick search of a field.
	Criteria string `json:"criteria"`
	// Quick search of a name.
	Name string `json:"name"`
	// Quick search ID.
	ID string `json:"id"`
	// Quick search type.
	SearchType string `json:"search_type"`
}

func ListCriterias

func ListCriterias(client *golangsdk.ServiceClient, groupId, streamId string, opts ListOpts) ([]SearchCriteria, error)

type SearchGroupCriteria

type SearchGroupCriteria struct {
	// Quick search of a field.
	Criterias []SearchCriteria `json:"criterias"`
	// Log stream ID.
	StreamId string `json:"log_stream_id"`
	// Log stream name.
	StreamName string `json:"log_stream_name"`
	// Quick search type.
	SearchType string `json:"search_type"`
}

func ListGroupCriterias

func ListGroupCriterias(client *golangsdk.ServiceClient, groupId string) ([]SearchGroupCriteria, error)

Jump to

Keyboard shortcuts

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