Code/Examples/Metrics.cs
// You should create a file in your project to define the metrics you want to record along with their labels

using System.Text.Json.Serialization;

public class SampleMetric : IMetric
{
	[JsonInclude, JsonPropertyName( "__name__" )]
	public string Name { get; } = "sample_metric";
	[JsonInclude, JsonPropertyName( "label1" )]
	public string Label { get; set; }

	public SampleMetric( string label )
	{
		Label = label;
	}

	public override int GetHashCode()
	{
		return HashCode.Combine( Name );
	}
}