public IEnumerable <MetricSummary> GetMetricSummary() { var readerFactory = BaseDashboardDataReaderFactory.GetReaderFactory(SolutionName.CustomerCareIntelligence); var build = readerFactory.GetReader(UIMetricName.OfficialBuild).read(); return(new MetricSummary[] { new MetricSummary("Official Build Failures", build, 0, null) }); }
public IEnumerable <MetricSummary> GetMetricSummary() { var readerFactory = BaseDashboardDataReaderFactory.GetReaderFactory(SolutionName.SalesIntelligence); var pr = readerFactory.GetReader(UIMetricName.PullRequest).read(); var build = readerFactory.GetReader(UIMetricName.OfficialBuild).read(); var bvt = readerFactory.GetReader(UIMetricName.BVT).read(); var pingHealth = readerFactory.GetReader(UIMetricName.ServiceUpTime).read(); var qssHealth = readerFactory.GetReader(UIMetricName.LeadScoringAPIUptime).read(); var latency = readerFactory.GetReader(UIMetricName.Latency).read(); var testCoverage = readerFactory.GetReader(UIMetricName.TestCoverage).read(); var alertError = readerFactory.GetReader(UIMetricName.AlertError).read(); var testCaseIdentifiedAndEnabled = readerFactory.GetReader(UIMetricName.TestCaseEnabled).read(); var functionalTestPassRate = readerFactory.GetReader(UIMetricName.FunctionalTestPassRate).read(); var customerIncidents = readerFactory.GetReader(UIMetricName.CustomerIncident).read(); var sevAIncidents = readerFactory.GetReader(UIMetricName.SevAIncident).read(); var incidentResolveTime = readerFactory.GetReader(UIMetricName.IncidentResolveTime).read(); var incidentCloseTime = readerFactory.GetReader(UIMetricName.IncidentCloseTime).read(); var outOfSLA = readerFactory.GetReader(UIMetricName.OutOfSLA).read(); var e2eResponseData = DeriveE2EResponseDashboardData(latency); var throughput = DeriveThroughputDashboardData(latency); return(new MetricSummary[] { new MetricSummary("Code reviewed and signed off", pr, 2, null, true), new MetricSummary("Official Build Failures", build, 0, null), new MetricSummary("Build Verfication Pass Rate", bvt, 2, null, true), new MetricSummary("Service Up time - Ping Health", pingHealth, 6, null, true), new MetricSummary("Service Up time - Queue Scoring Health", qssHealth, 6, null), new MetricSummary("Test Coverage C#", testCoverage, 2, null, true), new MetricSummary("Latency", latency, 2, null), new MetricSummary("End-To-End Response Time", e2eResponseData, 2, null), new MetricSummary("Throughput", throughput, 0, null), new MetricSummary("Critical Errors", alertError, 2, null), new MetricSummary("Test Cases Identified & Enabled", testCaseIdentifiedAndEnabled, 0, null ), new MetricSummary("Feature Verification Test Pass Rate", functionalTestPassRate, 2, null, true ), new MetricSummary("Customer Incidents", customerIncidents, 1, null ), new MetricSummary("Number of Sev A Incidents", sevAIncidents, 1, null ), new MetricSummary("Mean time to Fix Sev A", incidentResolveTime, 1, null ), new MetricSummary("Mean time to Deploy Sev A", incidentCloseTime, 1, null ), new MetricSummary("Number of Customers out of SLA", outOfSLA, 1, null ) }); }