File tree Expand file tree Collapse file tree 5 files changed +68
-0
lines changed
Expand file tree Collapse file tree 5 files changed +68
-0
lines changed Original file line number Diff line number Diff line change 1+ {
2+ "granularity" : " String" ,
3+ "startTime" : " DateTime64(9)" ,
4+ "stopTime" : " DateTime64(9)" ,
5+ "selectedRepos" : " Array(String)" ,
6+ "selectedGPU" : " Array(UInt8)" ,
7+ "selectedPlatforms" : " Array(String)" ,
8+ "selectedProviders" : " Array(String)" ,
9+ "selectedOwners" : " Array(String)"
10+ }
Original file line number Diff line number Diff line change 1+ select
2+ DATE_TRUNC(
3+ {granularity: String},
4+ rc .date
5+ ) as granularity_bucket,
6+ rc .group_repo as repo,
7+ sum (rc .cost ) as total_cost
8+ from
9+ misc .runner_cost rc final
10+ where
11+ rc .date > {startTime: DateTime64(9 )}
12+ and rc .date < {stopTime: DateTime64(9 )}
13+ and rc .cost > 0
14+ and rc .group_repo in {selectedRepos: Array(String)}
15+ and rc .gpu in {selectedGPU: Array(UInt8)}
16+ and rc .os in {selectedPlatforms: Array(String)}
17+ and rc .provider in {selectedProviders: Array(String)}
18+ and rc .owning_account in {selectedOwners: Array(String)}
19+ group by
20+ granularity_bucket,
21+ repo
22+ order by
23+ granularity_bucket asc
Original file line number Diff line number Diff line change 1+ {
2+ "granularity" : " String" ,
3+ "startTime" : " DateTime64(9)" ,
4+ "stopTime" : " DateTime64(9)" ,
5+ "selectedRepos" : " Array(String)" ,
6+ "selectedGPU" : " Array(UInt8)" ,
7+ "selectedPlatforms" : " Array(String)" ,
8+ "selectedProviders" : " Array(String)" ,
9+ "selectedOwners" : " Array(String)"
10+ }
Original file line number Diff line number Diff line change 1+ select
2+ DATE_TRUNC(
3+ {granularity: String},
4+ rc .date
5+ ) as granularity_bucket,
6+ rc .group_repo as repo,
7+ sum (rc .duration ) as total_duration
8+ from
9+ misc .runner_cost rc final
10+ where
11+ rc .date > {startTime: DateTime64(9 )}
12+ and rc .date < {stopTime: DateTime64(9 )}
13+ and rc .duration > 0
14+ and rc .group_repo in {selectedRepos: Array(String)}
15+ and rc .gpu in {selectedGPU: Array(UInt8)}
16+ and rc .os in {selectedPlatforms: Array(String)}
17+ and rc .provider in {selectedProviders: Array(String)}
18+ and rc .owning_account in {selectedOwners: Array(String)}
19+ group by
20+ granularity_bucket,
21+ repo
22+ order by
23+ granularity_bucket asc
24+
Original file line number Diff line number Diff line change @@ -453,6 +453,7 @@ export default function Page() {
453453 < MenuItem value = { "provider" } > Provider</ MenuItem >
454454 < MenuItem value = { "owning_account" } > Owning Account</ MenuItem >
455455 < MenuItem value = { "gpu" } > GPU/Non-GPU</ MenuItem >
456+ < MenuItem value = { "repo" } > Repository</ MenuItem >
456457 </ Select >
457458 </ FormControl >
458459 </ Grid >
You can’t perform that action at this time.
0 commit comments