Documentation ¶
Index ¶
- func ReportModelValid(ctx context.Context, content []byte) (err error)
- func ReportThresh(ctx context.Context, content []byte) (err error)
- type DeleteServiceResponse
- type HpaModel
- type HpaService
- type ListHpaModelsResponse
- type ListHpaServicesResponse
- type QueryModelResultResponse
- type QueryRegisterResultResponse
- type RegisterModelRequest
- type RegisterModelResponse
- type RegisterServiceRequest
- type RegisterServiceResponse
- type ReportModelValidRequest
- type ReportThreshRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DeleteServiceResponse ¶
func DeleteService ¶
func DeleteService(ctx context.Context, serviceName string) (response *DeleteServiceResponse, err error)
type HpaModel ¶
type HpaService ¶
type HpaService struct { Name *string `json:"name"` Tags map[string]string `json:"tags"` ThreshQPS *uint `json:"thresh_qps"` ModelName *string `json:"model_name"` }
func FindHpaService ¶
func FindHpaService(ctx context.Context, serviceName string) (response *HpaService, err error)
type ListHpaModelsResponse ¶
type ListHpaModelsResponse struct {
HpaModels []HpaModel `json:"hpa_models"`
}
func ListHpaModels ¶
func ListHpaModels(ctx context.Context) (response *ListHpaModelsResponse, err error)
type ListHpaServicesResponse ¶
type ListHpaServicesResponse struct {
HpaServices []HpaService `json:"hpa_services"`
}
func ListHpaServices ¶
func ListHpaServices(ctx context.Context) (response *ListHpaServicesResponse, err error)
type QueryModelResultResponse ¶
type QueryModelResultResponse struct { Status string `json:"status"` ErrorInfo string `json:"error_info"` }
func QueryModelResult ¶
func QueryModelResult(ctx context.Context, modelName string) (response *QueryModelResultResponse, err error)
type QueryRegisterResultResponse ¶
type QueryRegisterResultResponse struct { Status string `json:"status"` ErrorInfo string `json:"error_info"` }
func QueryRegisterResult ¶
func QueryRegisterResult(ctx context.Context, serviceName string) (response *QueryRegisterResultResponse, err error)
type RegisterModelRequest ¶
type RegisterModelResponse ¶
type RegisterModelResponse struct { Accepted bool `json:"accepted"` Message string `json:"message"` }
func RegisterModel ¶
func RegisterModel(ctx context.Context, content []byte) (response *RegisterModelResponse, err error)
type RegisterServiceRequest ¶
type RegisterServiceResponse ¶
type RegisterServiceResponse struct { Accepted bool `json:"accepted"` Message string `json:"message"` }
func RegisterService ¶
func RegisterService(ctx context.Context, content []byte) (response *RegisterServiceResponse, err error)
type ReportModelValidRequest ¶
Click to show internal directories.
Click to hide internal directories.