Documentation ¶
Index ¶
- func DriftEvaluation(unitType string, metricType datahub_common.MetricType, granularity int64, ...) ([]datahub_common.MetricType, bool)
- func ModelCompleteNotification(modelMapper *ModelMapper, datahubGrpcCn *grpc.ClientConn, ...)
- func NewApplicationModelJobSender(datahubGrpcCn *grpc.ClientConn, modelMapper *ModelMapper, ...) *applicationModelJobSender
- func NewClusterModelJobSender(datahubGrpcCn *grpc.ClientConn, modelMapper *ModelMapper, ...) *clusterModelJobSender
- func NewControllerModelJobSender(datahubGrpcCn *grpc.ClientConn, modelMapper *ModelMapper, ...) *controllerModelJobSender
- func NewGPUModelJobSender(datahubGrpcCn *grpc.ClientConn, modelMapper *ModelMapper, ...) *gpuModelJobSender
- func NewModelJobSender(datahubGrpcCn *grpc.ClientConn, modelMapper *ModelMapper, ...) *modelJobSender
- func NewNamespaceModelJobSender(datahubGrpcCn *grpc.ClientConn, modelMapper *ModelMapper, ...) *namespaceModelJobSender
- func NewNodeModelJobSender(datahubGrpcCn *grpc.ClientConn, modelMapper *ModelMapper, ...) *nodeModelJobSender
- func NewPodModelJobSender(datahubGrpcCn *grpc.ClientConn, modelMapper *ModelMapper, ...) *podModelJobSender
- func NewPredictJobSender(datahubGrpcCn *grpc.ClientConn) *predictJobSender
- type Dispatcher
- type ModelMapper
- func (mm *ModelMapper) AddModelInfo(clusterID string, predictUnitType string, granularity string, ...)
- func (mm *ModelMapper) AddModelInfoV2(jobID string)
- func (mm *ModelMapper) GetModelInfo(clusterID string, predictUnitType string, granularity string, ...) *modelInfo
- func (mm *ModelMapper) GetModelInfoV2(jobID string) *modelInfo
- func (mm *ModelMapper) IsModelTimeout(clusterID string, predictUnitType string, granularity string, ...) bool
- func (mm *ModelMapper) IsModelTimeoutV2(jobID string) bool
- func (mm *ModelMapper) IsModeling(clusterID string, predictUnitType string, granularity string, ...) bool
- func (mm *ModelMapper) IsModelingV2(jobID string) bool
- func (mm *ModelMapper) RemoveModelInfo(clusterID string, predictUnitType string, granularity string, ...)
- func (mm *ModelMapper) RemoveModelInfoV2(jobID string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DriftEvaluation ¶ added in v0.9.166
func DriftEvaluation(unitType string, metricType datahub_common.MetricType, granularity int64, mData []*datahub_common.Sample, pData []*datahub_predictions.Sample, unitMeta map[string]string, metricExporter *metrics.Exporter) ([]datahub_common.MetricType, bool)
func ModelCompleteNotification ¶ added in v0.9.166
func ModelCompleteNotification(modelMapper *ModelMapper, datahubGrpcCn *grpc.ClientConn, metricExporter *metrics.Exporter)
func NewApplicationModelJobSender ¶ added in v0.9.166
func NewApplicationModelJobSender(datahubGrpcCn *grpc.ClientConn, modelMapper *ModelMapper, metricExporter *metrics.Exporter) *applicationModelJobSender
func NewClusterModelJobSender ¶ added in v0.9.166
func NewClusterModelJobSender(datahubGrpcCn *grpc.ClientConn, modelMapper *ModelMapper, metricExporter *metrics.Exporter) *clusterModelJobSender
func NewControllerModelJobSender ¶ added in v0.9.166
func NewControllerModelJobSender(datahubGrpcCn *grpc.ClientConn, modelMapper *ModelMapper, metricExporter *metrics.Exporter) *controllerModelJobSender
func NewGPUModelJobSender ¶ added in v0.9.166
func NewGPUModelJobSender(datahubGrpcCn *grpc.ClientConn, modelMapper *ModelMapper, metricExporter *metrics.Exporter) *gpuModelJobSender
func NewModelJobSender ¶ added in v0.9.1
func NewModelJobSender(datahubGrpcCn *grpc.ClientConn, modelMapper *ModelMapper, metricExporter *metrics.Exporter) *modelJobSender
func NewNamespaceModelJobSender ¶ added in v0.9.166
func NewNamespaceModelJobSender(datahubGrpcCn *grpc.ClientConn, modelMapper *ModelMapper, metricExporter *metrics.Exporter) *namespaceModelJobSender
func NewNodeModelJobSender ¶ added in v0.9.166
func NewNodeModelJobSender(datahubGrpcCn *grpc.ClientConn, modelMapper *ModelMapper, metricExporter *metrics.Exporter) *nodeModelJobSender
func NewPodModelJobSender ¶ added in v0.9.166
func NewPodModelJobSender(datahubGrpcCn *grpc.ClientConn, modelMapper *ModelMapper, metricExporter *metrics.Exporter) *podModelJobSender
func NewPredictJobSender ¶ added in v0.9.1
func NewPredictJobSender(datahubGrpcCn *grpc.ClientConn) *predictJobSender
Types ¶
type Dispatcher ¶
type Dispatcher struct {
// contains filtered or unexported fields
}
func NewDispatcher ¶
func NewDispatcher(datahubGrpcCn *grpc.ClientConn, granularities []string, predictUnits []string, modelMapper *ModelMapper, metricExporter *metrics.Exporter, cfg *config.Config) *Dispatcher
func (*Dispatcher) Start ¶
func (dispatcher *Dispatcher) Start()
type ModelMapper ¶ added in v0.9.1
type ModelMapper struct {
// contains filtered or unexported fields
}
func NewModelMapper ¶ added in v0.9.1
func NewModelMapper() *ModelMapper
func (*ModelMapper) AddModelInfo ¶ added in v0.9.1
func (*ModelMapper) AddModelInfoV2 ¶
func (mm *ModelMapper) AddModelInfoV2(jobID string)
func (*ModelMapper) GetModelInfo ¶ added in v0.9.166
func (*ModelMapper) GetModelInfoV2 ¶
func (mm *ModelMapper) GetModelInfoV2(jobID string) *modelInfo
func (*ModelMapper) IsModelTimeout ¶ added in v0.9.1
func (*ModelMapper) IsModelTimeoutV2 ¶
func (mm *ModelMapper) IsModelTimeoutV2(jobID string) bool
func (*ModelMapper) IsModeling ¶ added in v0.9.1
func (*ModelMapper) IsModelingV2 ¶
func (mm *ModelMapper) IsModelingV2(jobID string) bool
func (*ModelMapper) RemoveModelInfo ¶ added in v0.9.1
func (*ModelMapper) RemoveModelInfoV2 ¶
func (mm *ModelMapper) RemoveModelInfoV2(jobID string)
Source Files ¶
- application_model_job_sender.go
- cluster_model_job_sender.go
- controller_model_job_sender.go
- dispatcher.go
- gpu_model_job_sender.go
- measure.go
- model_complete.go
- model_info.go
- model_job_sender.go
- model_mapper.go
- namespace_model_job_sender.go
- node_model_job_sender.go
- pod_model_job_sender.go
- predict_job_sender.go
Click to show internal directories.
Click to hide internal directories.