-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'remotes/origin/main' into data-source/m…
…ysql
- Loading branch information
Showing
34 changed files
with
934 additions
and
208 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,44 @@ | ||
using Reveal.Sdk.Dom; | ||
using Reveal.Sdk.Dom.Data; | ||
using Reveal.Sdk.Dom.Visualizations; | ||
using System.Collections.Generic; | ||
|
||
namespace Sandbox.DashboardFactories | ||
{ | ||
internal class AmazonAthenaDashboard : IDashboardCreator | ||
{ | ||
public string Name => "Amazon Athena Data Source"; | ||
|
||
public RdashDocument CreateDashboard() | ||
{ | ||
var document = new RdashDocument("My Dashboard"); | ||
|
||
var athenaDS = new AmazonAthenaDataSource() | ||
{ | ||
Id = "athenaDSId", | ||
Region = "us-east-1", | ||
Title = "Athena", | ||
Database = "mydatabase", | ||
OutputLocation = "s3://infragistics-test-bucket1/Temp", | ||
}; | ||
|
||
var athenaDSItem = new AmazonAthenaDataSourceItem("Athena DSItem", athenaDS) | ||
{ | ||
Id = "athenaDSItemId", | ||
Subtitle = "Amazon Athena DS Item", | ||
Table = "northwindinvoicesparquet", | ||
Fields = new List<IField> | ||
{ | ||
new TextField("country"), | ||
new TextField("customerid"), | ||
new TextField("customername") | ||
} | ||
}; | ||
|
||
document.Visualizations.Add(new GridVisualization("Customer and Countries", athenaDSItem) | ||
.SetColumns("customerid", "customername", "country")); | ||
|
||
return document; | ||
} | ||
} | ||
} |
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,19 @@ | ||
using Reveal.Sdk.Dom; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Sandbox.DashboardFactories | ||
{ | ||
internal class AmazonRedshiftDashboard : IDashboardCreator | ||
{ | ||
public string Name => "Amazon Redshift Data Source"; | ||
|
||
public RdashDocument CreateDashboard() | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} | ||
} |
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,19 @@ | ||
using Reveal.Sdk.Dom; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Sandbox.DashboardFactories | ||
{ | ||
internal class AmazonS3Dashboard : IDashboardCreator | ||
{ | ||
public string Name => "Amazon S3 Data Source"; | ||
|
||
public RdashDocument CreateDashboard() | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} | ||
} |
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,19 @@ | ||
using Reveal.Sdk.Dom; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Sandbox.DashboardFactories | ||
{ | ||
internal class GoogleAnalytic4Dashboard : IDashboardCreator | ||
{ | ||
public string Name => "Google Analytic4 Data Source"; | ||
|
||
public RdashDocument CreateDashboard() | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} | ||
} |
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,19 @@ | ||
using Reveal.Sdk.Dom; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Sandbox.DashboardFactories | ||
{ | ||
internal class GoogleBigQueryDashboard : IDashboardCreator | ||
{ | ||
public string Name => "Google Big Query Data Source"; | ||
|
||
public RdashDocument CreateDashboard() | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} | ||
} |
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,19 @@ | ||
using Reveal.Sdk.Dom; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Sandbox.DashboardFactories | ||
{ | ||
internal class GoogleDriveDashboard : IDashboardCreator | ||
{ | ||
public string Name => "Google Drive Data Source"; | ||
|
||
public RdashDocument CreateDashboard() | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} | ||
} |
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,19 @@ | ||
using Reveal.Sdk.Dom; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Sandbox.DashboardFactories | ||
{ | ||
internal class GoogleSheetDashboard : IDashboardCreator | ||
{ | ||
public string Name => "Google Sheet Data Source"; | ||
|
||
public RdashDocument CreateDashboard() | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} | ||
} |
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,19 @@ | ||
using Reveal.Sdk.Dom; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Sandbox.DashboardFactories | ||
{ | ||
internal class HttpAnalysisDashboard : IDashboardCreator | ||
{ | ||
public string Name => "Http Analysis Data Source"; | ||
|
||
public RdashDocument CreateDashboard() | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
e2e/Sandbox/DashboardCreators/MSAnalysisServiceDashboard.cs
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,19 @@ | ||
using Reveal.Sdk.Dom; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Sandbox.DashboardFactories | ||
{ | ||
internal class MSAnalysisServiceDashboard : IDashboardCreator | ||
{ | ||
public string Name => "MS Analysis Service Data Source"; | ||
|
||
public RdashDocument CreateDashboard() | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
e2e/Sandbox/DashboardCreators/MSAzureAnalysisServiceDashboard.cs
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,19 @@ | ||
using Reveal.Sdk.Dom; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Sandbox.DashboardFactories | ||
{ | ||
internal class MSAzureAnalysisServiceDashboard : IDashboardCreator | ||
{ | ||
public string Name => "MS Azure Analysis Service Data Source"; | ||
|
||
public RdashDocument CreateDashboard() | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} | ||
} |
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,20 @@ | ||
using Reveal.Sdk.Dom; | ||
using Sandbox.DashboardFactories; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Sandbox.DashboardFactories | ||
{ | ||
internal class MSAzureSqlDashboard : IDashboardCreator | ||
{ | ||
public string Name => "MS Azure Sql Data Source"; | ||
|
||
public RdashDocument CreateDashboard() | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} | ||
} |
48 changes: 48 additions & 0 deletions
48
e2e/Sandbox/DashboardCreators/MSAzureSqlServerDSDashboard.cs
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,48 @@ | ||
using Reveal.Sdk.Dom; | ||
using Reveal.Sdk.Dom.Data; | ||
using Reveal.Sdk.Dom.Visualizations; | ||
using System.Collections.Generic; | ||
|
||
namespace Sandbox.DashboardFactories | ||
{ | ||
internal class MSAzureSqlServerDSDashboard : IDashboardCreator | ||
{ | ||
public string Name => "MS Azure Sql Server"; | ||
|
||
public RdashDocument CreateDashboard() | ||
{ | ||
var document = new RdashDocument("MS Azure Sql Dashboard"); | ||
|
||
var msAzureSqlDS = new MicrosoftAzureSqlServerDataSource() | ||
{ | ||
Id = "MSAzureSqlId", | ||
Title = "Microsoft Azure Sql Server Data Source", | ||
Subtitle = "MS Azure Sql Server DS Subtitle", | ||
Database = "reveal", | ||
DefaultRefreshRate = "180", | ||
Encrypt = false, | ||
Host = "revealtesting.database.windows.net", | ||
Port = 1433, | ||
TrustServerCertificate = false | ||
}; | ||
|
||
var msAzureSqlDSItem = new MicrosoftAzureSqlServerDataSourceItem("Microsoft Azure Sql Data Source Item", msAzureSqlDS) | ||
{ | ||
Id = "MSAzureSqlItemId", | ||
Title = "Microsoft Azure Sql Server Data Source Item", | ||
Subtitle = "MS Azure Sql Server DSI Subtitle", | ||
Table = "Customers", | ||
Fields = new List<IField>() | ||
{ | ||
new TextField("City"), | ||
new TextField("CustomerID"), | ||
} | ||
}; | ||
|
||
document.Visualizations.Add(new GridVisualization("Customers in France", msAzureSqlDSItem) | ||
.SetColumns("CustomerID", "City")); | ||
|
||
return document; | ||
} | ||
} | ||
} |
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,19 @@ | ||
using Reveal.Sdk.Dom; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Sandbox.DashboardFactories | ||
{ | ||
internal class MongoDashboard : IDashboardCreator | ||
{ | ||
public string Name => "Mongo Data Source"; | ||
|
||
public RdashDocument CreateDashboard() | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} | ||
} |
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,19 @@ | ||
using Reveal.Sdk.Dom; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Sandbox.DashboardFactories | ||
{ | ||
internal class MySqlDashboard : IDashboardCreator | ||
{ | ||
public string Name => "MySql data source"; | ||
|
||
public RdashDocument CreateDashboard() | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} | ||
} |
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,19 @@ | ||
using Reveal.Sdk.Dom; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Sandbox.DashboardFactories | ||
{ | ||
internal class ODataDashboard : IDashboardCreator | ||
{ | ||
public string Name => "OData Data Source"; | ||
|
||
public RdashDocument CreateDashboard() | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} | ||
} |
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,19 @@ | ||
using Reveal.Sdk.Dom; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Sandbox.DashboardFactories | ||
{ | ||
internal class OracleDashboard : IDashboardCreator | ||
{ | ||
public string Name => "Oracle Data Source"; | ||
|
||
public RdashDocument CreateDashboard() | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} | ||
} |
Oops, something went wrong.