client

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package client provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.4.1 DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetOwnerLogsStreams200Response

type GetOwnerLogsStreams200Response = OwnerLogStreamSetting

GetOwnerLogsStreams200Response Owner log stream settings

type GetResourceLogsStreams200Response

type GetResourceLogsStreams200Response = ResourceLogStreamSetting

GetResourceLogsStreams200Response Resource log stream overrides

type Log

type Log struct {
	// Id A unique ID of the log entry
	Id     string     `json:"id"`
	Labels []LogLabel `json:"labels"`

	// Message The message of the log entry
	Message string `json:"message"`

	// Timestamp The timestamp of the log entry
	Timestamp time.Time `json:"timestamp"`
}

Log A log entry with metadata

type LogDirection

type LogDirection string

LogDirection defines model for logDirection.

const (
	Backward LogDirection = "backward"
	Forward  LogDirection = "forward"
)

Defines values for LogDirection.

type LogDirectionParam

type LogDirectionParam = LogDirection

LogDirectionParam defines model for logDirectionParam.

type LogFilterHost

type LogFilterHost = []string

LogFilterHost defines model for logFilterHost.

type LogFilterInstance

type LogFilterInstance = []string

LogFilterInstance defines model for logFilterInstance.

type LogFilterLevel

type LogFilterLevel = []string

LogFilterLevel defines model for logFilterLevel.

type LogFilterMethod

type LogFilterMethod = []string

LogFilterMethod defines model for logFilterMethod.

type LogFilterPath

type LogFilterPath = []string

LogFilterPath defines model for logFilterPath.

type LogFilterResource

type LogFilterResource = []string

LogFilterResource defines model for logFilterResource.

type LogFilterStatusCode

type LogFilterStatusCode = []string

LogFilterStatusCode defines model for logFilterStatusCode.

type LogFilterText

type LogFilterText = []string

LogFilterText defines model for logFilterText.

type LogFilterType

type LogFilterType = []string

LogFilterType defines model for logFilterType.

type LogLabel

type LogLabel struct {
	Name LogLabelName `json:"name"`

	// Value The value of the log label
	Value string `json:"value"`
}

LogLabel A log label

type LogLabelName

type LogLabelName string

LogLabelName defines model for logLabelName.

const (
	LogLabelNameHost       LogLabelName = "host"
	LogLabelNameInstance   LogLabelName = "instance"
	LogLabelNameLevel      LogLabelName = "level"
	LogLabelNameMethod     LogLabelName = "method"
	LogLabelNamePath       LogLabelName = "path"
	LogLabelNameResource   LogLabelName = "resource"
	LogLabelNameStatusCode LogLabelName = "statusCode"
	LogLabelNameText       LogLabelName = "text"
	LogLabelNameType       LogLabelName = "type"
)

Defines values for LogLabelName.

type LogLabelParam

type LogLabelParam string

LogLabelParam defines model for logLabelParam.

const (
	LogLabelParamHost       LogLabelParam = "host"
	LogLabelParamInstance   LogLabelParam = "instance"
	LogLabelParamLevel      LogLabelParam = "level"
	LogLabelParamMethod     LogLabelParam = "method"
	LogLabelParamStatusCode LogLabelParam = "statusCode"
	LogLabelParamType       LogLabelParam = "type"
)

Defines values for LogLabelParam.

type LogStreamEndpoint

type LogStreamEndpoint = string

LogStreamEndpoint The endpoint to stream logs to.

type LogStreamIdFilter

type LogStreamIdFilter = []string

LogStreamIdFilter defines model for logStreamIdFilter.

type LogStreamOwnerUpdate

type LogStreamOwnerUpdate struct {
	// Endpoint The endpoint to stream logs to.
	Endpoint *LogStreamEndpoint `json:"endpoint,omitempty"`

	// Preview Whether to send logs or drop them.
	Preview LogStreamPreviewSetting `json:"preview"`

	// Token The optional token to authenticate the log stream.
	Token *LogStreamToken `json:"token,omitempty"`
}

LogStreamOwnerUpdate defines model for logStreamOwnerUpdate.

type LogStreamPreviewSetting

type LogStreamPreviewSetting string

LogStreamPreviewSetting Whether to send logs or drop them.

const (
	LogStreamPreviewSettingDrop LogStreamPreviewSetting = "drop"
	LogStreamPreviewSettingSend LogStreamPreviewSetting = "send"
)

Defines values for LogStreamPreviewSetting.

type LogStreamResourceUpdate

type LogStreamResourceUpdate struct {
	// Endpoint The endpoint to stream logs to.
	Endpoint *LogStreamEndpoint `json:"endpoint,omitempty"`

	// Setting Whether to send logs or drop them.
	Setting LogStreamSetting `json:"setting"`

	// Token The optional token to authenticate the log stream.
	Token *LogStreamToken `json:"token,omitempty"`
}

LogStreamResourceUpdate defines model for logStreamResourceUpdate.

type LogStreamSetting

type LogStreamSetting string

LogStreamSetting Whether to send logs or drop them.

const (
	LogStreamSettingDrop LogStreamSetting = "drop"
	LogStreamSettingSend LogStreamSetting = "send"
)

Defines values for LogStreamSetting.

type LogStreamSettingFilter

type LogStreamSettingFilter = []LogStreamSetting

LogStreamSettingFilter defines model for logStreamSettingFilter.

type LogStreamToken

type LogStreamToken = string

LogStreamToken The optional token to authenticate the log stream.

type OwnerLogStreamSetting

type OwnerLogStreamSetting struct {
	// Endpoint The endpoint to stream logs to.
	Endpoint *string `json:"endpoint,omitempty"`

	// OwnerId The ID of the owner.
	OwnerId *string `json:"ownerId,omitempty"`

	// Preview Whether to send logs or drop them.
	Preview *LogStreamPreviewSetting `json:"preview,omitempty"`
}

OwnerLogStreamSetting Owner log stream settings

type ResourceLogStreamSetting

type ResourceLogStreamSetting struct {
	// Endpoint The endpoint to stream logs to. Must be present if setting is send. Cannot be present if setting is drop.
	Endpoint *string `json:"endpoint,omitempty"`

	// ResourceId The ID of the resource.
	ResourceId *string `json:"resourceId,omitempty"`

	// Setting Whether to send logs or drop them.
	Setting *LogStreamSetting `json:"setting,omitempty"`
}

ResourceLogStreamSetting Resource log stream overrides

type ResourceLogsStreams200Response

type ResourceLogsStreams200Response = []ResourceLogStreamSetting

ResourceLogsStreams200Response defines model for ResourceLogsStreams200Response.

Jump to

Keyboard shortcuts

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