Skip to content

Commit

Permalink
chore: add created_at to workspace resource telemetry (#12969)
Browse files Browse the repository at this point in the history
  • Loading branch information
kylecarbs committed Apr 15, 2024
1 parent 3ab5a51 commit 41ca6e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions coderd/telemetry/telemetry.go
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,7 @@ func ConvertWorkspaceResource(resource database.WorkspaceResource) WorkspaceReso
return WorkspaceResource{
ID: resource.ID,
JobID: resource.JobID,
CreatedAt: resource.CreatedAt,
Transition: resource.Transition,
Type: resource.Type,
InstanceType: resource.InstanceType.String,
Expand Down Expand Up @@ -833,6 +834,7 @@ type User struct {

type WorkspaceResource struct {
ID uuid.UUID `json:"id"`
CreatedAt time.Time `json:"created_at"`
JobID uuid.UUID `json:"job_id"`
Transition database.WorkspaceTransition `json:"transition"`
Type string `json:"type"`
Expand Down

0 comments on commit 41ca6e4

Please sign in to comment.