File: Publisher\IMetricsPublisher.cs
Web Access
Project: src\src\vstest\src\vstest.console\vstest.console.csproj (vstest.console)
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System;
using System.Collections.Generic;

namespace Microsoft.VisualStudio.TestPlatform.CommandLine.Publisher;

/// <summary>
/// Publish the metrics
/// </summary>
public interface IMetricsPublisher : IDisposable
{
    /// <summary>
    /// Publish the Metrics
    /// </summary>
    /// <param name="eventName">The event Name</param>
    /// <param name="metrics">Key/Value pair of Properties and Values</param>
    void PublishMetrics(string eventName, IDictionary<string, object?> metrics);
}