Skip to content

Commit 84206e6

Browse files
authored
Merge pull request #253 from buildkite/SUP-4793/Adding-paused
Add paused state fields to Agent struct
2 parents f685cbc + dd54777 commit 84206e6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

agents.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ type Agent struct {
3535
Creator *User `json:"creator,omitempty"`
3636

3737
Job *Job `json:"job,omitempty"`
38+
39+
Paused *bool `json:"paused,omitempty"`
40+
PausedAt *Timestamp `json:"paused_at,omitempty"`
41+
PausedBy *User `json:"paused_by,omitempty"`
42+
PausedNote *string `json:"paused_note,omitempty"`
43+
PausedTimeoutInMinutes *int `json:"paused_timeout_in_minutes,omitempty"`
3844
}
3945

4046
// AgentListOptions specifies the optional parameters to the

0 commit comments

Comments
 (0)