Merged PR 30504: Modification for Chad B. to get reactor uptime metrics for an entire month

Modification for Chad B. to get reactor uptime metrics for an entire month
This commit is contained in:
Ouellette Jonathan (CSC FI SSM MAI MESLEO)
2025-11-10 21:48:29 +00:00
parent fe0ebca16a
commit c1dea45db2
2 changed files with 145 additions and 1 deletions

View File

@ -42,7 +42,7 @@ $insert APP_INSERTS
$insert API_SETUP
$insert HTTP_INSERTS
Declare Function Report_Services, Oi_Wizard_Services, Logging_Services, Environment_Services, Test_Run_Services
Declare Function Report_Services, Oi_Wizard_Services, Logging_Services, Environment_Services, Test_Run_Services, Reactor_Daily_Uptime_Services
Declare subroutine Report_Services, Logging_Services
LogPath = Environment_Services('GetApplicationRootPath') : '\LogFiles\API\Reports'
@ -133,6 +133,12 @@ CreateHALItem:
ReportStartDtm = Http_Services('GetQueryField', 'StartDate')
ReportEndDtm = Http_Services('GetQueryField', 'EndDate')
RepJSON = Report_Services('GetDailyReactorUptimeDataJSON', ReportStartDtm, ReportEndDtm)
Case ReportID = 'ReactorPeriodUptime'
ReportStartDtm = Http_Services('GetQueryField', 'StartDate')
ReportEndDtm = Http_Services('GetQueryField', 'EndDate')
ReportStartDtm = IConv(ReportStartDtm, '[SRP_DATETIME]')
ReportEndDtm = IConv(ReportEndDtm, '[SRP_DATETIME]')
RepJSON = Reactor_Daily_Uptime_Services('GetReactorClassUpTimeMetricsByTimePeriod', ReportStartDtm, ReportEndDtm, 'JSON')
Case ReportID = 'TestWaferWIPReport'
RepJSON = Report_Services('GetOpenTestWaferLotWIPReportJson')
Case ReportID = 'OpenNCRReport'