loggingsearch

package
v24.3.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2020 License: Apache-2.0, UPL-1.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FieldInfo

type FieldInfo struct {

	// Field name
	FieldName *string `mandatory:"true" json:"fieldName"`

	// Field type -
	// * `STRING`: A sequence of characters.
	// * `NUMBER`: Numeric type which can be integer or floating point.
	// * `BOOLEAN`: Either true or false.
	// * `ARRAY`: An ordered collection of values.
	FieldType FieldInfoFieldTypeEnum `mandatory:"true" json:"fieldType"`
}

FieldInfo Contains field schema information.

func (FieldInfo) String

func (m FieldInfo) String() string

type FieldInfoFieldTypeEnum

type FieldInfoFieldTypeEnum string

FieldInfoFieldTypeEnum Enum with underlying type: string

const (
	FieldInfoFieldTypeString  FieldInfoFieldTypeEnum = "STRING"
	FieldInfoFieldTypeNumber  FieldInfoFieldTypeEnum = "NUMBER"
	FieldInfoFieldTypeBoolean FieldInfoFieldTypeEnum = "BOOLEAN"
	FieldInfoFieldTypeArray   FieldInfoFieldTypeEnum = "ARRAY"
)

Set of constants representing the allowable values for FieldInfoFieldTypeEnum

func GetFieldInfoFieldTypeEnumValues

func GetFieldInfoFieldTypeEnumValues() []FieldInfoFieldTypeEnum

GetFieldInfoFieldTypeEnumValues Enumerates the set of values for FieldInfoFieldTypeEnum

type LogSearchClient

type LogSearchClient struct {
	common.BaseClient
	// contains filtered or unexported fields
}

LogSearchClient a client for LogSearch

func NewLogSearchClientWithConfigurationProvider

func NewLogSearchClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client LogSearchClient, err error)

NewLogSearchClientWithConfigurationProvider Creates a new default LogSearch client with the given configuration provider. the configuration provider will be used for the default signer as well as reading the region

func NewLogSearchClientWithOboToken

func NewLogSearchClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client LogSearchClient, err error)

NewLogSearchClientWithOboToken Creates a new default LogSearch client with the given configuration provider. The obotoken will be added to default headers and signed; the configuration provider will be used for the signer

as well as reading the region

func (*LogSearchClient) ConfigurationProvider

func (client *LogSearchClient) ConfigurationProvider() *common.ConfigurationProvider

ConfigurationProvider the ConfigurationProvider used in this client, or null if none set

func (LogSearchClient) SearchLogs

func (client LogSearchClient) SearchLogs(ctx context.Context, request SearchLogsRequest) (response SearchLogsResponse, err error)

SearchLogs Submit a query to search logs.

func (*LogSearchClient) SetRegion

func (client *LogSearchClient) SetRegion(region string)

SetRegion overrides the region of this client.

type SearchLogsDetails

type SearchLogsDetails struct {

	// Start filter log's date and time, in the format defined by RFC3339.
	TimeStart *common.SDKTime `mandatory:"true" json:"timeStart"`

	// End filter log's date and time, in the format defined by RFC3339.
	TimeEnd *common.SDKTime `mandatory:"true" json:"timeEnd"`

	// Query corresponding to the search operation. This query is parsed and validated before execution and
	// should follow the spec. For query language specification see:
	// https://docs.cloud.oracle.com/iaas/Content/Logging/Reference/query_language_specification.htm
	SearchQuery *string `mandatory:"true" json:"searchQuery"`

	// Whether to return field schema information for the log stream specified in searchQuery.
	IsReturnFieldInfo *bool `mandatory:"false" json:"isReturnFieldInfo"`
}

SearchLogsDetails Search request object.

func (SearchLogsDetails) String

func (m SearchLogsDetails) String() string

type SearchLogsRequest

type SearchLogsRequest struct {

	// Search request.
	SearchLogsDetails `contributesTo:"body"`

	// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about
	// a particular request, please provide the request ID.
	OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

	// The maximum number of items to return in a paginated "List" call. For information about pagination, see
	// List Pagination (https://docs.cloud.oracle.comAPI/Concepts/usingapi.htm#List_Pagination).
	Limit *int `mandatory:"false" contributesTo:"query" name:"limit"`

	// The value of the `opc-next-page` response header from the previous "List" call. For information about
	// pagination, see List Pagination (https://docs.cloud.oracle.comAPI/Concepts/usingapi.htm#List_Pagination).
	Page *string `mandatory:"false" contributesTo:"query" name:"page"`

	// Metadata about the request. This information will not be transmitted to the service, but
	// represents information that the SDK will consume to drive retry behavior.
	RequestMetadata common.RequestMetadata
}

SearchLogsRequest wrapper for the SearchLogs operation

func (SearchLogsRequest) HTTPRequest

func (request SearchLogsRequest) HTTPRequest(method, path string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (SearchLogsRequest) RetryPolicy

func (request SearchLogsRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (SearchLogsRequest) String

func (request SearchLogsRequest) String() string

type SearchLogsResponse

type SearchLogsResponse struct {

	// The underlying http response
	RawResponse *http.Response

	// A list of SearchResponse instances
	SearchResponse `presentIn:"body"`

	// For list pagination. When this header appears in the response, additional pages
	// of results remain. For important details about how pagination works, see
	// List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
	OpcNextPage *string `presentIn:"header" name:"opc-next-page"`

	// Unique Oracle-assigned identifier for the request. If you need to contact
	// Oracle about a particular request, please provide the request ID.
	OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}

SearchLogsResponse wrapper for the SearchLogs operation

func (SearchLogsResponse) HTTPResponse

func (response SearchLogsResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (SearchLogsResponse) String

func (response SearchLogsResponse) String() string

type SearchResponse

type SearchResponse struct {
	Summary *SearchResultSummary `mandatory:"true" json:"summary"`

	// List of search results
	Results []SearchResult `mandatory:"false" json:"results"`

	// List of log field schema information.
	Fields []FieldInfo `mandatory:"false" json:"fields"`
}

SearchResponse Search response object.

func (SearchResponse) String

func (m SearchResponse) String() string

type SearchResult

type SearchResult struct {

	// JSON blob containing the search entry with projected fields.
	Data *interface{} `mandatory:"true" json:"data"`
}

SearchResult A log search result entry

func (SearchResult) String

func (m SearchResult) String() string

type SearchResultSummary

type SearchResultSummary struct {

	// Total number of search results.
	ResultCount *int `mandatory:"false" json:"resultCount"`

	// Total number of field schema information.
	FieldCount *int `mandatory:"false" json:"fieldCount"`
}

SearchResultSummary Summary of results.

func (SearchResultSummary) String

func (m SearchResultSummary) String() string

Jump to

Keyboard shortcuts

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