IFaultService.cs 1.4 KB

1234567891011121314151617181920212223
  1. using ProductionLineMonitor.Application.Services.FaultService.Dtos;
  2. using ProductionLineMonitor.Core.Dtos;
  3. using ProductionLineMonitor.Core.Models;
  4. using ProductionLineMonitor.Web.Services.LineService;
  5. using System;
  6. using System.Collections.Generic;
  7. using System.Text;
  8. namespace ProductionLineMonitor.Application.Services.FaultService
  9. {
  10. public interface IFaultService
  11. {
  12. void AddMachineFaultComparisons(string faultTopic, IEnumerable<MachineFaultComparison> machineFaultComparisons);
  13. IEnumerable<LineAccumulatedFaultDto> GetAccumulatedFaultTop10ByLine(string lineId, DateTime startTime, DateTime endTime);
  14. List<LineAccumulatedFaultDto> GetAccumulatedFaultTopByLine(string lineId, DateTime startTime, DateTime endTime);
  15. IEnumerable<LineFaultDto> GetLineFault(string lineId, DateTime startTime, DateTime endTime, int durationThreshold);
  16. IEnumerable<LineFaultDto> FaultSplitToHour(IEnumerable<LineFaultDto> lineFaultDtos);
  17. IEnumerable<LineFaultDto> FilterDuplicateFaults(IEnumerable<LineFaultDto> lineFaultDtos);
  18. List<MachineFaultRecordDto> GetMachineFaultsByTop10(string machineId, DateTime day, string keywords);
  19. List<FaultFrequency> GetFaultFrequencyTop10(string machineId, DateTime startTime, DateTime endTime, string keywords);
  20. List<FaultFrequencyByShift> GetFaultFrequencyTop10ByShift(string machineId, DateTime startTime, DateTime endTime, string keywords);
  21. }
  22. }