2
0
mirror of synced 2025-01-12 17:44:08 +00:00

33 lines
790 B
C#
Raw Normal View History

using KubernetesWorkflow.Types;
2023-09-13 11:25:08 +02:00
namespace MetricsPlugin
{
public interface IMetricsScrapeTarget
{
2023-11-06 15:27:23 +01:00
RunningContainer Container { get; }
string MetricsPortTag { get; }
2023-09-13 11:25:08 +02:00
}
2023-09-19 11:51:59 +02:00
public interface IHasMetricsScrapeTarget
{
IMetricsScrapeTarget MetricsScrapeTarget { get; }
}
public interface IHasManyMetricScrapeTargets
2023-09-13 11:59:21 +02:00
{
IMetricsScrapeTarget[] ScrapeTargets { get; }
}
2023-09-13 11:25:08 +02:00
public class MetricsScrapeTarget : IMetricsScrapeTarget
{
2023-11-06 15:27:23 +01:00
public MetricsScrapeTarget(RunningContainer container, string metricsPortTag)
2023-09-13 11:25:08 +02:00
{
2023-11-06 15:27:23 +01:00
Container = container;
MetricsPortTag = metricsPortTag;
2023-09-13 11:25:08 +02:00
}
2023-11-06 15:27:23 +01:00
public RunningContainer Container { get; }
public string MetricsPortTag { get; }
2023-09-13 11:25:08 +02:00
}
}