Example #1
0
        public void Load(OrganizationEntity organization, ProductEntity product, ProductDashboardEntity entity, DateTime start, DateTime end)
        {
            this.organization     = organization.Name;
            this.name             = product.Name;
            this.proportion       = entity.SloProportion;
            this.requests         = entity.SourceTotal;
            this.feature_coverage = entity.FeaturesCoverage;
            this.min   = entity.ServicesStats.Min;
            this.max   = entity.ServicesStats.Max;
            this.mean  = entity.ServicesStats.Mean;
            this.start = start.ToString("o");
            this.end   = end.ToString("o");

            foreach (var item in entity.Services)
            {
                this.services.Add(new Service()
                {
                    name         = item.Name,
                    availability = item.Availability,
                    budget       = item.Budget,
                    slo          = item.Slo
                });
            }
        }
Example #2
0
        public void Load(OrganizationEntity organization,
                         SquadDetailEntity entity,
                         DateTime start, DateTime end)
        {
            this.start        = start.ToString("o");
            this.end          = end.ToString("o");
            this.organization = organization.Name;

            this.squad  = entity.Name;
            this.points = entity.Points;

            foreach (var feature in entity.Features)
            {
                this.features.Add(new Feature()
                {
                    product      = feature.Product,
                    service      = feature.Service,
                    feature      = feature.Name,
                    slo          = feature.SLO,
                    availability = feature.Availability,
                    points       = feature.Points
                });
            }
        }