logtail

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Batch

type Batch struct {
	ID   string `json:"batch_id"`
	Logs []Log  `json:"logs"`
}

Batch encompasses a batch ID and the logs for this batch.

type Log

type Log struct {
	// SequenceNum is the message sequence number used to reorder
	// messages.
	SequenceNum int `json:"sequence_number"`
	// RequestTime is the time in microseconds when the request
	// was received.
	RequestStart int64 `json:"request_start_us"`
	// Stream is the C@E stream, either stdout or stderr.
	Stream string `json:"stream"`
	// RequestID is a UUID representing individual requests to the
	// particular Wasm service.
	RequestID string `json:"id"`
	// Message is the actual message body the user wants printed.
	Message string `json:"message"`
}

Log defines the message envelope that compute@edge (C@E) wraps the user messages in.

func (*Log) RequestStartFromRaw

func (l *Log) RequestStartFromRaw() time.Time

RequestStartFromRaw return a time.Time object representing the RequestStart data.

func (*Log) String

func (l *Log) String() string

String is used to print a log for the tail output.

type RootCommand

type RootCommand struct {
	cmd.Base

	Input fastly.CreateManagedLoggingInput
	// contains filtered or unexported fields
}

RootCommand is the parent command for all subcommands in this package. It should be installed under the primary root command.

func NewRootCommand

func NewRootCommand(parent cmd.Registerer, globals *config.Data, data manifest.Data) *RootCommand

NewRootCommand returns a new command registered in the parent.

func (*RootCommand) Exec

func (c *RootCommand) Exec(in io.Reader, out io.Writer) error

Exec implements the command interface.

Jump to

Keyboard shortcuts

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