-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(dashboard): Dashboard models update (#1932)
* feat(dashboard): Dashboard models update * Keep chartId/dashboardId fields in the URN definitions and add fields for chartURL/dashboardURL into info aspects * Rebase and address some comments
- Loading branch information
Kerem Sahin
authored
Nov 12, 2020
1 parent
32e18a1
commit 733893f
Showing
14 changed files
with
154 additions
and
39 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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
namespace com.linkedin.dashboard | ||
|
||
import com.linkedin.chart.ChartInfo | ||
import com.linkedin.chart.ChartQuery | ||
import com.linkedin.common.Ownership | ||
import com.linkedin.common.Status | ||
|
||
/** | ||
* Metadata for a chart | ||
*/ | ||
record Chart includes ChartKey { | ||
|
||
/** | ||
* Basic chart information | ||
*/ | ||
info: optional ChartInfo | ||
|
||
/** | ||
* Information for the chart query which is used for getting data of the chart | ||
*/ | ||
query: optional ChartQuery | ||
|
||
/** | ||
* Ownership information for the chart | ||
*/ | ||
ownership: optional Ownership | ||
|
||
/** | ||
* Status information for the chart such as removed or not | ||
*/ | ||
status: optional Status | ||
} |
25 changes: 25 additions & 0 deletions
25
gms/api/src/main/pegasus/com/linkedin/dashboard/ChartKey.pdl
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,25 @@ | ||
namespace com.linkedin.dashboard | ||
|
||
|
||
/** | ||
* Key for chart resource | ||
*/ | ||
record ChartKey { | ||
/** | ||
* The name of the dashboard tool such as looker, redash etc. | ||
*/ | ||
@validate.strlen = { | ||
"max" : 20, | ||
"min" : 1 | ||
} | ||
tool: string | ||
|
||
/** | ||
* Unique id for the chart. This id should be globally unique for a dashboarding tool even when there are multiple deployments of it. As an example, chart URL could be used here for Looker such as 'looker.linkedin.com/looks/1234' | ||
*/ | ||
@validate.strlen = { | ||
"max" : 200, | ||
"min" : 1 | ||
} | ||
chartId: string | ||
} |
25 changes: 25 additions & 0 deletions
25
gms/api/src/main/pegasus/com/linkedin/dashboard/Dashboard.pdl
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,25 @@ | ||
namespace com.linkedin.dashboard | ||
|
||
import com.linkedin.common.Ownership | ||
import com.linkedin.common.Status | ||
|
||
/** | ||
* Metadata for a dashboard | ||
*/ | ||
record Dashboard includes DashboardKey { | ||
|
||
/** | ||
* Basic dashboard information | ||
*/ | ||
info: optional DashboardInfo | ||
|
||
/** | ||
* Ownership information for the dashboard | ||
*/ | ||
ownership: optional Ownership | ||
|
||
/** | ||
* Status information for the dashboard such as removed or not | ||
*/ | ||
status: optional Status | ||
} |
25 changes: 25 additions & 0 deletions
25
gms/api/src/main/pegasus/com/linkedin/dashboard/DashboardKey.pdl
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,25 @@ | ||
namespace com.linkedin.dashboard | ||
|
||
|
||
/** | ||
* Key for dashboard resource | ||
*/ | ||
record DashboardKey { | ||
/** | ||
* The name of the dashboard tool such as looker, redash etc. | ||
*/ | ||
@validate.strlen = { | ||
"max" : 20, | ||
"min" : 1 | ||
} | ||
tool: string | ||
|
||
/** | ||
* Unique id for the dashboard. This id should be globally unique for a dashboarding tool even when there are multiple deployments of it. As an example, dashboard URL could be used here for Looker such as 'looker.linkedin.com/dashboards/1234' | ||
*/ | ||
@validate.strlen = { | ||
"max" : 200, | ||
"min" : 1 | ||
} | ||
dashboardId: string | ||
} |
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
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
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
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
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
14 changes: 14 additions & 0 deletions
14
metadata-models/src/main/pegasus/com/linkedin/chart/ChartQueryType.pdl
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,14 @@ | ||
namespace com.linkedin.chart | ||
|
||
enum ChartQueryType { | ||
|
||
/** | ||
* LookML queries | ||
*/ | ||
LOOKML | ||
|
||
/** | ||
* SQL type queries | ||
*/ | ||
SQL | ||
} |
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
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
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
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