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 13
13
// limitations under the License.
14
14
15
15
using System ;
16
- using System . Collections . Generic ;
17
16
18
17
namespace Seq . Api . Model . Diagnostics
19
18
{
20
19
/// <summary>
21
20
/// Metrics describing the state and performance of the Seq server.
22
21
/// </summary>
23
- public class ServerMetricsEntity : Entity
22
+ /// <remarks>This information is not preserved across server restarts or fail-over.</remarks>
23
+ public class ServerMetricsPart
24
24
{
25
25
/// <summary>
26
- /// Construct a <see cref="ServerMetricsEntity "/>.
26
+ /// Construct a <see cref="ServerMetricsPart "/>.
27
27
/// </summary>
28
- public ServerMetricsEntity ( )
28
+ public ServerMetricsPart ( )
29
29
{
30
30
}
31
31
@@ -34,6 +34,16 @@ public ServerMetricsEntity()
34
34
/// </summary>
35
35
public long ? EventStoreDiskRemainingBytes { get ; set ; }
36
36
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
+
37
47
/// <summary>
38
48
/// The number of events that arrived at the ingestion endpoint in the past minute.
39
49
/// </summary>
Original file line number Diff line number Diff line change 1
- namespace Seq . Api . Model . Indexes
1
+ namespace Seq . Api . Model . Indexes
2
2
{
3
3
/// <summary>
4
4
/// 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)
38
38
/// </summary>
39
39
/// <param name="cancellationToken">A <see cref="CancellationToken"/> allowing the operation to be canceled.</param>
40
40
/// <returns>Current server metrics.</returns>
41
- public async Task < ServerMetricsEntity > GetServerMetricsAsync ( CancellationToken cancellationToken = default )
41
+ public async Task < ServerMetricsPart > GetServerMetricsAsync ( CancellationToken cancellationToken = default )
42
42
{
43
- return await GroupGetAsync < ServerMetricsEntity > ( "ServerMetrics" , cancellationToken : cancellationToken ) . ConfigureAwait ( false ) ;
43
+ return await GroupGetAsync < ServerMetricsPart > ( "ServerMetrics" , cancellationToken : cancellationToken ) . ConfigureAwait ( false ) ;
44
44
}
45
45
46
46
/// <summary>
Original file line number Diff line number Diff line change 3
3
using System . Threading ;
4
4
using System . Threading . Tasks ;
5
5
using Seq . Api . Model ;
6
- using Seq . Api . Model . Indexes ;
7
6
using Seq . Api . Model . Indexing ;
8
7
9
8
namespace Seq . Api . ResourceGroups
You can’t perform that action at this time.
0 commit comments