-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Testing cube dev * Updates * remove breaking code * Update gitignore * Update readme * typo fix
- Loading branch information
Showing
20 changed files
with
3,814 additions
and
230 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -74,3 +74,7 @@ production/ | |
|
||
# sqlmesh | ||
.cache/ | ||
|
||
# cube.dev | ||
core.1 | ||
.cubecloud |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
cubes: | ||
- name: artifacts_by_project_v1 | ||
sql_table: default.artifacts_by_project_v1 | ||
data_source: default | ||
|
||
joins: [] | ||
|
||
dimensions: | ||
- name: artifact_id | ||
sql: artifact_id | ||
type: string | ||
|
||
- name: artifact_source_id | ||
sql: artifact_source_id | ||
type: string | ||
|
||
- name: artifact_source | ||
sql: artifact_source | ||
type: string | ||
|
||
- name: artifact_namespace | ||
sql: artifact_namespace | ||
type: string | ||
|
||
- name: artifact_name | ||
sql: artifact_name | ||
type: string | ||
|
||
- name: project_id | ||
sql: project_id | ||
type: string | ||
|
||
- name: project_source | ||
sql: project_source | ||
type: string | ||
|
||
- name: project_namespace | ||
sql: project_namespace | ||
type: string | ||
|
||
- name: project_name | ||
sql: project_name | ||
type: string | ||
|
||
measures: | ||
- name: count | ||
type: count | ||
|
||
pre_aggregations: | ||
# Pre-aggregation definitions go here. | ||
# Learn more in the documentation: https://cube.dev/docs/caching/pre-aggregations/getting-started | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
cubes: | ||
- name: artifacts_v1 | ||
sql_table: default.artifacts_v1 | ||
data_source: default | ||
|
||
joins: [] | ||
|
||
dimensions: | ||
- name: artifact_id | ||
sql: artifact_id | ||
type: string | ||
|
||
- name: artifact_source_id | ||
sql: artifact_source_id | ||
type: string | ||
|
||
- name: artifact_source | ||
sql: artifact_source | ||
type: string | ||
|
||
- name: artifact_namespace | ||
sql: artifact_namespace | ||
type: string | ||
|
||
- name: artifact_name | ||
sql: artifact_name | ||
type: string | ||
|
||
- name: artifact_url | ||
sql: artifact_url | ||
type: string | ||
|
||
measures: | ||
- name: count | ||
type: count | ||
|
||
pre_aggregations: | ||
# Pre-aggregation definitions go here. | ||
# Learn more in the documentation: https://cube.dev/docs/caching/pre-aggregations/getting-started | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
cubes: | ||
- name: timeseries_events_by_artifact_v0 | ||
sql_table: default.timeseries_events_by_artifact_v0 | ||
data_source: default | ||
|
||
joins: [] | ||
|
||
dimensions: | ||
- name: to_artifact_id | ||
sql: to_artifact_id | ||
type: string | ||
|
||
- name: from_artifact_id | ||
sql: from_artifact_id | ||
type: string | ||
|
||
- name: event_type | ||
sql: event_type | ||
type: string | ||
|
||
- name: event_source_id | ||
sql: event_source_id | ||
type: string | ||
|
||
- name: event_source | ||
sql: event_source | ||
type: string | ||
|
||
- name: amount | ||
sql: amount | ||
type: string | ||
|
||
- name: time | ||
sql: time | ||
type: time | ||
|
||
measures: | ||
- name: count | ||
type: count | ||
|
||
pre_aggregations: | ||
# Pre-aggregation definitions go here. | ||
# Learn more in the documentation: https://cube.dev/docs/caching/pre-aggregations/getting-started | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# In Cube, views are used to expose slices of your data graph and act as data marts. | ||
# You can control which measures and dimensions are exposed to BIs or data apps, | ||
# as well as the direction of joins between the exposed cubes. | ||
# You can learn more about views in documentation here - https://cube.dev/docs/schema/reference/view | ||
|
||
|
||
# The following example shows a view defined on top of orders and customers cubes. | ||
# Both orders and customers cubes are exposed using the "includes" parameter to | ||
# control which measures and dimensions are exposed. | ||
# Prefixes can also be applied when exposing measures or dimensions. | ||
# In this case, the customers' city dimension is prefixed with the cube name, | ||
# resulting in "customers_city" when querying the view. | ||
|
||
# views: | ||
# - name: example_view | ||
# | ||
# cubes: | ||
# - join_path: orders | ||
# includes: | ||
# - status | ||
# - created_date | ||
# | ||
# - total_amount | ||
# - count | ||
# | ||
# - join_path: orders.customers | ||
# prefix: true | ||
# includes: | ||
# - city |
Oops, something went wrong.