public MetricsDeclarationBuilder WithContainerRegistryMetric(string metricName = "promitor-container-registry", string metricDescription = "Description for a metric", string registryName = "promitor-container-registry", string azureMetricName = "Total")
        {
            var azureMetricConfiguration = CreateAzureMetricConfiguration(azureMetricName);
            var metric = new ContainerRegistryMetricDefinitionV1
            {
                Name                     = metricName,
                Description              = metricDescription,
                RegistryName             = registryName,
                AzureMetricConfiguration = azureMetricConfiguration
            };

            _metrics.Add(metric);

            return(this);
        }
        private static void AssertContainerRegistryMetricDefinition(MetricDefinition deserializedContainerRegistryMetricDefinition, ContainerRegistryMetricDefinitionV1 containerRegistryMetricDefinition)
        {
            var deserializedResource = deserializedContainerRegistryMetricDefinition.Resources.Single() as ContainerRegistryResourceDefinition;

            Assert.NotNull(deserializedResource);
            Assert.Equal(containerRegistryMetricDefinition.RegistryName, deserializedResource.RegistryName);
        }