Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Differentiate usage of different workspace classes and types (prebuilds) #10985

Closed
Tracked by #9036
jldec opened this issue Jun 28, 2022 · 2 comments
Closed
Tracked by #9036

Differentiate usage of different workspace classes and types (prebuilds) #10985

jldec opened this issue Jun 28, 2022 · 2 comments
Assignees
Labels
team: webapp Issue belongs to the WebApp team

Comments

@jldec
Copy link
Contributor

jldec commented Jun 28, 2022

Users viewing a usage report should recognize where that usage happened. This means differentiating between usage for different workspace classes (which are metered at different rates), as well as separating usage of workspaces like prebuilds, from regular workspaces.

@easyCZ
Copy link
Member

easyCZ commented Jul 12, 2022

In #11043, we've added configuration to price different classes differently. The remaining work is to expose the WorkspaceType in the results. To do this, we'll need to join WorkspaceInstances with Workspaces.

We'll need to something like the following query to get the:

SELECT wsi.id, wsi.creationTime, wsi.startedTime, wsi.stoppedTime, wsi.usageAttributionId, ws.projectId, ws.type
    FROM d_b_workspace_instance AS wsi
    LEFT JOIN d_b_workspace AS ws
      ON wsi.workspaceId = ws.id
    LIMIT 100;

@easyCZ
Copy link
Member

easyCZ commented Jul 21, 2022

This is now complete.

@easyCZ easyCZ closed this as completed Jul 21, 2022
Repository owner moved this from In Progress to Done in 🍎 WebApp Team Jul 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team: webapp Issue belongs to the WebApp team
Projects
Archived in project
Development

No branches or pull requests

2 participants