Skip to content

Commit 41ca6e4

Browse files
authored
chore: add created_at to workspace resource telemetry (coder#12969)
1 parent 3ab5a51 commit 41ca6e4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

coderd/telemetry/telemetry.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -624,6 +624,7 @@ func ConvertWorkspaceResource(resource database.WorkspaceResource) WorkspaceReso
624624
return WorkspaceResource{
625625
ID: resource.ID,
626626
JobID: resource.JobID,
627+
CreatedAt: resource.CreatedAt,
627628
Transition: resource.Transition,
628629
Type: resource.Type,
629630
InstanceType: resource.InstanceType.String,
@@ -833,6 +834,7 @@ type User struct {
833834

834835
type WorkspaceResource struct {
835836
ID uuid.UUID `json:"id"`
837+
CreatedAt time.Time `json:"created_at"`
836838
JobID uuid.UUID `json:"job_id"`
837839
Transition database.WorkspaceTransition `json:"transition"`
838840
Type string `json:"type"`

0 commit comments

Comments
 (0)