mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat(coderd): add last_seen_at and version to provisioner_daemons table (#11033)
Related to #10676 - Adds columns last_seen_at and version to provisioner_daemons table - Adds the above to codersdk.ProvisionerDaemons struct
This commit is contained in:
Generated
+5
-1
@@ -700,6 +700,7 @@ curl -X GET http://coder-server:8080/api/v2/organizations/{organization}/provisi
|
||||
{
|
||||
"created_at": "2019-08-24T14:15:22Z",
|
||||
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
|
||||
"last_seen_at": "2019-08-24T14:15:22Z",
|
||||
"name": "string",
|
||||
"provisioners": ["string"],
|
||||
"tags": {
|
||||
@@ -709,7 +710,8 @@ curl -X GET http://coder-server:8080/api/v2/organizations/{organization}/provisi
|
||||
"updated_at": {
|
||||
"time": "string",
|
||||
"valid": true
|
||||
}
|
||||
},
|
||||
"version": "string"
|
||||
}
|
||||
]
|
||||
```
|
||||
@@ -729,6 +731,7 @@ Status Code **200**
|
||||
| `[array item]` | array | false | | |
|
||||
| `» created_at` | string(date-time) | false | | |
|
||||
| `» id` | string(uuid) | false | | |
|
||||
| `» last_seen_at` | string(date-time) | false | | |
|
||||
| `» name` | string | false | | |
|
||||
| `» provisioners` | array | false | | |
|
||||
| `» tags` | object | false | | |
|
||||
@@ -736,6 +739,7 @@ Status Code **200**
|
||||
| `» updated_at` | [sql.NullTime](schemas.md#sqlnulltime) | false | | |
|
||||
| `»» time` | string | false | | |
|
||||
| `»» valid` | boolean | false | | Valid is true if Time is not NULL |
|
||||
| `» version` | string | false | | |
|
||||
|
||||
To perform this operation, you must be authenticated. [Learn more](authentication.md).
|
||||
|
||||
|
||||
Generated
+5
-1
@@ -3770,6 +3770,7 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
|
||||
{
|
||||
"created_at": "2019-08-24T14:15:22Z",
|
||||
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
|
||||
"last_seen_at": "2019-08-24T14:15:22Z",
|
||||
"name": "string",
|
||||
"provisioners": ["string"],
|
||||
"tags": {
|
||||
@@ -3779,7 +3780,8 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
|
||||
"updated_at": {
|
||||
"time": "string",
|
||||
"valid": true
|
||||
}
|
||||
},
|
||||
"version": "string"
|
||||
}
|
||||
```
|
||||
|
||||
@@ -3789,11 +3791,13 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
|
||||
| ------------------ | ---------------------------- | -------- | ------------ | ----------- |
|
||||
| `created_at` | string | false | | |
|
||||
| `id` | string | false | | |
|
||||
| `last_seen_at` | string | false | | |
|
||||
| `name` | string | false | | |
|
||||
| `provisioners` | array of string | false | | |
|
||||
| `tags` | object | false | | |
|
||||
| » `[any property]` | string | false | | |
|
||||
| `updated_at` | [sql.NullTime](#sqlnulltime) | false | | |
|
||||
| `version` | string | false | | |
|
||||
|
||||
## codersdk.ProvisionerJob
|
||||
|
||||
|
||||
Reference in New Issue
Block a user