Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add HotStartPoolTrackEdge #20

Merged
merged 2 commits into from
Dec 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions instruqt/hotstartpool.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,17 @@ type HotStartPoolConfigTrackEdge struct {
Node SandboxConfig
}

// HotStartPoolTrackEdge
type HotStartPoolTrackEdge struct {
Claimed int
Available int
Created int
Failed int
Creating int
Total int
Node Track
}

// HotStartPool represents a hot start pool in Instruqt.
type HotStartPool struct {
Id string // ID of the hot start pool.
Expand All @@ -63,4 +74,5 @@ type HotStartPool struct {
Status HotStartStatus // Status of the hot start pool.
Region string // Region of a hotstart pool.
Configs []HotStartPoolConfigTrackEdge // Configs status for the hotstart pool.
Tracks []HotStartPoolTrackEdge // Tracks status for the hotstart pool.
}
1 change: 1 addition & 0 deletions instruqt/track.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ type SandboxTrack struct {
Participant struct { // Information about the participant of the sandbox track.
Id string
}
SandboxConfig *SandboxConfig // The SandboxConfig associated the track.
}

// GetTrackById retrieves a track from Instruqt using its unique track ID.
Expand Down
Loading