mirror of https://github.com/coder/coder.git
chore: add `created_at` to workspace resource telemetry (#12969)
This commit is contained in:
parent
3ab5a51ec2
commit
41ca6e4f7f
|
@ -624,6 +624,7 @@ func ConvertWorkspaceResource(resource database.WorkspaceResource) WorkspaceReso
|
||||||
return WorkspaceResource{
|
return WorkspaceResource{
|
||||||
ID: resource.ID,
|
ID: resource.ID,
|
||||||
JobID: resource.JobID,
|
JobID: resource.JobID,
|
||||||
|
CreatedAt: resource.CreatedAt,
|
||||||
Transition: resource.Transition,
|
Transition: resource.Transition,
|
||||||
Type: resource.Type,
|
Type: resource.Type,
|
||||||
InstanceType: resource.InstanceType.String,
|
InstanceType: resource.InstanceType.String,
|
||||||
|
@ -833,6 +834,7 @@ type User struct {
|
||||||
|
|
||||||
type WorkspaceResource struct {
|
type WorkspaceResource struct {
|
||||||
ID uuid.UUID `json:"id"`
|
ID uuid.UUID `json:"id"`
|
||||||
|
CreatedAt time.Time `json:"created_at"`
|
||||||
JobID uuid.UUID `json:"job_id"`
|
JobID uuid.UUID `json:"job_id"`
|
||||||
Transition database.WorkspaceTransition `json:"transition"`
|
Transition database.WorkspaceTransition `json:"transition"`
|
||||||
Type string `json:"type"`
|
Type string `json:"type"`
|
||||||
|
|
Loading…
Reference in New Issue