2
0
mirror of synced 2025-01-12 09:34:40 +00:00
2023-11-12 10:07:23 +01:00

33 lines
790 B
C#

using KubernetesWorkflow.Types;
namespace MetricsPlugin
{
public interface IMetricsScrapeTarget
{
RunningContainer Container { get; }
string MetricsPortTag { get; }
}
public interface IHasMetricsScrapeTarget
{
IMetricsScrapeTarget MetricsScrapeTarget { get; }
}
public interface IHasManyMetricScrapeTargets
{
IMetricsScrapeTarget[] ScrapeTargets { get; }
}
public class MetricsScrapeTarget : IMetricsScrapeTarget
{
public MetricsScrapeTarget(RunningContainer container, string metricsPortTag)
{
Container = container;
MetricsPortTag = metricsPortTag;
}
public RunningContainer Container { get; }
public string MetricsPortTag { get; }
}
}