Title: feat: autostart/autostop: add GET /workspaces/:id/autostart endpoint · Issue #1058 · coder/coder · GitHub
Open Graph Title: feat: autostart/autostop: add GET /workspaces/:id/autostart endpoint · Issue #1058 · coder/coder
X Title: feat: autostart/autostop: add GET /workspaces/:id/autostart endpoint · Issue #1058 · coder/coder
Description: What Add endpoints to return information about workspace autostop/autostart times: GET /workspaces/:id/autostart GET /workspaces/:id/autostop Both of these endpoints will return the following information (example): { "schedule": "CRON_TZ...
Open Graph Description: What Add endpoints to return information about workspace autostop/autostart times: GET /workspaces/:id/autostart GET /workspaces/:id/autostop Both of these endpoints will return the following infor...
X Description: What Add endpoints to return information about workspace autostop/autostart times: GET /workspaces/:id/autostart GET /workspaces/:id/autostop Both of these endpoints will return the following infor...
Opengraph URL: https://github.com/coder/coder/issues/1058
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"feat: autostart/autostop: add GET /workspaces/:id/autostart endpoint","articleBody":"## What\r\nAdd endpoints to return information about workspace autostop/autostart times:\r\n- `GET /workspaces/:id/autostart`\r\n- `GET /workspaces/:id/autostop`\r\n\r\nBoth of these endpoints will return the following information (example):\r\n```json\r\n{\r\n \"schedule\": \"CRON_TZ=Europe/Dublin 30 9 * * 1-5\",\r\n \"next\": \"2022-04-18T09:30:00Z\"\r\n}\r\n```\r\n\r\n## Why\r\nTo support https://github.com/coder/coder/issues/861 and to show the information in the UI, we will need to poll the workspace object to retrieve the schedule in case it changes. Instead of this, we can return this information directly from coderd.\r\n\r\n(Also for the TDD session at the engineering off-site.)","author":{"url":"https://github.com/johnstcn","@type":"Person","name":"johnstcn"},"datePublished":"2022-04-18T16:31:53Z","url":"https://github.com/coder/coder/issues/1058"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ef8b5c47-75eb-be4e-a7f6-567300c28f05 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A236:215B92:1B0512E:23EF619:6B015BF5 |
| html-safe-nonce | 2de61ad98b0f646aba1701553121527cfc83a15969ee9b3a2db585e5da923dac |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMjM2OjIxNUI5MjoxQjA1MTJFOjIzRUY2MTk6NkIwMTVCRjUiLCJ2aXNpdG9yX2lkIjoiMzY3NzM0MjA0MTMyODY3MTczMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 90ec6fb19c193bc8229bef62312072170523f262b94352de5a1b76344d52e035 |
| hovercard-subject-tag | issue:1207217360 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/coder/coder/1058/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7e556f0928be0818b8af36529aae1c5e60d0093613fd3cad8770bcf4cd31a983/coder/coder/issues/1058 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7e556f0928be0818b8af36529aae1c5e60d0093613fd3cad8770bcf4cd31a983/coder/coder/issues/1058 |
| og:image:alt | What Add endpoints to return information about workspace autostop/autostart times: GET /workspaces/:id/autostart GET /workspaces/:id/autostop Both of these endpoints will return the following infor... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | johnstcn |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/coder/coder git https://github.com/coder/coder.git |
| octolytics-dimension-user_id | 95932066 |
| octolytics-dimension-user_login | coder |
| octolytics-dimension-repository_id | 440752086 |
| octolytics-dimension-repository_nwo | coder/coder |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 440752086 |
| octolytics-dimension-repository_network_root_nwo | coder/coder |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width