public async Task GetAllMetricFeedbackAsync()
        {
            string endpoint        = MetricsAdvisorUri;
            string subscriptionKey = MetricsAdvisorSubscriptionKey;
            string apiKey          = MetricsAdvisorApiKey;
            var    credential      = new MetricsAdvisorKeyCredential(subscriptionKey, apiKey);

            var client = new MetricsAdvisorClient(new Uri(endpoint), credential);

            string metricId = MetricId;

            var options = new GetAllMetricFeedbackOptions()
            {
                StartTime = DateTimeOffset.Parse("2020-01-01T00:00:00Z"),
                EndTime   = DateTimeOffset.Parse("2020-09-09T00:00:00Z"),
                TimeMode  = FeedbackQueryTimeMode.MetricTimestamp,
                TopCount  = 5
            };

            int feedbackCount = 0;

            await foreach (MetricFeedback feedback in client.GetAllMetricFeedbackAsync(metricId, options))
            {
                Console.WriteLine($"Feedback ID: {feedback.Id}");
                Console.WriteLine($"Metric ID: {feedback.MetricId}");
                Console.WriteLine($"Feedback type: {feedback.Type}");
                Console.WriteLine();

                // Print at most 5 feedback entries.
                if (++feedbackCount >= 5)
                {
                    break;
                }
            }
        }