chore: rename 'last_used_at' column (#26749)

Renames the `last_used_at` column  to `last_heartbeat_at` in `ai_gateway_keys` table.  
`ai_gateway_keys` table has not been released yet.  
All references updated.
This commit is contained in:
Paweł Banaszewski
2026-06-26 18:45:37 +02:00
committed by GitHub
parent 73cd34cc5f
commit c15d483863
29 changed files with 136 additions and 132 deletions
+9 -9
View File
@@ -201,7 +201,7 @@ curl -X GET http://coder-server:8080/api/v2/ai-gateway/keys \
"created_at": "2019-08-24T14:15:22Z",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"key_prefix": "string",
"last_used_at": "2019-08-24T14:15:22Z",
"last_heartbeat_at": "2019-08-24T14:15:22Z",
"name": "string"
}
]
@@ -217,14 +217,14 @@ curl -X GET http://coder-server:8080/api/v2/ai-gateway/keys \
Status Code **200**
| Name | Type | Required | Restrictions | Description |
|------------------|-------------------|----------|--------------|-------------|
| `[array item]` | array | false | | |
| `» created_at` | string(date-time) | false | | |
| `» id` | string(uuid) | false | | |
| `» key_prefix` | string | false | | |
| `» last_used_at` | string(date-time) | false | | |
| `» name` | string | false | | |
| Name | Type | Required | Restrictions | Description |
|-----------------------|-------------------|----------|--------------|-------------|
| `[array item]` | array | false | | |
| `» created_at` | string(date-time) | false | | |
| `» id` | string(uuid) | false | | |
| `» key_prefix` | string | false | | |
| `» last_heartbeat_at` | string(date-time) | false | | |
| `» name` | string | false | | |
To perform this operation, you must be authenticated. [Learn more](authentication.md).
+8 -8
View File
@@ -990,20 +990,20 @@
"created_at": "2019-08-24T14:15:22Z",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"key_prefix": "string",
"last_used_at": "2019-08-24T14:15:22Z",
"last_heartbeat_at": "2019-08-24T14:15:22Z",
"name": "string"
}
```
### Properties
| Name | Type | Required | Restrictions | Description |
|----------------|--------|----------|--------------|-------------|
| `created_at` | string | false | | |
| `id` | string | false | | |
| `key_prefix` | string | false | | |
| `last_used_at` | string | false | | |
| `name` | string | false | | |
| Name | Type | Required | Restrictions | Description |
|---------------------|--------|----------|--------------|-------------|
| `created_at` | string | false | | |
| `id` | string | false | | |
| `key_prefix` | string | false | | |
| `last_heartbeat_at` | string | false | | |
| `name` | string | false | | |
## codersdk.AIProvider
+4 -4
View File
@@ -17,10 +17,10 @@ coder ai-gateway keys list [flags]
### -c, --column
| | |
|---------|---------------------------------------------------------------|
| Type | <code>[id\|name\|key prefix\|created at\|last used at]</code> |
| Default | <code>id,name,key prefix,last used at,created at</code> |
| | |
|---------|--------------------------------------------------------------------|
| Type | <code>[id\|name\|key prefix\|created at\|last heartbeat at]</code> |
| Default | <code>id,name,key prefix,last heartbeat at,created at</code> |
Columns to display in table output.