Skip to content

Commit bbc9b31

Browse files
committed
Rename model class name.
1 parent 7981cd3 commit bbc9b31

File tree

13 files changed

+49
-49
lines changed

13 files changed

+49
-49
lines changed

src/Serilog.Ui.Core/AggregateDataProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public AggregateDataProvider(IEnumerable<IDataProvider> dataProviders)
6868
=> SelectedDataProvider.FetchDataAsync(queryParams, cancellationToken);
6969

7070
/// <inheritdoc />
71-
public Task<DashboardModel> FetchDashboardAsync(CancellationToken cancellationToken = default)
71+
public Task<LogStatisticModel> FetchDashboardAsync(CancellationToken cancellationToken = default)
7272
=> SelectedDataProvider.FetchDashboardAsync(cancellationToken);
7373

7474
/// <summary>

src/Serilog.Ui.Core/IDataProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ public interface IDataProvider
2424
/// <summary>
2525
/// Fetches dashboard statistics asynchronous.
2626
/// </summary>
27-
Task<DashboardModel> FetchDashboardAsync(CancellationToken cancellationToken = default);
27+
Task<LogStatisticModel> FetchDashboardAsync(CancellationToken cancellationToken = default);
2828
}

src/Serilog.Ui.Core/Models/LogStatisticModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace Serilog.Ui.Core.Models;
55
/// <summary>
66
/// Represents dashboard statistics for log data visualization.
77
/// </summary>
8-
public class DashboardModel
8+
public class LogStatisticModel
99
{
1010
/// <summary>
1111
/// Gets or sets the total count of logs.

src/Serilog.Ui.ElasticSearchProvider/ElasticSearchDbDataProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public class ElasticSearchDbDataProvider(IElasticClient client, ElasticSearchDbO
2727
public Task<(IEnumerable<LogModel>, int)> FetchDataAsync(FetchLogsQuery queryParams,
2828
CancellationToken cancellationToken = default) => GetLogsAsync(queryParams, cancellationToken);
2929

30-
public Task<DashboardModel> FetchDashboardAsync(CancellationToken cancellationToken = default) =>
30+
public Task<LogStatisticModel> FetchDashboardAsync(CancellationToken cancellationToken = default) =>
3131
throw new NotImplementedException();
3232

3333
public string Name => _options.ProviderName;

src/Serilog.Ui.MongoDbProvider/MongoDbDataProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public MongoDbDataProvider(IMongoClient client, MongoDbOptions options)
3838
return (logsTask, logCountTask);
3939
}
4040

41-
public Task<DashboardModel> FetchDashboardAsync(CancellationToken cancellationToken = default) =>
41+
public Task<LogStatisticModel> FetchDashboardAsync(CancellationToken cancellationToken = default) =>
4242
throw new NotImplementedException();
4343

4444
public string Name => _options.ProviderName;

src/Serilog.Ui.MsSqlServerProvider/SqlServerDataProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public class SqlServerDataProvider<T>(SqlServerDbOptions options, SqlServerQuery
3838
return (await logsTask, await logCountTask);
3939
}
4040

41-
public Task<DashboardModel> FetchDashboardAsync(CancellationToken cancellationToken = default) =>
41+
public Task<LogStatisticModel> FetchDashboardAsync(CancellationToken cancellationToken = default) =>
4242
throw new NotImplementedException();
4343

4444
private async Task<IEnumerable<LogModel>> GetLogsAsync(FetchLogsQuery queryParams)

src/Serilog.Ui.MySqlProvider/Shared/DataProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public abstract class DataProvider<T>(MySqlDbOptions options, MySqlQueryBuilder<
2828
return (await logsTask, await logCountTask);
2929
}
3030

31-
public Task<DashboardModel> FetchDashboardAsync(CancellationToken cancellationToken = default) =>
31+
public Task<LogStatisticModel> FetchDashboardAsync(CancellationToken cancellationToken = default) =>
3232
throw new NotImplementedException();
3333

3434
private async Task<IEnumerable<LogModel>> GetLogsAsync(FetchLogsQuery queryParams)

src/Serilog.Ui.PostgreSqlProvider/PostgresDataProvider.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public class PostgresDataProvider<T>(PostgreSqlDbOptions options, PostgresQueryB
3939
}
4040

4141
/// <inheritdoc />
42-
public async Task<DashboardModel> FetchDashboardAsync(CancellationToken cancellationToken = default)
42+
public async Task<LogStatisticModel> FetchDashboardAsync(CancellationToken cancellationToken = default)
4343
{
4444
DateTime today = DateTime.Today;
4545
DateTime tomorrow = today.AddDays(1);
@@ -72,7 +72,7 @@ public async Task<DashboardModel> FetchDashboardAsync(CancellationToken cancella
7272
int todayErrorLogs = await connection.QueryFirstOrDefaultAsync<int>(todayErrorQuery,
7373
new { ErrorLevel = LogLevelConverter.GetLevelValue("Error"), StartDate = today, EndDate = tomorrow });
7474

75-
DashboardModel model = new()
75+
LogStatisticModel model = new()
7676
{
7777
TotalLogs = totalLogs,
7878
LogsByLevel = logsByLevel,

src/Serilog.Ui.RavenDbProvider/RavenDbDataProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public class RavenDbDataProvider(IDocumentStore documentStore, RavenDbOptions op
3333
return (await logsTask, await logCountTask);
3434
}
3535

36-
public Task<DashboardModel> FetchDashboardAsync(CancellationToken cancellationToken = default) =>
36+
public Task<LogStatisticModel> FetchDashboardAsync(CancellationToken cancellationToken = default) =>
3737
throw new NotImplementedException();
3838

3939
private async Task<IEnumerable<LogModel>> GetLogsAsync(FetchLogsQuery queryParams,

src/Serilog.Ui.SqliteDataProvider/SqliteDataProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public class SqliteDataProvider(SqliteDbOptions options, SqliteQueryBuilder quer
3030
return (await logsTask, await logCountTask);
3131
}
3232

33-
public Task<DashboardModel> FetchDashboardAsync(CancellationToken cancellationToken = default) =>
33+
public Task<LogStatisticModel> FetchDashboardAsync(CancellationToken cancellationToken = default) =>
3434
throw new NotImplementedException();
3535

3636
public string Name => _options.GetProviderName(SqliteProviderName);

0 commit comments

Comments
 (0)