-
Notifications
You must be signed in to change notification settings - Fork 90
/
DiagnosticsConfiguration.cs
50 lines (42 loc) · 1.75 KB
/
DiagnosticsConfiguration.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
namespace Microsoft.Psi.Diagnostics
{
using System;
/// <summary>
/// Class that represents diagnostics collector configuration information.
/// </summary>
public class DiagnosticsConfiguration
{
/// <summary>
/// Default configuration.
/// </summary>
public static readonly DiagnosticsConfiguration Default = new DiagnosticsConfiguration();
/// <summary>
/// Initializes a new instance of the <see cref="DiagnosticsConfiguration"/> class.
/// </summary>
public DiagnosticsConfiguration()
{
}
/// <summary>
/// Gets or sets sampling interval.
/// </summary>
public TimeSpan SamplingInterval { get; set; } = TimeSpan.FromMilliseconds(100);
/// <summary>
/// Gets or sets a value indicating whether to track message sizes (notable performance penalty).
/// </summary>
public bool TrackMessageSize { get; set; } = false;
/// <summary>
/// Gets or sets the time span over which to average latencies, processing time, message sizes, ...
/// </summary>
public TimeSpan AveragingTimeSpan { get; set; } = TimeSpan.FromSeconds(1);
/// <summary>
/// Gets or sets a value indicating whether to include stopped pipelines.
/// </summary>
public bool IncludeStoppedPipelines { get; set; } = false;
/// <summary>
/// Gets or sets a value indicating whether to include stopped pipeline elements.
/// </summary>
public bool IncludeStoppedPipelineElements { get; set; } = false;
}
}