Skip to content

Commit 4c650b2

Browse files
authored
Merge pull request #138 from nblumhardt/final-2024.3
Upstream changes from Seq 2024.3
2 parents 7f7b882 + 017e078 commit 4c650b2

File tree

4 files changed

+17
-8
lines changed

4 files changed

+17
-8
lines changed

src/Seq.Api/Model/Diagnostics/ServerMetricsEntity.cs renamed to src/Seq.Api/Model/Diagnostics/ServerMetricsPart.cs

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,19 @@
1313
// limitations under the License.
1414

1515
using System;
16-
using System.Collections.Generic;
1716

1817
namespace Seq.Api.Model.Diagnostics
1918
{
2019
/// <summary>
2120
/// Metrics describing the state and performance of the Seq server.
2221
/// </summary>
23-
public class ServerMetricsEntity : Entity
22+
/// <remarks>This information is not preserved across server restarts or fail-over.</remarks>
23+
public class ServerMetricsPart
2424
{
2525
/// <summary>
26-
/// Construct a <see cref="ServerMetricsEntity"/>.
26+
/// Construct a <see cref="ServerMetricsPart"/>.
2727
/// </summary>
28-
public ServerMetricsEntity()
28+
public ServerMetricsPart()
2929
{
3030
}
3131

@@ -34,6 +34,16 @@ public ServerMetricsEntity()
3434
/// </summary>
3535
public long? EventStoreDiskRemainingBytes { get; set; }
3636

37+
/// <summary>
38+
/// The total time spent indexing the event store in the last 24 hours.
39+
/// </summary>
40+
public TimeSpan EventStoreIndexingTimeLastDay { get; set; }
41+
42+
/// <summary>
43+
/// The total time spent writing events to disk in the last minute.
44+
/// </summary>
45+
public TimeSpan EventStoreWriteTimeLastMinute { get; set; }
46+
3747
/// <summary>
3848
/// The number of events that arrived at the ingestion endpoint in the past minute.
3949
/// </summary>

src/Seq.Api/Model/Indexes/IndexEntity.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace Seq.Api.Model.Indexes
1+
namespace Seq.Api.Model.Indexes
22
{
33
/// <summary>
44
/// An index over the event stream. May be one of several types discriminated by <see cref="IndexedEntityType"/>.

src/Seq.Api/ResourceGroups/DiagnosticsResourceGroup.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ internal DiagnosticsResourceGroup(ILoadResourceGroup connection)
3838
/// </summary>
3939
/// <param name="cancellationToken">A <see cref="CancellationToken"/> allowing the operation to be canceled.</param>
4040
/// <returns>Current server metrics.</returns>
41-
public async Task<ServerMetricsEntity> GetServerMetricsAsync(CancellationToken cancellationToken = default)
41+
public async Task<ServerMetricsPart> GetServerMetricsAsync(CancellationToken cancellationToken = default)
4242
{
43-
return await GroupGetAsync<ServerMetricsEntity>("ServerMetrics", cancellationToken: cancellationToken).ConfigureAwait(false);
43+
return await GroupGetAsync<ServerMetricsPart>("ServerMetrics", cancellationToken: cancellationToken).ConfigureAwait(false);
4444
}
4545

4646
/// <summary>

src/Seq.Api/ResourceGroups/ExpressionIndexesResourceGroup.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
using System.Threading;
44
using System.Threading.Tasks;
55
using Seq.Api.Model;
6-
using Seq.Api.Model.Indexes;
76
using Seq.Api.Model.Indexing;
87

98
namespace Seq.Api.ResourceGroups

0 commit comments

Comments
 (0)