entities

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunStatusToProto

func RunStatusToProto(status string) *protos.RunStatus

Types

type Dataset

type Dataset struct {
	Name       string
	Digest     string
	SourceType string
	Source     string
	Schema     string
	Profile    string
}

func NewDatasetFromProto

func NewDatasetFromProto(proto *protos.Dataset) *Dataset

func (*Dataset) ToProto

func (d *Dataset) ToProto() *protos.Dataset

type DatasetInput

type DatasetInput struct {
	Tags    []*InputTag
	Dataset *Dataset
}

func NewDatasetInputFromProto

func NewDatasetInputFromProto(proto *protos.DatasetInput) *DatasetInput

func (DatasetInput) ToProto

func (ds DatasetInput) ToProto() *protos.DatasetInput

type Experiment

type Experiment struct {
	Name             string
	ExperimentID     string
	ArtifactLocation string
	LifecycleStage   string
	LastUpdateTime   int64
	CreationTime     int64
	Tags             []*ExperimentTag
}

func (Experiment) ToProto

func (e Experiment) ToProto() *protos.Experiment

type ExperimentTag

type ExperimentTag struct {
	Key   string
	Value string
}

func NewExperimentTagFromProto

func NewExperimentTagFromProto(proto *protos.ExperimentTag) *ExperimentTag

func (*ExperimentTag) ToProto

func (et *ExperimentTag) ToProto() *protos.ExperimentTag

type InputTag

type InputTag struct {
	Key   string
	Value string
}

func NewInputTagFromProto

func NewInputTagFromProto(proto *protos.InputTag) *InputTag

func (InputTag) ToProto

func (i InputTag) ToProto() *protos.InputTag

type Metric

type Metric struct {
	Key       string
	Value     float64
	Timestamp int64
	Step      int64
	IsNaN     bool
}

func MetricFromLogMetricProtoInput

func MetricFromLogMetricProtoInput(input *protos.LogMetric) *Metric

func MetricFromProto

func MetricFromProto(proto *protos.Metric) *Metric

func (Metric) ToProto

func (m Metric) ToProto() *protos.Metric

type Param

type Param struct {
	Key   string
	Value *string
}

func ParamFromLogMetricProtoInput

func ParamFromLogMetricProtoInput(input *protos.LogParam) *Param

func ParamFromProto

func ParamFromProto(proto *protos.Param) *Param

func (Param) ToProto

func (p Param) ToProto() *protos.Param

type Run

type Run struct {
	Info   *RunInfo
	Data   *RunData
	Inputs *RunInputs
}

func (Run) ToProto

func (r Run) ToProto() *protos.Run

type RunData

type RunData struct {
	Tags    []*RunTag
	Params  []*Param
	Metrics []*Metric
}

type RunInfo

type RunInfo struct {
	RunID          string
	RunUUID        string
	RunName        string
	ExperimentID   int32
	UserID         string
	Status         string
	StartTime      int64
	EndTime        *int64
	ArtifactURI    string
	LifecycleStage string
}

func (RunInfo) ToProto

func (ri RunInfo) ToProto() *protos.RunInfo

type RunInputs

type RunInputs struct {
	DatasetInputs []*DatasetInput
}

type RunTag

type RunTag struct {
	Key   string
	Value string
}

func NewTagFromProto

func NewTagFromProto(proto *protos.RunTag) *RunTag

func (RunTag) ToProto

func (t RunTag) ToProto() *protos.RunTag

type TraceInfo

type TraceInfo struct {
	RequestID            string
	Status               string
	ExperimentID         string
	TimestampMS          int64
	ExecutionTimeMS      *int64
	Tags                 []*TraceTag
	TraceRequestMetadata []*TraceRequestMetadata
}

func (TraceInfo) ToProto

func (ti TraceInfo) ToProto() *protos.TraceInfo

type TraceRequestMetadata

type TraceRequestMetadata struct {
	Key       string
	Value     string
	RequestID string
}

func TraceRequestMetadataFromStartTraceProtoInput

func TraceRequestMetadataFromStartTraceProtoInput(
	protoMetadata []*protos.TraceRequestMetadata,
) []*TraceRequestMetadata

func (TraceRequestMetadata) ToProto

type TraceTag

type TraceTag struct {
	Key       string
	Value     string
	RequestID string
}

func TagsFromStartTraceProtoInput

func TagsFromStartTraceProtoInput(protoTags []*protos.TraceTag) []*TraceTag

func (TraceTag) ToProto

func (tt TraceTag) ToProto() *protos.TraceTag

Jump to

Keyboard shortcuts

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