Skip to content

Commit

Permalink
Merge remote-tracking branch 'remotes/origin/main' into data-source/m…
Browse files Browse the repository at this point in the history
…ysql
  • Loading branch information
Tan Phat VO authored and Tan Phat VO committed Dec 12, 2024
2 parents 8c12d23 + ea15491 commit a632870
Show file tree
Hide file tree
Showing 34 changed files with 934 additions and 208 deletions.
44 changes: 44 additions & 0 deletions e2e/Sandbox/DashboardCreators/AmazonAthenaDashboard.cs
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;
}
}
}
19 changes: 19 additions & 0 deletions e2e/Sandbox/DashboardCreators/AmazonRedshiftDashboard.cs
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();
}
}
}
19 changes: 19 additions & 0 deletions e2e/Sandbox/DashboardCreators/AmazonS3Dashboard.cs
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();
}
}
}
19 changes: 19 additions & 0 deletions e2e/Sandbox/DashboardCreators/GoogleAnalytic4Dashboard.cs
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();
}
}
}
19 changes: 19 additions & 0 deletions e2e/Sandbox/DashboardCreators/GoogleBigQueryDashboard.cs
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();
}
}
}
19 changes: 19 additions & 0 deletions e2e/Sandbox/DashboardCreators/GoogleDriveDashboard.cs
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();
}
}
}
19 changes: 19 additions & 0 deletions e2e/Sandbox/DashboardCreators/GoogleSheetDashboard.cs
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();
}
}
}
19 changes: 19 additions & 0 deletions e2e/Sandbox/DashboardCreators/HttpAnalysisDashboard.cs
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 e2e/Sandbox/DashboardCreators/MSAnalysisServiceDashboard.cs
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 e2e/Sandbox/DashboardCreators/MSAzureAnalysisServiceDashboard.cs
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();
}
}
}
20 changes: 20 additions & 0 deletions e2e/Sandbox/DashboardCreators/MSAzureSqlDashboard.cs
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 e2e/Sandbox/DashboardCreators/MSAzureSqlServerDSDashboard.cs
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;
}
}
}
19 changes: 19 additions & 0 deletions e2e/Sandbox/DashboardCreators/MongoDashboard.cs
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();
}
}
}
19 changes: 19 additions & 0 deletions e2e/Sandbox/DashboardCreators/MySqlDashboard.cs
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();
}
}
}
19 changes: 19 additions & 0 deletions e2e/Sandbox/DashboardCreators/ODataDashboard.cs
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();
}
}
}
19 changes: 19 additions & 0 deletions e2e/Sandbox/DashboardCreators/OracleDashboard.cs
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();
}
}
}
Loading

0 comments on commit a632870

Please sign in to comment.