public CustomerJourneyRp(JourneyEntity journey) { this.JourneyId = journey.Id.Value; this.Journey = journey.Name; this.AvailabilitySLO = journey.AvailabilitySlo; var measure = journey.Measure(); this.Availability = measure.Availability; this.AvailabilityErrorBudget = measure.AvailabilityErrorBudget; }
public ExportExcelJourneyDetailRp(JourneyMapEntity map) { JourneyEntity journey = map.Journey; FeatureEntity feature = map.Feature; this.JourneyId = journey.Id.Value; this.FeatureId = feature.Id.Value; this.Journey = journey.Name; this.Feature = feature.Name; this.AvailabilitySLO = journey.AvailabilitySlo; this.JourneyQuality = journey.Measure().Availability; }
public ExportExcelJourneyRp(JourneyEntity journey) { this.JourneyId = journey.Id.Value; this.Product = journey.Product.Name; this.Group = journey.Group; this.Name = journey.Name; this.AvailabilitySLO = journey.AvailabilitySlo; this.ExperienceSLO = journey.ExperienceSlo; this.LatencySLO = journey.LatencySlo; var measure = journey.Measure(); this.Availability = measure.Availability; this.Latency = measure.Latency; this.Experience = measure.Experience; this.Description = journey.Description; }
public void AvailabilityAggregateSuccess() { var sourceEntity = new SourceEntity() { }; sourceEntity.AddSourceItem(800, 1000, OwlveyCalendar.January201903, DateTime.Now, "test", SourceGroupEnum.Availability); var entity = new JourneyEntity() { FeatureMap = new List <JourneyMapEntity>() { new JourneyMapEntity() { Feature = new Core.Entities.FeatureEntity() { Id = 1, Name = "test", Indicators = new List <IndicatorEntity>() { new IndicatorEntity() { Id = 1, Source = sourceEntity } } } } } }; var result = entity.Measure(); Assert.Equal(0.8m, result.Availability); }