Documentation ¶
Index ¶
- Constants
- Variables
- func ValidateGetMetricHistoriesRequest(req *request.GetMetricHistoriesRequest) error
- func ValidateGetMetricHistoryBulkRequest(req *request.GetMetricHistoryBulkRequest) error
- func ValidateGetMetricHistoryRequest(req *request.GetMetricHistoryRequest) error
- type Service
- func (s Service) GetMetricHistories(ctx context.Context, namespace *models.Namespace, ...) (*sql.Rows, func(*sql.Rows, interface{}) error, error)
- func (s Service) GetMetricHistory(ctx context.Context, namespace *models.Namespace, ...) ([]models.Metric, error)
- func (s Service) GetMetricHistoryBulk(ctx context.Context, namespace *models.Namespace, ...) ([]models.Metric, error)
Constants ¶
View Source
const ( MaxResultsForMetricHistoriesRequest = 1000000000 MaxRunIDsForMetricHistoryBulkRequest = 200 )
Variables ¶
View Source
var ( AllowedViewTypeList = map[request.ViewType]struct{}{ "": {}, request.ViewTypeAll: {}, request.ViewTypeActiveOnly: {}, request.ViewTypeDeletedOnly: {}, } )
AllowedViewTypeList supported list of ViewType.
Functions ¶
func ValidateGetMetricHistoriesRequest ¶
func ValidateGetMetricHistoriesRequest(req *request.GetMetricHistoriesRequest) error
ValidateGetMetricHistoriesRequest validates `GET /mlflow/metrics/get-histories` request.
func ValidateGetMetricHistoryBulkRequest ¶
func ValidateGetMetricHistoryBulkRequest(req *request.GetMetricHistoryBulkRequest) error
ValidateGetMetricHistoryBulkRequest validates `GET /mlflow/metrics/get-history-bulk` request.
func ValidateGetMetricHistoryRequest ¶
func ValidateGetMetricHistoryRequest(req *request.GetMetricHistoryRequest) error
ValidateGetMetricHistoryRequest validates `GET /mlflow/metrics/get-history` request.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service provides service layer to work with `metric` business logic.
func NewService ¶
func NewService( runRepository repositories.RunRepositoryProvider, metricRepository repositories.MetricRepositoryProvider, ) *Service
NewService creates new Service instance.
func (Service) GetMetricHistories ¶
func (Service) GetMetricHistory ¶
Click to show internal directories.
Click to hide internal directories.