mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore(codersdk): explain format of codersdk.UpdateWorkspaceAutostartRequest.Schedule (#12539)
This commit is contained in:
@@ -253,6 +253,9 @@ func (c *Client) UpdateWorkspace(ctx context.Context, id uuid.UUID, req UpdateWo
|
||||
|
||||
// UpdateWorkspaceAutostartRequest is a request to update a workspace's autostart schedule.
|
||||
type UpdateWorkspaceAutostartRequest struct {
|
||||
// Schedule is expected to be of the form `CRON_TZ=<IANA Timezone> <min> <hour> * * <dow>`
|
||||
// Example: `CRON_TZ=US/Central 30 9 * * 1-5` represents 0930 in the timezone US/Central
|
||||
// on weekdays (Mon-Fri). `CRON_TZ` defaults to UTC if not present.
|
||||
Schedule *string `json:"schedule"`
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user