mirror of
https://github.com/NecroticBamboo/DeepTrace.git
synced 2025-12-21 11:21:51 +00:00
30 lines
662 B
C#
30 lines
662 B
C#
namespace DeepTrace.Data;
|
|
|
|
public class DataSourceQuery
|
|
{
|
|
|
|
public DataSourceQuery(string query, string color)
|
|
{
|
|
Query = query;
|
|
Color = color;
|
|
}
|
|
|
|
public string Query { get; set; }
|
|
public MudBlazor.Utilities.MudColor Color { get; set; }
|
|
|
|
}
|
|
|
|
public class DataSourceDefinition
|
|
{
|
|
private static int _instanceId;
|
|
public DataSourceDefinition()
|
|
{
|
|
var id = Interlocked.Increment(ref _instanceId);
|
|
Name = $"Dataset #{id}";
|
|
}
|
|
|
|
public string Name { get; set; }
|
|
public List<DataSourceQuery> Queries { get; set; } = new();
|
|
public string Description { get; set; } = string.Empty;
|
|
}
|