metadata

package
v0.0.0-...-0c83327 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package metadata holds metadata related files

Package metadata holds metadata related files

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToProto

func ToProto(meta *Metadata) *adproto.Metadata

ToProto encodes a Metadata structure

Types

type Metadata

type Metadata struct {
	AgentVersion      string `json:"agent_version"`
	AgentCommit       string `json:"agent_commit"`
	KernelVersion     string `json:"kernel_version"`
	LinuxDistribution string `json:"linux_distribution"`
	Arch              string `json:"arch"`

	Name              string                     `json:"name"`
	ProtobufVersion   string                     `json:"protobuf_version"`
	DifferentiateArgs bool                       `json:"differentiate_args"`
	ContainerID       containerutils.ContainerID `json:"-"`
	CGroupContext     model.CGroupContext        `json:"-"`
	Start             time.Time                  `json:"start"`
	End               time.Time                  `json:"end"`
	Size              uint64                     `json:"activity_dump_size,omitempty"`
	Serialization     string                     `json:"serialization,omitempty"`
}

Metadata is used to provide context about the activity dump or the profile

func ProtoMetadataToMetadata

func ProtoMetadataToMetadata(meta *adproto.Metadata) Metadata

ProtoMetadataToMetadata decodes a Metadata structure

Jump to

Keyboard shortcuts

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