Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Experiment ¶
type Experiment struct { ID *int32 `gorm:"column:experiment_id;not null;primaryKey"` Name string `gorm:"type:varchar(256);not null;unique"` ArtifactLocation string `gorm:"type:varchar(256)"` LifecycleStage LifecycleStage `gorm:"type:varchar(32);check:lifecycle_stage IN ('active', 'deleted')"` CreationTime sql.NullInt64 `gorm:"type:bigint"` LastUpdateTime sql.NullInt64 `gorm:"type:bigint"` Tags []ExperimentTag `gorm:"constraint:OnDelete:CASCADE"` Runs []Run `gorm:"constraint:OnDelete:CASCADE"` }
Experiment represents model to work with `experiments` table.
type ExperimentTag ¶
type ExperimentTag struct { Key string `gorm:"type:varchar(250);not null;primaryKey"` Value string `gorm:"type:varchar(5000)"` ExperimentID int32 `gorm:"not null;primaryKey"` }
ExperimentTag represents model to work with `experiment_tags` table.
type LatestMetric ¶
type LatestMetric struct { Key string `gorm:"type:varchar(250);not null;primaryKey"` Value float64 `gorm:"type:double precision;not null"` Timestamp int64 Step int64 `gorm:"not null"` IsNan bool `gorm:"not null"` RunID string `gorm:"column:run_uuid;not null;primaryKey;index"` LastIter int64 }
LatestMetric represents model to work with `last_metrics` table.
type LifecycleStage ¶
type LifecycleStage string
LifecycleStage represents entity stage
const ( LifecycleStageActive LifecycleStage = "active" LifecycleStageDeleted LifecycleStage = "deleted" )
Supported list of stages.
type Metric ¶
type Metric struct { Key string `gorm:"type:varchar(250);not null;primaryKey"` Value float64 `gorm:"type:double precision;not null;primaryKey"` Timestamp int64 `gorm:"not null;primaryKey"` RunID string `gorm:"column:run_uuid;not null;primaryKey;index"` Step int64 `gorm:"default:0;not null;primaryKey"` IsNan bool `gorm:"default:false;not null;primaryKey"` Iter int64 `gorm:"index"` }
Metric represents model to work with `metrics` table.
type Param ¶
type Param struct { Key string `gorm:"type:varchar(250);not null;primaryKey"` Value string `gorm:"type:varchar(500);not null"` RunID string `gorm:"column:run_uuid;not null;primaryKey;index"` }
Param represents model to work with `params` table.
type RowNum ¶
type RowNum int64
RowNum represents custom data type.
func (RowNum) GormDataType ¶
GormDataType implements Gorm interface for custom data types.
type Run ¶
type Run struct { ID string `gorm:"<-:create;column:run_uuid;type:varchar(32);not null;primaryKey"` Name string `gorm:"type:varchar(250)"` SourceType string `gorm:"<-:create;type:varchar(20);check:source_type IN ('NOTEBOOK', 'JOB', 'LOCAL', 'UNKNOWN', 'PROJECT')"` SourceName string `gorm:"<-:create;type:varchar(500)"` EntryPointName string `gorm:"<-:create;type:varchar(50)"` UserID string `gorm:"<-:create;type:varchar(256)"` Status Status `gorm:"type:varchar(9);check:status IN ('SCHEDULED', 'FAILED', 'FINISHED', 'RUNNING', 'KILLED')"` StartTime sql.NullInt64 `gorm:"<-:create;type:bigint"` EndTime sql.NullInt64 `gorm:"type:bigint"` SourceVersion string `gorm:"<-:create;type:varchar(50)"` LifecycleStage LifecycleStage `gorm:"type:varchar(20);check:lifecycle_stage IN ('active', 'deleted')"` ArtifactURI string `gorm:"<-:create;type:varchar(200)"` ExperimentID int32 Experiment Experiment DeletedTime sql.NullInt64 `gorm:"type:bigint"` RowNum RowNum `gorm:"<-:create;index"` Params []Param `gorm:"constraint:OnDelete:CASCADE"` Tags []Tag `gorm:"constraint:OnDelete:CASCADE"` Metrics []Metric `gorm:"constraint:OnDelete:CASCADE"` LatestMetrics []LatestMetric `gorm:"constraint:OnDelete:CASCADE"` }
Run represents model to work with `runs` table.
Click to show internal directories.
Click to hide internal directories.