MeterOptions
The options for creating a Meter.
using System.Collections.Generic;
using System.Runtime.CompilerServices;
namespace System.Diagnostics.Metrics
{
[System.Runtime.CompilerServices.NullableContext(2)]
[System.Runtime.CompilerServices.Nullable(0)]
public class MeterOptions
{
private string _name;
[System.Runtime.CompilerServices.Nullable(1)]
public string Name {
[System.Runtime.CompilerServices.NullableContext(1)]
get {
return _name;
}
[System.Runtime.CompilerServices.NullableContext(1)]
set {
if (value == null)
throw new ArgumentNullException("value");
_name = value;
}
}
public string Version { get; set; }
[System.Runtime.CompilerServices.Nullable(new byte[] {
2,
0,
1,
2
})]
public IEnumerable<KeyValuePair<string, object>> Tags {
[return: System.Runtime.CompilerServices.Nullable(new byte[] {
2,
0,
1,
2
})]
get;
[param: System.Runtime.CompilerServices.Nullable(new byte[] {
2,
0,
1,
2
})]
set;
}
public object Scope { get; set; }
[System.Runtime.CompilerServices.NullableContext(1)]
public MeterOptions(string name)
{
Name = name;
}
}
}