diff --git a/src/Promitor.Core.Scraping/ScrapeResult.cs b/src/Promitor.Core.Scraping/ScrapeResult.cs
index d556e799e..8cf0662fa 100644
--- a/src/Promitor.Core.Scraping/ScrapeResult.cs
+++ b/src/Promitor.Core.Scraping/ScrapeResult.cs
@@ -61,7 +61,7 @@ public ScrapeResult(string subscriptionId, string resourceGroupName, string inst
/// Name of the resource that is being scraped
/// Uri of the resource that was scraped
/// Value of the metric that was found
- public ScrapeResult(string subscriptionId, string resourceGroupName, string instanceName, string resourceUri, double? metricValue) : this(subscriptionId, resourceGroupName, instanceName,resourceUri,metricValue, new Dictionary())
+ public ScrapeResult(string subscriptionId, string resourceGroupName, string instanceName, string resourceUri, double? metricValue) : this(subscriptionId, resourceGroupName, instanceName, resourceUri, metricValue, new Dictionary())
{
}
@@ -90,6 +90,14 @@ public ScrapeResult(string subscriptionId, string resourceGroupName, string inst
///
public double? MetricValue { get; }
+ ///
+ /// Labels that are related to the metric
+ ///
public Dictionary Labels { get; } = new Dictionary();
+
+ public override string ToString()
+ {
+ return MetricValue == null ? "No value found" : MetricValue.ToString();
+ }
}
}
\ No newline at end of file