|
|
|
@@ -14,6 +14,18 @@ type AiCollector interface { |
|
|
|
UploadAlgorithmCode(ctx context.Context, resourceType string, card string, taskType string, dataset string, algorithm string, code string) error |
|
|
|
GetComputeCards(ctx context.Context) ([]string, error) |
|
|
|
GetUserBalance(ctx context.Context) (float64, error) |
|
|
|
GetResourceUsage(ctx context.Context) (*ResourceUsage, error) |
|
|
|
} |
|
|
|
|
|
|
|
type ResourceUsage struct { |
|
|
|
ClusterId string |
|
|
|
Resources []*Usage |
|
|
|
} |
|
|
|
|
|
|
|
type Usage struct { |
|
|
|
Total float64 |
|
|
|
Type string |
|
|
|
Available float64 |
|
|
|
} |
|
|
|
|
|
|
|
type ResourceStats struct { |
|
|
|
|