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 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)
Click to show internal directories.
Click to hide internal directories.