File tree Expand file tree Collapse file tree 4 files changed +17
-8
lines changed
Expand file tree Collapse file tree 4 files changed +17
-8
lines changed Original file line number Diff line number Diff line change 1313// limitations under the License.
1414
1515using System ;
16- using System . Collections . Generic ;
1716
1817namespace 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>
Original file line number Diff line number Diff line change 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"/>.
Original file line number Diff line number Diff 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>
Original file line number Diff line number Diff line change 33using System . Threading ;
44using System . Threading . Tasks ;
55using Seq . Api . Model ;
6- using Seq . Api . Model . Indexes ;
76using Seq . Api . Model . Indexing ;
87
98namespace Seq . Api . ResourceGroups
You can’t perform that action at this time.
0 commit comments