chore(codersdk): explain format of codersdk.UpdateWorkspaceAutostartRequest.Schedule (#12539)

This commit is contained in:
Cian Johnston
2024-03-11 22:50:38 +00:00
committed by GitHub
parent a546cb8b32
commit d704ff4570
4 changed files with 8 additions and 3 deletions
+3
View File
@@ -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"`
}