This repository was archived by the owner on Mar 26, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathMetricsReportingTextFileOptions.cs
51 lines (45 loc) · 1.87 KB
/
MetricsReportingTextFileOptions.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
51
// <copyright file="MetricsReportingTextFileOptions.cs" company="App Metrics Contributors">
// Copyright (c) App Metrics Contributors. All rights reserved.
// </copyright>
using System;
using App.Metrics.Filters;
using App.Metrics.Formatters;
namespace App.Metrics.Reporting.TextFile
{
/// <summary>
/// Provides programmatic configuration of Text File Reporting in the App Metrics framework.
/// </summary>
public class MetricsReportingTextFileOptions
{
/// <summary>
/// Gets or sets a value indicating whether or not to [append metrics when writing to file].
/// </summary>
/// <value>
/// <c>true</c> if [append metrics]; otherwise, <c>false</c>.
/// </value>
public bool AppendMetricsToTextFile { get; set; }
/// <summary>
/// Gets or sets the <see cref="IFilterMetrics" /> to use for just this reporter.
/// </summary>
/// <value>
/// The <see cref="IFilterMetrics" /> to use for this reporter.
/// </value>
public IFilterMetrics Filter { get; set; }
/// <summary>
/// Gets or sets the <see cref="IMetricsOutputFormatter" /> used to write metrics.
/// </summary>
/// <value>
/// The <see cref="IMetricsOutputFormatter" /> used to write metrics.
/// </value>
public IMetricsOutputFormatter MetricsOutputFormatter { get; set; }
/// <summary>
/// Gets or sets the directory and filename where metrics are written.
/// </summary>
/// <remarks>If not sets writes metrics.txt to the application's running directory.</remarks>
public string OutputPathAndFileName { get; set; }
/// <summary>
/// Gets or sets the interval between flushing metrics.
/// </summary>
public TimeSpan FlushInterval { get; set; }
}
}