Documentation
¶
Index ¶
- Constants
- type AlembicVersion
- type Dataset
- type Experiment
- type ExperimentTag
- type Input
- type InputTag
- type LatestMetric
- type LifecycleStage
- type LoggedModelMetric
- type Metric
- type Output
- type Param
- type Run
- type RunStatus
- type SourceType
- type Tag
- type TraceInfo
- type TraceRequestMetadata
- type TraceTag
Constants ¶
View Source
const ( SourceTypeDataset = "DATASET" DestinationTypeRun = "RUN" DestinationTypeModelInput = "MODEL_INPUT" DestinationTypeModelOutput = "MODEL_OUTPUT" )
View Source
const ( TraceInfoStatusUnspecified = "TRACE_STATUS_UNSPECIFIED" TraceInfoStatusOk = "OK" TraceInfoStatusError = "ERROR" TraceInfoStatusInProgress = "IN_PROGRESS" )
View Source
const TableNameExperimentTag = "experiment_tags"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlembicVersion ¶
type AlembicVersion struct {
VersionNum *string `gorm:"column:version_num;primaryKey"`
}
AlembicVersion mapped from table <alembic_version>.
func (*AlembicVersion) TableName ¶
func (*AlembicVersion) TableName() string
TableName AlembicVersion's table name.
type Dataset ¶
type Dataset struct { ID string `gorm:"column:dataset_uuid;not null"` ExperimentID int32 `gorm:"column:experiment_id;primaryKey"` Name string `gorm:"column:name;primaryKey"` Digest string `gorm:"column:digest;primaryKey"` SourceType string `gorm:"column:dataset_source_type;not null"` Source string `gorm:"column:dataset_source;not null"` Schema string `gorm:"column:dataset_schema"` Profile string `gorm:"column:dataset_profile"` }
Dataset mapped from table <datasets>.
type Experiment ¶
type Experiment struct { ID int32 `gorm:"column:experiment_id;primaryKey;autoIncrement:true"` Name string `gorm:"column:name;not null"` ArtifactLocation string `gorm:"column:artifact_location"` LifecycleStage LifecycleStage `gorm:"column:lifecycle_stage"` CreationTime int64 `gorm:"column:creation_time"` LastUpdateTime int64 `gorm:"column:last_update_time"` Tags []ExperimentTag Runs []Run }
Experiment mapped from table <experiments>.
func (Experiment) ToEntity ¶
func (e Experiment) ToEntity() *entities.Experiment
type ExperimentTag ¶
type ExperimentTag struct { Key string `gorm:"column:key;primaryKey"` Value string `gorm:"column:value"` ExperimentID int32 `gorm:"column:experiment_id;primaryKey"` }
ExperimentTag mapped from table <experiment_tags>.
type Input ¶
type Input struct { ID string `gorm:"column:input_uuid;not null"` SourceType string `gorm:"column:source_type;primaryKey"` SourceID string `gorm:"column:source_id;primaryKey"` DestinationType string `gorm:"column:destination_type;primaryKey"` DestinationID string `gorm:"column:destination_id;primaryKey"` Tags []InputTag `gorm:"foreignKey:InputID;references:ID"` Dataset Dataset `gorm:"foreignKey:ID;references:SourceID"` }
Input mapped from table <inputs>.
func NewInputFromEntity ¶
func (Input) DatasetToEntity ¶ added in v0.2.2
func (i Input) DatasetToEntity() *entities.DatasetInput
func (Input) ModelInputToEntity ¶ added in v0.2.2
func (i Input) ModelInputToEntity() *entities.ModelInput
type InputTag ¶
type InputTag struct { Key string `gorm:"column:name;primaryKey"` Value string `gorm:"column:value;not null"` InputID string `gorm:"column:input_uuid;primaryKey"` }
InputTag mapped from table <input_tags>.
func NewInputTagFromEntity ¶
type LatestMetric ¶
type LatestMetric struct { Key string `gorm:"column:key;primaryKey"` Value float64 `gorm:"column:value;not null"` Timestamp int64 `gorm:"column:timestamp"` Step int64 `gorm:"column:step;not null"` IsNaN bool `gorm:"column:is_nan;not null"` RunID string `gorm:"column:run_uuid;primaryKey"` }
LatestMetric mapped from table <latest_metrics>.
func (LatestMetric) ToEntity ¶
func (lm LatestMetric) ToEntity() *entities.Metric
type LifecycleStage ¶
type LifecycleStage string
const ( LifecycleStageActive LifecycleStage = "active" LifecycleStageDeleted LifecycleStage = "deleted" )
func (LifecycleStage) String ¶
func (s LifecycleStage) String() string
type LoggedModelMetric ¶ added in v0.2.2
type LoggedModelMetric struct { ModelID string `gorm:"column:model_id"` MetricName string `gorm:"column:metric_name"` MetricTimestampMs int64 `gorm:"column:metric_timestamp_ms"` MetricStep int64 `gorm:"column:metric_step"` MetricValue float64 `gorm:"column:metric_value"` ExperimentID int `gorm:"column:experiment_id"` RunID string `gorm:"column:run_id"` DatasetUUID string `gorm:"column:dataset_uuid"` DatasetName string `gorm:"column:dataset_name"` DatasetDigest string `gorm:"column:dataset_digest"` }
func NewLoggedMetricFromEntity ¶ added in v0.2.2
func NewLoggedMetricFromEntity(runID string, metric *entities.Metric) *LoggedModelMetric
type Metric ¶
type Metric struct { Key string `gorm:"column:key;primaryKey"` Value float64 `gorm:"column:value;primaryKey"` Timestamp int64 `gorm:"column:timestamp;primaryKey"` RunID string `gorm:"column:run_uuid;primaryKey"` Step int64 `gorm:"column:step;primaryKey"` IsNaN bool `gorm:"column:is_nan;primaryKey"` }
Metric mapped from table <metrics>.
func (Metric) NewLatestMetricFromProto ¶
func (m Metric) NewLatestMetricFromProto() LatestMetric
type Output ¶ added in v0.2.2
type Output struct { ID string `gorm:"column:input_uuid;not null"` Step int64 `gorm:"column:step"` SourceType string `gorm:"column:source_type;primaryKey"` SourceID string `gorm:"column:source_id;primaryKey"` DestinationType string `gorm:"column:destination_type;primaryKey"` DestinationID string `gorm:"column:destination_id;primaryKey"` }
func (*Output) ToEntity ¶ added in v0.2.2
func (o *Output) ToEntity() *entities.ModelOutput
type Param ¶
type Param struct { Key string `gorm:"column:key;primaryKey"` Value sql.NullString `gorm:"column:value;not null"` RunID string `gorm:"column:run_uuid;primaryKey"` }
Param mapped from table <params>.
type Run ¶
type Run struct { ID string `gorm:"column:run_uuid;primaryKey"` Name string `gorm:"column:name"` SourceType SourceType `gorm:"column:source_type"` SourceName string `gorm:"column:source_name"` EntryPointName string `gorm:"column:entry_point_name"` UserID string `gorm:"column:user_id"` Status RunStatus `gorm:"column:status"` StartTime int64 `gorm:"column:start_time"` EndTime sql.NullInt64 `gorm:"column:end_time"` SourceVersion string `gorm:"column:source_version"` LifecycleStage LifecycleStage `gorm:"column:lifecycle_stage"` ArtifactURI string `gorm:"column:artifact_uri"` ExperimentID int32 `gorm:"column:experiment_id"` DeletedTime sql.NullInt64 `gorm:"column:deleted_time"` Params []Param Tags []Tag Metrics []Metric LatestMetrics []LatestMetric Inputs []Input `gorm:"foreignKey:DestinationID"` Outputs []Output `gorm:"foreignKey:DestinationID"` }
Run mapped from table <runs>.
type SourceType ¶
type SourceType string
const ( SourceTypeNotebook SourceType = "NOTEBOOK" SourceTypeJob SourceType = "JOB" SourceTypeProject SourceType = "PROJECT" SourceTypeLocal SourceType = "LOCAL" SourceTypeUnknown SourceType = "UNKNOWN" SourceTypeRecipe SourceType = "RECIPE" SourceTypeRunInput SourceType = "RUN_INPUT" SourceTypeRunOutput SourceType = "RUN_OUTPUT" )
func (SourceType) String ¶ added in v0.2.2
func (s SourceType) String() string
type Tag ¶
type Tag struct { Key string `gorm:"column:key;primaryKey"` Value string `gorm:"column:value"` RunID string `gorm:"column:run_uuid;primaryKey"` }
Tag mapped from table <tags>.
type TraceInfo ¶
type TraceInfo struct { RequestID string `gorm:"column:request_id;primaryKey"` ExperimentID string `gorm:"column:experiment_id"` ClientRequestID sql.NullString `gorm:"column:client_request_id"` RequestPreview sql.NullString `gorm:"column:request_preview"` ResponsePreview sql.NullString `gorm:"column:request_preview"` TimestampMS int64 `gorm:"column:timestamp_ms"` ExecutionTimeMS sql.NullInt64 `gorm:"column:execution_time_ms"` Status string `gorm:"column:status"` Tags []TraceTag `gorm:"foreignKey:RequestID"` TraceRequestMetadata []TraceRequestMetadata `gorm:"foreignKey:RequestID"` }
TraceInfo mapped from table <trace_info>.
func (TraceInfo) ToTraceInfoV3Entity ¶ added in v0.2.3
func (ti TraceInfo) ToTraceInfoV3Entity() *entities.TraceInfoV3
type TraceRequestMetadata ¶
type TraceRequestMetadata struct { Key string `gorm:"column:key;primaryKey"` Value string `gorm:"column:value"` RequestID string `gorm:"column:request_id;primaryKey"` }
TraceRequestMetadata mapped from table <trace_request_metadata>.
func NewTraceRequestMetadataFromEntity ¶
func NewTraceRequestMetadataFromEntity( requestID string, metadata *entities.TraceRequestMetadata, ) TraceRequestMetadata
func (TraceRequestMetadata) TableName ¶
func (trm TraceRequestMetadata) TableName() string
func (TraceRequestMetadata) ToEntity ¶
func (trm TraceRequestMetadata) ToEntity() *entities.TraceRequestMetadata
Click to show internal directories.
Click to hide internal directories.