Documentation ¶
Index ¶
- func HpaModelCreate(modelName string, trainScript string, inferScript string) error
- func HpaModelDelete(modelName string) error
- func HpaModelGetID(modelName string) (uint, error)
- func HpaModelRecordError(modelName string, errorInfo string) error
- func HpaModelRecordOk(modelName string) error
- func HpaServiceChangeModel(serviceName string, modelId uint) error
- func HpaServiceCreate(serviceName string, tags map[string]string, modelId uint) error
- func HpaServiceDelete(serviceName string) error
- func HpaServiceRecordError(serviceName string, errorInfo string) error
- func HpaServiceRecordThreshQPS(serviceName string, threshQPS uint) error
- func InitModel()
- type HpaModel
- type HpaService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HpaModelCreate ¶
func HpaModelDelete ¶
func HpaModelGetID ¶
func HpaModelRecordError ¶
func HpaModelRecordOk ¶
func HpaServiceChangeModel ¶
func HpaServiceCreate ¶
func HpaServiceDelete ¶
func HpaServiceRecordError ¶
Types ¶
type HpaModel ¶
type HpaModel struct { gorm.Model ModelName string `gorm:"column:model_name"` Status string `gorm:"column:status"` TrainScript string `gorm:"column:train_script"` InferScript string `gorm:"column:infer_script"` ErrorInfo string `gorm:"column:error_info"` }
func HpaModelGet ¶
func HpaModelList ¶
type HpaService ¶
type HpaService struct { gorm.Model ServiceName string `gorm:"column:service_name;uniqueIndex"` Tags string `gorm:"column:tags;index"` Status string `gorm:"column:status"` ThreshQPS uint `gorm:"column:thresh_qps"` ModelId uint `gorm:"column:model_id"` ErrorInfo string `gorm:"column:error_info"` HpaModel HpaModel `gorm:"foreignKey:ModelId"` }
func HpaServiceGet ¶
func HpaServiceGet(serviceName string) (*HpaService, error)
func HpaServiceList ¶
func HpaServiceList() ([]HpaService, error)
func (HpaService) TableName ¶
func (HpaService) TableName() string
Click to show internal directories.
Click to hide internal directories.