Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 1 addition & 17 deletions src/Seq.Api/Model/Data/QueryExecutionStatisticsPart.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,9 @@ namespace Seq.Api.Model.Data
/// </summary>
public class QueryExecutionStatisticsPart
{
/// <summary>
/// The number of events inspected in the course of computing the query result. This will
/// not include events that could be skipped based on index information or text pre-filtering.
/// </summary>
public ulong ScannedEventCount { get; set; }

/// <summary>
/// The number of events that contributed to the query result.
/// </summary>
public ulong MatchingEventCount { get; set; }

/// <summary>
/// Whether the query needed to search disk-backed storage.
/// </summary>
public bool UncachedSegmentsScanned { get; set; }

/// <summary>
/// The server-side elapsed time taken to compute the query result.
/// </summary>
public double ElapsedMilliseconds { get; set; }
}
}
}
32 changes: 1 addition & 31 deletions src/Seq.Api/Model/Diagnostics/ServerMetricsEntity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,26 +28,6 @@ public class ServerMetricsEntity : Entity
public ServerMetricsEntity()
{
}

/// <summary>
/// The start time in UTC of the events in the memory cache.
/// </summary>
public DateTime? EventStoreCacheStart { get; set; }

/// <summary>
/// The end time in UTC of the events in the memory cache.
/// </summary>
public DateTime? EventStoreCacheEnd { get; set; }

/// <summary>
/// The number of days of events able to fit in the memory cache.
/// </summary>
public double EventStoreDaysCached { get; set; }

/// <summary>
/// The number of events able to fit in the memory cache.
/// </summary>
public int EventStoreEventsCached { get; set; }

/// <summary>
/// Bytes of free space remaining on the disk used for event storage.
Expand Down Expand Up @@ -100,18 +80,8 @@ public ServerMetricsEntity()
public double SystemMemoryUtilization { get; set; }

/// <summary>
/// The number of SQL-style queries executed in the past minute.
/// The number of queries and searches executed in the past minute.
/// </summary>
public int QueriesPerMinute { get; set; }

/// <summary>
/// The number of time slices from SQL-style queries that could be read from cache in the past minute.
/// </summary>
public int QueryCacheTimeSliceHitsPerMinute { get; set; }

/// <summary>
/// The number of cached SQL query time slices invalidated in the past minute.
/// </summary>
public int QueryCacheInvalidationsPerMinute { get; set; }
}
}
11 changes: 0 additions & 11 deletions src/Seq.Api/Model/Shared/StatisticsPart.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,6 @@ public class StatisticsPart
/// </summary>
public TimeSpan Elapsed { get; set; }

/// <summary>
/// The number of events that were scanned in the search (and were not
/// able to be excluded based on index information or pre-filtering).
/// </summary>
public ulong ScannedEventCount { get; set; }

/// <summary>
/// The id of the last event inspected in the search.
/// </summary>
Expand All @@ -46,10 +40,5 @@ public class StatisticsPart
/// Status of the result set.
/// </summary>
public ResultSetStatus Status { get; set; }

/// <summary>
/// Whether it was necessary to read from disk in processing this request.
/// </summary>
public bool UncachedSegmentsScanned { get; set; }
}
}
2 changes: 1 addition & 1 deletion src/Seq.Api/Model/Users/SearchHistoryItemPart.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ public class SearchHistoryItemPart
/// </summary>
public SearchHistoryItemAction Action { get; set; }
}
}
}
22 changes: 0 additions & 22 deletions src/Seq.Api/ResourceGroups/AppsResourceGroup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,6 @@ public async Task<AppEntity> TemplateAsync(CancellationToken cancellationToken =
return await GroupGetAsync<AppEntity>("Template", cancellationToken: cancellationToken).ConfigureAwait(false);
}

/// <summary>
/// Add a new app.
/// </summary>
/// <param name="entity">The app to add.</param>
/// <param name="cancellationToken">A <see cref="CancellationToken"/> allowing the operation to be canceled.</param>
/// <returns>The app, with server-allocated properties such as <see cref="Entity.Id"/> initialized.</returns>
public async Task<AppEntity> AddAsync(AppEntity entity, CancellationToken cancellationToken = default)
{
return await GroupCreateAsync<AppEntity, AppEntity>(entity, cancellationToken: cancellationToken).ConfigureAwait(false);
}

/// <summary>
/// Remove an existing app.
/// </summary>
Expand All @@ -85,17 +74,6 @@ public async Task RemoveAsync(AppEntity entity, CancellationToken cancellationTo
await Client.DeleteAsync(entity, "Self", entity, cancellationToken: cancellationToken).ConfigureAwait(false);
}

/// <summary>
/// Update an existing app.
/// </summary>
/// <param name="entity">The app to update.</param>
/// <param name="cancellationToken">A <see cref="CancellationToken"/> allowing the operation to be canceled.</param>
/// <returns>A task indicating completion.</returns>
public async Task UpdateAsync(AppEntity entity, CancellationToken cancellationToken = default)
{
await Client.PutAsync(entity, "Self", entity, cancellationToken: cancellationToken).ConfigureAwait(false);
}

/// <summary>
/// Create a new app by installing a NuGet package.
/// </summary>
Expand Down
12 changes: 7 additions & 5 deletions src/Seq.Api/Seq.Api.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Description>Client library for the Seq HTTP API.</Description>
<VersionPrefix>2022.1.1</VersionPrefix>
<VersionPrefix>2023.1.0</VersionPrefix>
<Authors>Datalust;Contributors</Authors>
<TargetFrameworks>netstandard2.0;net6.0</TargetFrameworks>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
Expand All @@ -15,13 +15,15 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
<PackageReference Include="Tavis.UriTemplates" Version="1.1.1" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.2" />
<PackageReference Include="Tavis.UriTemplates" Version="2.0.0" />
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0'">
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="6.0.0" />
<PackageReference Include="Nullable" Version="1.3.0" PrivateAssets="all" />
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="7.0.0" />
<PackageReference Include="Nullable" Version="1.3.1" PrivateAssets="all">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
Expand Down