completedaction

package
v0.0.0-...-f21c51b Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 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 Converter

type Converter interface {
	FlattenCompletedAction(ctx context.Context, completedAction *cal_proto.CompletedAction) (map[string]interface{}, error)
}

Converter converts a CompletedAction into a format that is suitable for Elasticsearch.

func NewConverter

func NewConverter(
	contentAddressableStorage blobstore.BlobAccess,
	maximumMessageSizeBytes int,
) Converter

NewConverter creates a new Converter.

type Ingester

type Ingester struct {
	// contains filtered or unexported fields
}

The Ingester can be used to receive CompletedActions and push them into some database. This allows for realtime or post-build analysis in a remote service. This is particularly useful for understanding how build actions change over time by inspecting the aggregated CompletedAction metadata.

func NewIngester

func NewIngester(
	uploader elasticsearch.Uploader,
	converter Converter,
) *Ingester

NewIngester creates a new Ingester that uploads CompletedActions to Elasticsearch.

func (*Ingester) LogCompletedActions

LogCompletedActions is part of the API of the CompletedActionLogger service.

Jump to

Keyboard shortcuts

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