Skip to content

Commit

Permalink
Testing cube dev (#1982)
Browse files Browse the repository at this point in the history
* Testing cube dev

* Updates

* remove breaking code

* Update gitignore

* Update readme

* typo fix
  • Loading branch information
ravenac95 authored Aug 26, 2024
1 parent 6ba0d2b commit a9414fe
Show file tree
Hide file tree
Showing 20 changed files with 3,814 additions and 230 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,7 @@ production/

# sqlmesh
.cache/

# cube.dev
core.1
.cubecloud
52 changes: 52 additions & 0 deletions model/cubes/artifacts_by_project_v1.yml
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

40 changes: 40 additions & 0 deletions model/cubes/artifacts_v1.yml
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

44 changes: 44 additions & 0 deletions model/cubes/timeseries_events_by_artifact_v0.yml
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

29 changes: 29 additions & 0 deletions model/views/example_view.yml
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
Loading

0 comments on commit a9414fe

Please sign in to comment.