diff --git a/SAS/TMSS/frontend/tmss_webapp/src/routes/Report/cycle/report.category.data.js b/SAS/TMSS/frontend/tmss_webapp/src/routes/Report/cycle/report.category.data.js index 2c78e67024315fd285ed10b4ace32179615fac76..bd4b8277a40a0ae915f7a973999420e05a8918e5 100644 --- a/SAS/TMSS/frontend/tmss_webapp/src/routes/Report/cycle/report.category.data.js +++ b/SAS/TMSS/frontend/tmss_webapp/src/routes/Report/cycle/report.category.data.js @@ -100,11 +100,11 @@ class CycleCategoryWiseData extends Component{ const cycleData = repData.data_ingested_per_site_and_category; categoryData['cycle'] = repData.cycle; // TODO: Update field names and values once API is complete - categoryData['rawIF'] = cycleData["Interferometric Observation"].dataproducts.length; - categoryData['rawBF'] = cycleData["Beamformed Observation"].dataproducts.length; + categoryData['rawIF'] = cycleData["Interferometric Observation"].size__sum; + categoryData['rawBF'] = cycleData["Beamformed Observation"].size__sum; categoryData['rawTBB'] = cycleData.rawTBB; - categoryData['preprocIF'] = cycleData["Preprocessing Pipeline"].dataproducts.length; - categoryData['pulpBF'] = cycleData["Pulsar Pipeline"].dataproducts.length; + categoryData['preprocIF'] = cycleData["Preprocessing Pipeline"].size__sum; + categoryData['pulpBF'] = cycleData["Pulsar Pipeline"].size__sum; categoryData['dynspecBF'] = cycleData.dynspecBF; reportData.push(categoryData); }); diff --git a/SAS/TMSS/frontend/tmss_webapp/src/routes/Report/cycle/report.cycle.completion.js b/SAS/TMSS/frontend/tmss_webapp/src/routes/Report/cycle/report.cycle.completion.js index bdd10c32521f630bd8b76238ce1880d0ef7dfaf7..f0df29f035364ea36b74af2a028cae64ce8d4dc7 100644 --- a/SAS/TMSS/frontend/tmss_webapp/src/routes/Report/cycle/report.cycle.completion.js +++ b/SAS/TMSS/frontend/tmss_webapp/src/routes/Report/cycle/report.cycle.completion.js @@ -127,7 +127,8 @@ class CycleCompletionLevel extends Component { const completionLevel = repData.completion_level; reportData.push( {cycle: repData.cycle, performed: completionLevel.total?parseInt((completionLevel.succeeded/completionLevel.total*100).toFixed(0)):null, - prognosis: completionLevel.total?parseInt((completionLevel.prognosis/completionLevel.total*100).toFixed(0)):null, + // prognosis: completionLevel.total?parseInt((completionLevel.prognosis/completionLevel.total*100).toFixed(0)):null, + prognosis: completionLevel.prognosis, target: repData.completion_level.target?repData.completion_level.target*100:null} ); }); if (forTable && reportData.length > 0) { diff --git a/SAS/TMSS/frontend/tmss_webapp/src/routes/Report/cycle/report.failure.rate.js b/SAS/TMSS/frontend/tmss_webapp/src/routes/Report/cycle/report.failure.rate.js index 4fbf5c78569aef4c8c7ca17c9a7427d743bbd062..3dced22f2f7a7717140da9747300b67ac87acf72 100644 --- a/SAS/TMSS/frontend/tmss_webapp/src/routes/Report/cycle/report.failure.rate.js +++ b/SAS/TMSS/frontend/tmss_webapp/src/routes/Report/cycle/report.failure.rate.js @@ -101,13 +101,14 @@ class CycleFailureRate extends Component { // [{cycle: 'Cycle 15', failures: [{month: "2020-06-01", duration: 1200}, {month: "2020-07-01", duration: 1300},....]}] let reportData = {chartData: [], monthTableData: [], cycleTableData: []}; _.map(data, repData=> { - const monthlyFailures = repData.failures; + const monthlyFailures = repData.failures.months; let cycleMonthlyFailures = [] for (const failureData of monthlyFailures) { cycleMonthlyFailures.push({ cycle: repData.cycle, date: failureData.month, month: moment(failureData.month).format("YYYY-MM"), - duration: failureData.duration?(failureData.duration/timeConversionFactor).toFixed(2):null + // duration: failureData.duration?(failureData.duration/timeConversionFactor).toFixed(2):null + duration: failureData.total_failed?(failureData.total_failed/timeConversionFactor).toFixed(2):null }); } reportData.chartData = reportData.chartData.concat(cycleMonthlyFailures); @@ -115,7 +116,7 @@ class CycleFailureRate extends Component { cycle: repData.cycle, period: _.minBy(cycleMonthlyFailures, 'date')? `${(_.minBy(cycleMonthlyFailures, 'date')).month} - ${(_.maxBy(cycleMonthlyFailures, 'date')).month}`:'', - duration: ((_.sumBy(monthlyFailures, 'duration'))/timeConversionFactor).toFixed(2) + duration: ((_.sumBy(monthlyFailures, 'total_failed'))/timeConversionFactor).toFixed(2) }); }); reportData.monthTableData = reportData.chartData; diff --git a/SAS/TMSS/frontend/tmss_webapp/src/routes/Report/cycle/report.project.summary.js b/SAS/TMSS/frontend/tmss_webapp/src/routes/Report/cycle/report.project.summary.js index 9762566d3abe795cf768b45ac0bf033c0a46316c..d62705003a45ea5aadbef609192c9fe3b98910f6 100644 --- a/SAS/TMSS/frontend/tmss_webapp/src/routes/Report/cycle/report.project.summary.js +++ b/SAS/TMSS/frontend/tmss_webapp/src/routes/Report/cycle/report.project.summary.js @@ -30,7 +30,7 @@ class CycleProjectSummary extends Component{ projectData['cycle'] = repData.cycle; projectData['project'] = projData.project; // TODO: Update field names and values once API is complete - projectData['durationObserved'] = (projData.durations.total/timeConversionFactor).toFixed(2); + projectData['durationObserved'] = (projData.durations.total_observed/timeConversionFactor).toFixed(2); projectData['durationProcessed'] = projData.durations.processed; projectData['dataToSara'] = projData["Sara"]; projectData['dataToJuelich'] = projData["Juelich"]; diff --git a/SAS/TMSS/frontend/tmss_webapp/src/services/report.service.js b/SAS/TMSS/frontend/tmss_webapp/src/services/report.service.js index c254a0a24232b3450ad7f710f31c2f964ff3a405..0e6ced845c3082350f2361a3d5ee693abd61835d 100644 --- a/SAS/TMSS/frontend/tmss_webapp/src/services/report.service.js +++ b/SAS/TMSS/frontend/tmss_webapp/src/services/report.service.js @@ -26,1239 +26,1244 @@ const ReportService = { getCyclesReport: async(cycleList) => { try { const response = await axios.get(`/api/util/cycles_report/?cycles=${cycleList.join(',')}`); - // return response.data; - const testData = { - "Cycle 12": { - "cycle": "Cycle 12", - "telescope_time_distribution": { - "UNASSIGNED": { - "durations": { - "total": 300, - "succeeded": 200, - "failed": 50, - "idle": 50 - } - }, - "FILLER": { - "durations": { - "total": 200, - "succeeded": 150, - "failed": 30, - "idle": 20 - } - }, - "REGULAR": { - "durations": { - "total": 1500, - "succeeded": 1320, - "failed": 80, - "idle":100 - } - }, - "USER_SHARED_SUPPORT": { - "durations": { - "total": 700, - "succeeded": 650, - "failed": 20, - "idle": 30 - } - }, - "COMMISSIONING": { - "durations": { - "total": 1300, - "succeeded": 1120, - "failed": 120, - "idle": 60 - } - }, - "DDT": { - "durations": { - "total": 200, - "succeeded": 190, - "failed": 5, - "idle": 5 - } - }, - "TEST": { - "durations": { - "total": 600, - "succeeded": 550, - "failed": 20, - "idle": 30 - } - } - }, - "average_efficiency": { - "target": "0.85", - "efficiency": 0.9 - }, - "completion_level": { - "target": "0.95", - "total": 1000, - "succeeded": 850, - "prognosis": 960 - }, - "observation_hours_per_category": { - "total_duration_failed": 100, - "total_duration_idle": 200, - "total_duration_A": 500, - "total_duration_B": 300 - }, - "weekly_efficiency": { - "weeks": [ - { - "week": "2019-12-01", - "efficiency": 0.9 - }, - { - "week": "2019-12-08", - "efficiency": 0.85 - }, - { - "week": "2019-12-15", - "efficiency": 0.8 - }, - { - "week": "2019-12-22", - "efficiency": 0.92 - }, - { - "week": "2019-12-29", - "efficiency": 0.93 - }, - { - "week": "2020-01-05", - "efficiency": 0.95 - }, - { - "week": "2020-01-12", - "efficiency": 0.89 - }, - { - "week": "2020-01-19", - "efficiency": 0.79 - }, - { - "week": "2020-01-26", - "efficiency": 0.69 - }, - { - "week": "2020-02-02", - "efficiency": 0.75 - }, - { - "week": "2020-02-09", - "efficiency": 0.7 - }, - { - "week": "2020-02-16", - "efficiency": 0.8 - }, - { - "week": "2020-02-23", - "efficiency": 0.9 - }, - { - "week": "2020-03-01", - "efficiency": 0.9 - }, - { - "week": "2020-03-08", - "efficiency": 0.9 - }, - { - "week": "2020-03-15", - "efficiency": 0.9 - }, - { - "week": "2020-03-22", - "efficiency": 0.9 - }, - { - "week": "2020-03-29", - "efficiency": 0.9 - }, - { - "week": "2020-04-05", - "efficiency": 0.9 - }, - { - "week": "2020-04-12", - "efficiency": 0.9 - }, - { - "week": "2020-04-19", - "efficiency": 0.9 - }, - { - "week": "2020-04-26", - "efficiency": 0.9 - }, - { - "week": "2020-05-03", - "efficiency": 0.9 - }, - { - "week": "2020-05-10", - "efficiency": 0.9 - }, - { - "week": "2020-05-17", - "efficiency": 0.9 - }, - { - "week": "2020-05-24", - "efficiency": 0.9 - } - ] - }, - "data_ingested_per_site_and_category": { - "Interferometric Observation": { - "dataproducts": [1,2,3,4,6,7,8,8] - }, - "Beamformed Observation": { - "dataproducts": [2,3,4] - }, - "Preprocessing Pipeline": { - "dataproducts": [1,2,3,4,5,6,7,10,12,13,45] - }, - "Pulsar Pipeline": { - "dataproducts": [1,1,1,1,1,2] - } - }, - "projects_summary": [ - { - "project": "high", - "quota": [ - { - "id": 1, - "resource_type_id": "LTA Storage", - "value": 1000000000000 - } - ], - "SUBs": { - "finished": [], - "failed": [] - }, - "durations": { - "total": 12720, - "total_succeeded": 0, - "total_not_cancelled": 12720, - "total_failed": 0 - }, - "LTA dataproducts": { - "size__sum": null - }, - "SAPs": [ - { - "sap_name": "placeholder", - "total_exposure": 0 - } - ] - }, - { - "project": "normal", - "quota": [ - { - "id": 2, - "resource_type_id": "LTA Storage", - "value": 1000000000000 - } - ], - "SUBs": { - "finished": [], - "failed": [] - }, - "durations": { - "total": 0, - "total_succeeded": 0, - "total_not_cancelled": 0, - "total_failed": 0 - }, - "LTA dataproducts": { - "size__sum": null - }, - "SAPs": [ - { - "sap_name": "placeholder", - "total_exposure": 0 - } - ] - }, - { - "project": "low", - "quota": [ - { - "id": 3, - "resource_type_id": "LTA Storage", - "value": 1000000000000 - } - ], - "SUBs": { - "finished": [], - "failed": [] - }, - "durations": { - "total": 0, - "total_succeeded": 0, - "total_not_cancelled": 0, - "total_failed": 0 - }, - "LTA dataproducts": { - "size__sum": null - }, - "SAPs": [ - { - "sap_name": "placeholder", - "total_exposure": 0 - } - ] - } - ], - "usage_mode": { - "all modes": { - "total": null, - "observing": null, - "idle/test": null - }, - "stand-alone mode": { - "total": 887, - "no project": null, - "project": null, - "mixed/no project": null - }, - "ILT mode": { - "total": 2570, - "observing": 2420, - "idle/test": 150 - } - }, - "failures": [{month: "2020-03-01", duration: 1200}, {month: "2020-04-01", duration: 1300}] - }, - "Cycle 13": { - "cycle": "Cycle 13", - "telescope_time_distribution": { - "UNASSIGNED": { - "durations": { - "total": 500, - "succeeded": 400, - "failed": 50, - "idle": 50 - } - }, - "FILLER": { - "durations": { - "total": 300, - "succeeded": 280, - "failed": 0, - "idle": 20 - } - }, - "REGULAR": { - "durations": { - "total": 1000, - "succeeded": 920, - "failed": 20, - "idle": 60 - } - }, - "USER_SHARED_SUPPORT": { - "durations": { - "total": 500, - "succeeded": 450, - "failed": 0, - "idle": 50 - } - }, - "COMMISSIONING": { - "durations": { - "total": 300, - "succeeded": 220, - "failed": 70, - "idle": 10 - } - }, - "DDT": { - "durations": { - "total": 200, - "succeeded": 190, - "failed": 5, - "idle": 5 - } - }, - "TEST": { - "durations": { - "total": 600, - "succeeded": 550, - "failed": 20, - "idle": 30 - } - } - }, - "average_efficiency": { - "target": "0.65", - "efficiency": 0.7 - }, - "completion_level": { - "target": "0.9", - "total": 100, - "succeeded": 80, - "prognosis": 95 - }, - "observation_hours_per_category": { - "total_duration_failed": 10, - "total_duration_idle": 20, - "total_duration_A": 100, - "total_duration_B": 50 - }, - "weekly_efficiency": { - "weeks": [ - { - "week": "2019-12-01", - "efficiency": 0.8 - }, - { - "week": "2019-12-08", - "efficiency": 0.75 - }, - { - "week": "2019-12-15", - "efficiency": 0.85 - }, - { - "week": "2019-12-22", - "efficiency": 0.9 - }, - { - "week": "2019-12-29", - "efficiency": 0.9 - }, - { - "week": "2020-01-05", - "efficiency": 0.9 - }, - { - "week": "2020-01-12", - "efficiency": 0.9 - }, - { - "week": "2020-01-19", - "efficiency": 0.9 - }, - { - "week": "2020-01-26", - "efficiency": 0.9 - }, - { - "week": "2020-02-02", - "efficiency": 0.9 - }, - { - "week": "2020-02-09", - "efficiency": 0.9 - }, - { - "week": "2020-02-16", - "efficiency": 0.9 - }, - { - "week": "2020-02-23", - "efficiency": 0.9 - }, - { - "week": "2020-03-01", - "efficiency": 0.9 - }, - { - "week": "2020-03-08", - "efficiency": 0.9 - }, - { - "week": "2020-03-15", - "efficiency": 0.9 - }, - { - "week": "2020-03-22", - "efficiency": 0.9 - }, - { - "week": "2020-03-29", - "efficiency": 0.9 - }, - { - "week": "2020-04-05", - "efficiency": 0.9 - }, - { - "week": "2020-04-12", - "efficiency": 0.9 - }, - { - "week": "2020-04-19", - "efficiency": 0.9 - }, - { - "week": "2020-04-26", - "efficiency": 0.9 - }, - { - "week": "2020-05-03", - "efficiency": 0.9 - }, - { - "week": "2020-05-10", - "efficiency": 0.9 - }, - { - "week": "2020-05-17", - "efficiency": 0.9 - }, - { - "week": "2020-05-24", - "efficiency": 0.9 - } - ] - }, - "data_ingested_per_site_and_category": { - "Interferometric Observation": { - "dataproducts": [1,2,3,4] - }, - "Beamformed Observation": { - "dataproducts": [2,3,4] - }, - "Preprocessing Pipeline": { - "dataproducts": [1,2,3,4,5,6,7] - }, - "Pulsar Pipeline": { - "dataproducts": [1,1,1,1] - } - }, - "projects_summary": [ - { - "project": "high", - "quota": [ - { - "id": 1, - "resource_type_id": "LTA Storage", - "value": 1000000000000 - } - ], - "SUBs": { - "finished": [], - "failed": [] - }, - "durations": { - "total": 12720, - "total_succeeded": 0, - "total_not_cancelled": 12720, - "total_failed": 0 - }, - "LTA dataproducts": { - "size__sum": null - }, - "SAPs": [ - { - "sap_name": "placeholder", - "total_exposure": 0 - } - ] - }, - { - "project": "normal", - "quota": [ - { - "id": 2, - "resource_type_id": "LTA Storage", - "value": 1000000000000 - } - ], - "SUBs": { - "finished": [], - "failed": [] - }, - "durations": { - "total": 0, - "total_succeeded": 0, - "total_not_cancelled": 0, - "total_failed": 0 - }, - "LTA dataproducts": { - "size__sum": null - }, - "SAPs": [ - { - "sap_name": "placeholder", - "total_exposure": 0 - } - ] - }, - { - "project": "low", - "quota": [ - { - "id": 3, - "resource_type_id": "LTA Storage", - "value": 1000000000000 - } - ], - "SUBs": { - "finished": [], - "failed": [] - }, - "durations": { - "total": 0, - "total_succeeded": 0, - "total_not_cancelled": 0, - "total_failed": 0 - }, - "LTA dataproducts": { - "size__sum": null - }, - "SAPs": [ - { - "sap_name": "placeholder", - "total_exposure": 0 - } - ] - } - ], - "usage_mode": { - "all modes": { - "total": null, - "observing": null, - "idle/test": null - }, - "stand-alone mode": { - "total": 983, - "no project": null, - "project": null, - "mixed/no project": null - }, - "ILT mode": { - "total": 2573, - "observing": 2430, - "idle/test": 143 - } - }, - "failures": [] - }, - "Cycle 14": { - "cycle": "Cycle 14", - "telescope_time_distribution": { - "UNASSIGNED": { - "durations": { - "total": 500, - "succeeded": 400, - "failed": 50, - "idle": 50 - } - }, - "FILLER": { - "durations": { - "total": 300, - "succeeded": 280, - "failed": 0, - "idle": 20 - } - }, - "REGULAR": { - "durations": { - "total": 1000, - "succeeded": 920, - "failed": 20, - "idle": 60 - } - }, - "USER_SHARED_SUPPORT": { - "durations": { - "total": 500, - "succeeded": 450, - "failed": 0, - "idle": 50 - } - }, - "COMMISSIONING": { - "durations": { - "total": 300, - "succeeded": 220, - "failed": 70, - "idle": 10 - } - }, - "DDT": { - "durations": { - "total": 200, - "succeeded": 190, - "failed": 5, - "idle": 5 - } - }, - "TEST": { - "durations": { - "total": 600, - "succeeded": 550, - "failed": 20, - "idle": 30 - } - } - }, - "average_efficiency": { - "target": "0.65", - "efficiency": 0.7 - }, - "completion_level": { - "target": "0.9", - "total": 100, - "succeeded": 80, - "prognosis": 95 - }, - "observation_hours_per_category": { - "total_duration_failed": 10, - "total_duration_idle": 20, - "total_duration_A": 100, - "total_duration_B": 50 - }, - "weekly_efficiency": { - "weeks": [ - { - "week": "2020-06-01", - "efficiency": 0.9 - }, - { - "week": "2020-06-08", - "efficiency": 0.9 - }, - { - "week": "2020-06-15", - "efficiency": 0.9 - }, - { - "week": "2020-06-22", - "efficiency": 0.9 - }, - { - "week": "2020-06-29", - "efficiency": 0.9 - }, - { - "week": "2020-07-06", - "efficiency": 0.9 - }, - { - "week": "2020-07-13", - "efficiency": 0.9 - }, - { - "week": "2020-07-20", - "efficiency": 0.9 - }, - { - "week": "2020-07-27", - "efficiency": 0.9 - }, - { - "week": "2020-08-03", - "efficiency": 0.9 - }, - { - "week": "2020-08-10", - "efficiency": 0.9 - }, - { - "week": "2020-08-17", - "efficiency": 0.9 - }, - { - "week": "2020-08-24", - "efficiency": 0.9 - }, - { - "week": "2020-08-31", - "efficiency": 0.9 - }, - { - "week": "2020-09-07", - "efficiency": 0.9 - }, - { - "week": "2020-09-14", - "efficiency": 0.9 - }, - { - "week": "2020-09-21", - "efficiency": 0.9 - }, - { - "week": "2020-09-28", - "efficiency": 0.9 - }, - { - "week": "2020-10-05", - "efficiency": 0.9 - }, - { - "week": "2020-10-12", - "efficiency": 0.9 - }, - { - "week": "2020-10-19", - "efficiency": 0.9 - }, - { - "week": "2020-10-26", - "efficiency": 0.9 - }, - { - "week": "2020-11-02", - "efficiency": 0.9 - }, - { - "week": "2020-11-09", - "efficiency": 0.9 - }, - { - "week": "2020-11-16", - "efficiency": 0.9 - }, - { - "week": "2020-11-23", - "efficiency": 0.9 - } - ] - }, - "data_ingested_per_site_and_category": { - "Interferometric Observation": { - "dataproducts": [1,3,4] - }, - "Beamformed Observation": { - "dataproducts": [2,2,3,4] - }, - "Preprocessing Pipeline": { - "dataproducts": [1,4,5,6,7] - }, - "Pulsar Pipeline": { - "dataproducts": [1,1] - } - }, - "projects_summary": [ - { - "project": "high", - "quota": [ - { - "id": 1, - "resource_type_id": "LTA Storage", - "value": 1000000000000 - } - ], - "SUBs": { - "finished": [], - "failed": [] - }, - "durations": { - "total": 12720, - "total_succeeded": 0, - "total_not_cancelled": 12720, - "total_failed": 0 - }, - "LTA dataproducts": { - "size__sum": null - }, - "SAPs": [ - { - "sap_name": "placeholder", - "total_exposure": 0 - } - ] - }, - { - "project": "normal", - "quota": [ - { - "id": 2, - "resource_type_id": "LTA Storage", - "value": 1000000000000 - } - ], - "SUBs": { - "finished": [], - "failed": [] - }, - "durations": { - "total": 0, - "total_succeeded": 0, - "total_not_cancelled": 0, - "total_failed": 0 - }, - "LTA dataproducts": { - "size__sum": null - }, - "SAPs": [ - { - "sap_name": "placeholder", - "total_exposure": 0 - } - ] - }, - { - "project": "low", - "quota": [ - { - "id": 3, - "resource_type_id": "LTA Storage", - "value": 1000000000000 - } - ], - "SUBs": { - "finished": [], - "failed": [] - }, - "durations": { - "total": 0, - "total_succeeded": 0, - "total_not_cancelled": 0, - "total_failed": 0 - }, - "LTA dataproducts": { - "size__sum": null - }, - "SAPs": [ - { - "sap_name": "placeholder", - "total_exposure": 0 - } - ] - } - ], - "usage_mode": { - "all modes": { - "total": null, - "observing": null, - "idle/test": null - }, - "stand-alone mode": { - "total": 798, - "no project": null, - "project": null, - "mixed/no project": null - }, - "ILT mode": { - "total": 3594, - "observing": 2258, - "idle/test": 955 - } - }, - "failures": [{month: "2020-03-01", duration: 1200}, {month: "2020-04-01", duration: 1300}] - }, - "Cycle 15": { - "cycle": "Cycle 15", - "telescope_time_distribution": { - "UNASSIGNED": { - "durations": { - "total": 500, - "succeeded": 400, - "failed": 50, - "idle": 50 - } - }, - "FILLER": { - "durations": { - "total": 300, - "succeeded": 280, - "failed": 0, - "idle": 20 - } - }, - "REGULAR": { - "durations": { - "total": 1000, - "succeeded": 920, - "failed": 20, - "idle": 60 - } - }, - "USER_SHARED_SUPPORT": { - "durations": { - "total": 500, - "succeeded": 450, - "failed": 0, - "idle": 50 - } - }, - "COMMISSIONING": { - "durations": { - "total": 300, - "succeeded": 220, - "failed": 70, - "idle": 10 - } - }, - "DDT": { - "durations": { - "total": 200, - "succeeded": 190, - "failed": 5, - "idle": 5 - } - }, - "TEST": { - "durations": { - "total": 600, - "succeeded": 550, - "failed": 20, - "idle": 30 - } - } - }, - "average_efficiency": { - "target": "0.65", - "efficiency": 0.7 - }, - "completion_level": { - "target": "0.9", - "total": 100, - "succeeded": 80, - "prognosis": 95 - }, - "observation_hours_per_category": { - "total_duration_failed": 10, - "total_duration_idle": 20, - "total_duration_A": 100, - "total_duration_B": 50 - }, - "weekly_efficiency": { - "weeks": [ - { - "week": "2020-12-01", - "efficiency": 0.9 - }, - { - "week": "2020-12-08", - "efficiency": 0.9 - }, - { - "week": "2020-12-15", - "efficiency": 0.9 - }, - { - "week": "2020-12-22", - "efficiency": 0.9 - }, - { - "week": "2020-12-29", - "efficiency": 0.9 - }, - { - "week": "2021-01-05", - "efficiency": 0.9 - }, - { - "week": "2021-01-12", - "efficiency": 0.9 - }, - { - "week": "2021-01-19", - "efficiency": 0.9 - }, - { - "week": "2021-01-26", - "efficiency": 0.9 - }, - { - "week": "2021-02-02", - "efficiency": 0.9 - }, - { - "week": "2021-02-09", - "efficiency": 0.9 - }, - { - "week": "2021-02-16", - "efficiency": 0.9 - }, - { - "week": "2021-02-23", - "efficiency": 0.9 - }, - { - "week": "2021-03-02", - "efficiency": 0.9 - }, - { - "week": "2021-03-09", - "efficiency": 0.9 - }, - { - "week": "2021-03-16", - "efficiency": 0.9 - }, - { - "week": "2021-03-23", - "efficiency": 0.9 - }, - { - "week": "2021-03-30", - "efficiency": 0.9 - }, - { - "week": "2021-04-06", - "efficiency": 0.9 - }, - { - "week": "2021-04-13", - "efficiency": 0.9 - }, - { - "week": "2021-04-20", - "efficiency": 0.9 - }, - { - "week": "2021-04-27", - "efficiency": 0.9 - }, - { - "week": "2021-05-04", - "efficiency": 0.9 - }, - { - "week": "2021-05-11", - "efficiency": 0.9 - }, - { - "week": "2021-05-18", - "efficiency": 0.9 - }, - { - "week": "2021-05-25", - "efficiency": 0.9 - } - ] - }, - "data_ingested_per_site_and_category": { - "Interferometric Observation": { - "dataproducts": [1,2,3,4,5] - }, - "Beamformed Observation": { - "dataproducts": [2,3,4,6,7] - }, - "Preprocessing Pipeline": { - "dataproducts": [1,2,3] - }, - "Pulsar Pipeline": { - "dataproducts": [1,1,1,1,2,3,1] - } - }, - "projects_summary": [ - { - "project": "high", - "quota": [ - { - "id": 1, - "resource_type_id": "LTA Storage", - "value": 1000000000000 - } - ], - "SUBs": { - "finished": [], - "failed": [] - }, - "durations": { - "total": 12720, - "total_succeeded": 0, - "total_not_cancelled": 12720, - "total_failed": 0 - }, - "LTA dataproducts": { - "size__sum": null - }, - "SAPs": [ - { - "sap_name": "placeholder", - "total_exposure": 0 - } - ] - }, - { - "project": "normal", - "quota": [ - { - "id": 2, - "resource_type_id": "LTA Storage", - "value": 1000000000000 - } - ], - "SUBs": { - "finished": [], - "failed": [] - }, - "durations": { - "total": 0, - "total_succeeded": 0, - "total_not_cancelled": 0, - "total_failed": 0 - }, - "LTA dataproducts": { - "size__sum": null - }, - "SAPs": [ - { - "sap_name": "placeholder", - "total_exposure": 0 - } - ] - }, - { - "project": "low", - "quota": [ - { - "id": 3, - "resource_type_id": "LTA Storage", - "value": 1000000000000 - } - ], - "SUBs": { - "finished": [], - "failed": [] - }, - "durations": { - "total": 0, - "total_succeeded": 0, - "total_not_cancelled": 0, - "total_failed": 0 - }, - "LTA dataproducts": { - "size__sum": null - }, - "SAPs": [ - { - "sap_name": "placeholder", - "total_exposure": 0 - } - ] - } - ], - "usage_mode": { - "all modes": { - "total": null, - "observing": null, - "idle/test": null - }, - "stand-alone mode": { - "total": 908, - "no project": null, - "project": null, - "mixed/no project": null - }, - "ILT mode": { - "total": 3436, - "observing": 1881, - "idle/test": 980 - } - }, - "failures": [{month: "2020-06-01", duration: 1200}, {month: "2020-07-01", duration: 1300}] - } - } + return response.data; + // const testData = { + // "Cycle 12": { + // "cycle": "Cycle 12", + // "telescope_time_distribution": { + // "UNASSIGNED": { + // "durations": { + // "total": 300, + // "succeeded": 200, + // "failed": 50, + // "idle": 50 + // } + // }, + // "FILLER": { + // "durations": { + // "total": 200, + // "succeeded": 150, + // "failed": 30, + // "idle": 20 + // } + // }, + // "REGULAR": { + // "durations": { + // "total": 1500, + // "succeeded": 1320, + // "failed": 80, + // "idle":100 + // } + // }, + // "USER_SHARED_SUPPORT": { + // "durations": { + // "total": 700, + // "succeeded": 650, + // "failed": 20, + // "idle": 30 + // } + // }, + // "COMMISSIONING": { + // "durations": { + // "total": 1300, + // "succeeded": 1120, + // "failed": 120, + // "idle": 60 + // } + // }, + // "DDT": { + // "durations": { + // "total": 200, + // "succeeded": 190, + // "failed": 5, + // "idle": 5 + // } + // }, + // "TEST": { + // "durations": { + // "total": 600, + // "succeeded": 550, + // "failed": 20, + // "idle": 30 + // } + // } + // }, + // "average_efficiency": { + // "target": "0.85", + // "efficiency": 0.9 + // }, + // "completion_level": { + // "target": "0.95", + // "total": 1000, + // "succeeded": 850, + // "prognosis": 960 + // }, + // "observation_hours_per_category": { + // "total_duration_failed": 100, + // "total_duration_idle": 200, + // "total_duration_A": 500, + // "total_duration_B": 300 + // }, + // "weekly_efficiency": { + // "weeks": [ + // { + // "week": "2019-12-01", + // "efficiency": 0.9 + // }, + // { + // "week": "2019-12-08", + // "efficiency": 0.85 + // }, + // { + // "week": "2019-12-15", + // "efficiency": 0.8 + // }, + // { + // "week": "2019-12-22", + // "efficiency": 0.92 + // }, + // { + // "week": "2019-12-29", + // "efficiency": 0.93 + // }, + // { + // "week": "2020-01-05", + // "efficiency": 0.95 + // }, + // { + // "week": "2020-01-12", + // "efficiency": 0.89 + // }, + // { + // "week": "2020-01-19", + // "efficiency": 0.79 + // }, + // { + // "week": "2020-01-26", + // "efficiency": 0.69 + // }, + // { + // "week": "2020-02-02", + // "efficiency": 0.75 + // }, + // { + // "week": "2020-02-09", + // "efficiency": 0.7 + // }, + // { + // "week": "2020-02-16", + // "efficiency": 0.8 + // }, + // { + // "week": "2020-02-23", + // "efficiency": 0.9 + // }, + // { + // "week": "2020-03-01", + // "efficiency": 0.9 + // }, + // { + // "week": "2020-03-08", + // "efficiency": 0.9 + // }, + // { + // "week": "2020-03-15", + // "efficiency": 0.9 + // }, + // { + // "week": "2020-03-22", + // "efficiency": 0.9 + // }, + // { + // "week": "2020-03-29", + // "efficiency": 0.9 + // }, + // { + // "week": "2020-04-05", + // "efficiency": 0.9 + // }, + // { + // "week": "2020-04-12", + // "efficiency": 0.9 + // }, + // { + // "week": "2020-04-19", + // "efficiency": 0.9 + // }, + // { + // "week": "2020-04-26", + // "efficiency": 0.9 + // }, + // { + // "week": "2020-05-03", + // "efficiency": 0.9 + // }, + // { + // "week": "2020-05-10", + // "efficiency": 0.9 + // }, + // { + // "week": "2020-05-17", + // "efficiency": 0.9 + // }, + // { + // "week": "2020-05-24", + // "efficiency": 0.9 + // } + // ] + // }, + // "data_ingested_per_site_and_category": { + // "Interferometric Observation": { + // "size__sum": 140 + // }, + // "Beamformed Observation": { + // "size__sum": 150 + // }, + // "Preprocessing Pipeline": { + // "size__sum": 160 + // }, + // "Pulsar Pipeline": { + // "size__sum": 170 + // } + // } + // "projects_summary": [ + // { + // "project": "high", + // "quota": [ + // { + // "id": 1, + // "resource_type_id": "LTA Storage", + // "value": 1000000000000 + // } + // ], + // "SUBs": { + // "finished": [], + // "failed": [] + // }, + // "durations": { + // "total": 12720, + // "total_observevd": 200, + // "total_succeeded": 0, + // "total_not_cancelled": 12520, + // "total_failed": 0 + // }, + // "LTA dataproducts": { + // "size__sum": null + // }, + // "SAPs": [ + // { + // "sap_name": "placeholder", + // "total_exposure": 0 + // } + // ] + // }, + // { + // "project": "normal", + // "quota": [ + // { + // "id": 2, + // "resource_type_id": "LTA Storage", + // "value": 1000000000000 + // } + // ], + // "SUBs": { + // "finished": [], + // "failed": [] + // }, + // "durations": { + // "total": 0, + // "total_succeeded": 0, + // "total_not_cancelled": 0, + // "total_failed": 0 + // }, + // "LTA dataproducts": { + // "size__sum": null + // }, + // "SAPs": [ + // { + // "sap_name": "placeholder", + // "total_exposure": 0 + // } + // ] + // }, + // { + // "project": "low", + // "quota": [ + // { + // "id": 3, + // "resource_type_id": "LTA Storage", + // "value": 1000000000000 + // } + // ], + // "SUBs": { + // "finished": [], + // "failed": [] + // }, + // "durations": { + // "total": 0, + // "total_succeeded": 0, + // "total_not_cancelled": 0, + // "total_failed": 0 + // }, + // "LTA dataproducts": { + // "size__sum": null + // }, + // "SAPs": [ + // { + // "sap_name": "placeholder", + // "total_exposure": 0 + // } + // ] + // } + // ], + // "usage_mode": { + // "all modes": { + // "total": null, + // "observing": null, + // "idle/test": null + // }, + // "stand-alone mode": { + // "total": 887, + // "no project": null, + // "project": null, + // "mixed/no project": null + // }, + // "ILT mode": { + // "total": 2570, + // "observing": 2420, + // "idle/test": 150 + // } + // }, + // "failures": {months: [{month: "2020-03-01", total_failed: 1200}, {month: "2020-04-01", total_failed: 1300}]} + // }, + // "Cycle 13": { + // "cycle": "Cycle 13", + // "telescope_time_distribution": { + // "UNASSIGNED": { + // "durations": { + // "total": 500, + // "succeeded": 400, + // "failed": 50, + // "idle": 50 + // } + // }, + // "FILLER": { + // "durations": { + // "total": 300, + // "succeeded": 280, + // "failed": 0, + // "idle": 20 + // } + // }, + // "REGULAR": { + // "durations": { + // "total": 1000, + // "succeeded": 920, + // "failed": 20, + // "idle": 60 + // } + // }, + // "USER_SHARED_SUPPORT": { + // "durations": { + // "total": 500, + // "succeeded": 450, + // "failed": 0, + // "idle": 50 + // } + // }, + // "COMMISSIONING": { + // "durations": { + // "total": 300, + // "succeeded": 220, + // "failed": 70, + // "idle": 10 + // } + // }, + // "DDT": { + // "durations": { + // "total": 200, + // "succeeded": 190, + // "failed": 5, + // "idle": 5 + // } + // }, + // "TEST": { + // "durations": { + // "total": 600, + // "succeeded": 550, + // "failed": 20, + // "idle": 30 + // } + // } + // }, + // "average_efficiency": { + // "target": "0.65", + // "efficiency": 0.7 + // }, + // "completion_level": { + // "target": "0.9", + // "total": 100, + // "succeeded": 80, + // "prognosis": 95 + // }, + // "observation_hours_per_category": { + // "total_duration_failed": 10, + // "total_duration_idle": 20, + // "total_duration_A": 100, + // "total_duration_B": 50 + // }, + // "weekly_efficiency": { + // "weeks": [ + // { + // "week": "2019-12-01", + // "efficiency": 0.8 + // }, + // { + // "week": "2019-12-08", + // "efficiency": 0.75 + // }, + // { + // "week": "2019-12-15", + // "efficiency": 0.85 + // }, + // { + // "week": "2019-12-22", + // "efficiency": 0.9 + // }, + // { + // "week": "2019-12-29", + // "efficiency": 0.9 + // }, + // { + // "week": "2020-01-05", + // "efficiency": 0.9 + // }, + // { + // "week": "2020-01-12", + // "efficiency": 0.9 + // }, + // { + // "week": "2020-01-19", + // "efficiency": 0.9 + // }, + // { + // "week": "2020-01-26", + // "efficiency": 0.9 + // }, + // { + // "week": "2020-02-02", + // "efficiency": 0.9 + // }, + // { + // "week": "2020-02-09", + // "efficiency": 0.9 + // }, + // { + // "week": "2020-02-16", + // "efficiency": 0.9 + // }, + // { + // "week": "2020-02-23", + // "efficiency": 0.9 + // }, + // { + // "week": "2020-03-01", + // "efficiency": 0.9 + // }, + // { + // "week": "2020-03-08", + // "efficiency": 0.9 + // }, + // { + // "week": "2020-03-15", + // "efficiency": 0.9 + // }, + // { + // "week": "2020-03-22", + // "efficiency": 0.9 + // }, + // { + // "week": "2020-03-29", + // "efficiency": 0.9 + // }, + // { + // "week": "2020-04-05", + // "efficiency": 0.9 + // }, + // { + // "week": "2020-04-12", + // "efficiency": 0.9 + // }, + // { + // "week": "2020-04-19", + // "efficiency": 0.9 + // }, + // { + // "week": "2020-04-26", + // "efficiency": 0.9 + // }, + // { + // "week": "2020-05-03", + // "efficiency": 0.9 + // }, + // { + // "week": "2020-05-10", + // "efficiency": 0.9 + // }, + // { + // "week": "2020-05-17", + // "efficiency": 0.9 + // }, + // { + // "week": "2020-05-24", + // "efficiency": 0.9 + // } + // ] + // }, + // "data_ingested_per_site_and_category": { + // "Interferometric Observation": { + // "size__sum": 140 + // }, + // "Beamformed Observation": { + // "size__sum": 150 + // }, + // "Preprocessing Pipeline": { + // "size__sum": 160 + // }, + // "Pulsar Pipeline": { + // "size__sum": 170 + // } + // } + // "projects_summary": [ + // { + // "project": "high", + // "quota": [ + // { + // "id": 1, + // "resource_type_id": "LTA Storage", + // "value": 1000000000000 + // } + // ], + // "SUBs": { + // "finished": [], + // "failed": [] + // }, + // "durations": { + // "total": 12720, + // "total_observed": 700, + // "total_succeeded": 0, + // "total_not_cancelled": 12020, + // "total_failed": 0 + // }, + // "LTA dataproducts": { + // "size__sum": null + // }, + // "SAPs": [ + // { + // "sap_name": "placeholder", + // "total_exposure": 0 + // } + // ] + // }, + // { + // "project": "normal", + // "quota": [ + // { + // "id": 2, + // "resource_type_id": "LTA Storage", + // "value": 1000000000000 + // } + // ], + // "SUBs": { + // "finished": [], + // "failed": [] + // }, + // "durations": { + // "total": 0, + // "total_succeeded": 0, + // "total_not_cancelled": 0, + // "total_failed": 0 + // }, + // "LTA dataproducts": { + // "size__sum": null + // }, + // "SAPs": [ + // { + // "sap_name": "placeholder", + // "total_exposure": 0 + // } + // ] + // }, + // { + // "project": "low", + // "quota": [ + // { + // "id": 3, + // "resource_type_id": "LTA Storage", + // "value": 1000000000000 + // } + // ], + // "SUBs": { + // "finished": [], + // "failed": [] + // }, + // "durations": { + // "total": 0, + // "total_succeeded": 0, + // "total_not_cancelled": 0, + // "total_failed": 0 + // }, + // "LTA dataproducts": { + // "size__sum": null + // }, + // "SAPs": [ + // { + // "sap_name": "placeholder", + // "total_exposure": 0 + // } + // ] + // } + // ], + // "usage_mode": { + // "all modes": { + // "total": null, + // "observing": null, + // "idle/test": null + // }, + // "stand-alone mode": { + // "total": 983, + // "no project": null, + // "project": null, + // "mixed/no project": null + // }, + // "ILT mode": { + // "total": 2573, + // "observing": 2430, + // "idle/test": 143 + // } + // }, + // "failures": {months: []} + // }, + // "Cycle 14": { + // "cycle": "Cycle 14", + // "telescope_time_distribution": { + // "UNASSIGNED": { + // "durations": { + // "total": 500, + // "succeeded": 400, + // "failed": 50, + // "idle": 50 + // } + // }, + // "FILLER": { + // "durations": { + // "total": 300, + // "succeeded": 280, + // "failed": 0, + // "idle": 20 + // } + // }, + // "REGULAR": { + // "durations": { + // "total": 1000, + // "succeeded": 920, + // "failed": 20, + // "idle": 60 + // } + // }, + // "USER_SHARED_SUPPORT": { + // "durations": { + // "total": 500, + // "succeeded": 450, + // "failed": 0, + // "idle": 50 + // } + // }, + // "COMMISSIONING": { + // "durations": { + // "total": 300, + // "succeeded": 220, + // "failed": 70, + // "idle": 10 + // } + // }, + // "DDT": { + // "durations": { + // "total": 200, + // "succeeded": 190, + // "failed": 5, + // "idle": 5 + // } + // }, + // "TEST": { + // "durations": { + // "total": 600, + // "succeeded": 550, + // "failed": 20, + // "idle": 30 + // } + // } + // }, + // "average_efficiency": { + // "target": "0.65", + // "efficiency": 0.7 + // }, + // "completion_level": { + // "target": "0.9", + // "total": 100, + // "succeeded": 80, + // "prognosis": 95 + // }, + // "observation_hours_per_category": { + // "total_duration_failed": 10, + // "total_duration_idle": 20, + // "total_duration_A": 100, + // "total_duration_B": 50 + // }, + // "weekly_efficiency": { + // "weeks": [ + // { + // "week": "2020-06-01", + // "efficiency": 0.9 + // }, + // { + // "week": "2020-06-08", + // "efficiency": 0.9 + // }, + // { + // "week": "2020-06-15", + // "efficiency": 0.9 + // }, + // { + // "week": "2020-06-22", + // "efficiency": 0.9 + // }, + // { + // "week": "2020-06-29", + // "efficiency": 0.9 + // }, + // { + // "week": "2020-07-06", + // "efficiency": 0.9 + // }, + // { + // "week": "2020-07-13", + // "efficiency": 0.9 + // }, + // { + // "week": "2020-07-20", + // "efficiency": 0.9 + // }, + // { + // "week": "2020-07-27", + // "efficiency": 0.9 + // }, + // { + // "week": "2020-08-03", + // "efficiency": 0.9 + // }, + // { + // "week": "2020-08-10", + // "efficiency": 0.9 + // }, + // { + // "week": "2020-08-17", + // "efficiency": 0.9 + // }, + // { + // "week": "2020-08-24", + // "efficiency": 0.9 + // }, + // { + // "week": "2020-08-31", + // "efficiency": 0.9 + // }, + // { + // "week": "2020-09-07", + // "efficiency": 0.9 + // }, + // { + // "week": "2020-09-14", + // "efficiency": 0.9 + // }, + // { + // "week": "2020-09-21", + // "efficiency": 0.9 + // }, + // { + // "week": "2020-09-28", + // "efficiency": 0.9 + // }, + // { + // "week": "2020-10-05", + // "efficiency": 0.9 + // }, + // { + // "week": "2020-10-12", + // "efficiency": 0.9 + // }, + // { + // "week": "2020-10-19", + // "efficiency": 0.9 + // }, + // { + // "week": "2020-10-26", + // "efficiency": 0.9 + // }, + // { + // "week": "2020-11-02", + // "efficiency": 0.9 + // }, + // { + // "week": "2020-11-09", + // "efficiency": 0.9 + // }, + // { + // "week": "2020-11-16", + // "efficiency": 0.9 + // }, + // { + // "week": "2020-11-23", + // "efficiency": 0.9 + // } + // ] + // }, + // "data_ingested_per_site_and_category": { + // "Interferometric Observation": { + // "size__sum": 140 + // }, + // "Beamformed Observation": { + // "size__sum": 150 + // }, + // "Preprocessing Pipeline": { + // "size__sum": 160 + // }, + // "Pulsar Pipeline": { + // "size__sum": 170 + // } + // } + // "projects_summary": [ + // { + // "project": "high", + // "quota": [ + // { + // "id": 1, + // "resource_type_id": "LTA Storage", + // "value": 1000000000000 + // } + // ], + // "SUBs": { + // "finished": [], + // "failed": [] + // }, + // "durations": { + // "total": 12720, + // "total_observed": 10000, + // "total_succeeded": 0, + // "total_not_cancelled": 2720, + // "total_failed": 0 + // }, + // "LTA dataproducts": { + // "size__sum": null + // }, + // "SAPs": [ + // { + // "sap_name": "placeholder", + // "total_exposure": 0 + // } + // ] + // }, + // { + // "project": "normal", + // "quota": [ + // { + // "id": 2, + // "resource_type_id": "LTA Storage", + // "value": 1000000000000 + // } + // ], + // "SUBs": { + // "finished": [], + // "failed": [] + // }, + // "durations": { + // "total": 0, + // "total_succeeded": 0, + // "total_not_cancelled": 0, + // "total_failed": 0 + // }, + // "LTA dataproducts": { + // "size__sum": null + // }, + // "SAPs": [ + // { + // "sap_name": "placeholder", + // "total_exposure": 0 + // } + // ] + // }, + // { + // "project": "low", + // "quota": [ + // { + // "id": 3, + // "resource_type_id": "LTA Storage", + // "value": 1000000000000 + // } + // ], + // "SUBs": { + // "finished": [], + // "failed": [] + // }, + // "durations": { + // "total": 0, + // "total_succeeded": 0, + // "total_not_cancelled": 0, + // "total_failed": 0 + // }, + // "LTA dataproducts": { + // "size__sum": null + // }, + // "SAPs": [ + // { + // "sap_name": "placeholder", + // "total_exposure": 0 + // } + // ] + // } + // ], + // "usage_mode": { + // "all modes": { + // "total": null, + // "observing": null, + // "idle/test": null + // }, + // "stand-alone mode": { + // "total": 798, + // "no project": null, + // "project": null, + // "mixed/no project": null + // }, + // "ILT mode": { + // "total": 3594, + // "observing": 2258, + // "idle/test": 955 + // } + // }, + // "failures": {months:[{month: "2020-03-01", total_failed: 1200}, {month: "2020-04-01", total_failed: 1300}]} + // }, + // "Cycle 15": { + // "cycle": "Cycle 15", + // "telescope_time_distribution": { + // "UNASSIGNED": { + // "durations": { + // "total": 500, + // "succeeded": 400, + // "failed": 50, + // "idle": 50 + // } + // }, + // "FILLER": { + // "durations": { + // "total": 300, + // "succeeded": 280, + // "failed": 0, + // "idle": 20 + // } + // }, + // "REGULAR": { + // "durations": { + // "total": 1000, + // "succeeded": 920, + // "failed": 20, + // "idle": 60 + // } + // }, + // "USER_SHARED_SUPPORT": { + // "durations": { + // "total": 500, + // "succeeded": 450, + // "failed": 0, + // "idle": 50 + // } + // }, + // "COMMISSIONING": { + // "durations": { + // "total": 300, + // "succeeded": 220, + // "failed": 70, + // "idle": 10 + // } + // }, + // "DDT": { + // "durations": { + // "total": 200, + // "succeeded": 190, + // "failed": 5, + // "idle": 5 + // } + // }, + // "TEST": { + // "durations": { + // "total": 600, + // "succeeded": 550, + // "failed": 20, + // "idle": 30 + // } + // } + // }, + // "average_efficiency": { + // "target": "0.65", + // "efficiency": 0.7 + // }, + // "completion_level": { + // "target": "0.9", + // "total": 100, + // "succeeded": 80, + // "prognosis": 95 + // }, + // "observation_hours_per_category": { + // "total_duration_failed": 10, + // "total_duration_idle": 20, + // "total_duration_A": 100, + // "total_duration_B": 50 + // }, + // "weekly_efficiency": { + // "weeks": [ + // { + // "week": "2020-12-01", + // "efficiency": 0.9 + // }, + // { + // "week": "2020-12-08", + // "efficiency": 0.9 + // }, + // { + // "week": "2020-12-15", + // "efficiency": 0.9 + // }, + // { + // "week": "2020-12-22", + // "efficiency": 0.9 + // }, + // { + // "week": "2020-12-29", + // "efficiency": 0.9 + // }, + // { + // "week": "2021-01-05", + // "efficiency": 0.9 + // }, + // { + // "week": "2021-01-12", + // "efficiency": 0.9 + // }, + // { + // "week": "2021-01-19", + // "efficiency": 0.9 + // }, + // { + // "week": "2021-01-26", + // "efficiency": 0.9 + // }, + // { + // "week": "2021-02-02", + // "efficiency": 0.9 + // }, + // { + // "week": "2021-02-09", + // "efficiency": 0.9 + // }, + // { + // "week": "2021-02-16", + // "efficiency": 0.9 + // }, + // { + // "week": "2021-02-23", + // "efficiency": 0.9 + // }, + // { + // "week": "2021-03-02", + // "efficiency": 0.9 + // }, + // { + // "week": "2021-03-09", + // "efficiency": 0.9 + // }, + // { + // "week": "2021-03-16", + // "efficiency": 0.9 + // }, + // { + // "week": "2021-03-23", + // "efficiency": 0.9 + // }, + // { + // "week": "2021-03-30", + // "efficiency": 0.9 + // }, + // { + // "week": "2021-04-06", + // "efficiency": 0.9 + // }, + // { + // "week": "2021-04-13", + // "efficiency": 0.9 + // }, + // { + // "week": "2021-04-20", + // "efficiency": 0.9 + // }, + // { + // "week": "2021-04-27", + // "efficiency": 0.9 + // }, + // { + // "week": "2021-05-04", + // "efficiency": 0.9 + // }, + // { + // "week": "2021-05-11", + // "efficiency": 0.9 + // }, + // { + // "week": "2021-05-18", + // "efficiency": 0.9 + // }, + // { + // "week": "2021-05-25", + // "efficiency": 0.9 + // } + // ] + // }, + // "data_ingested_per_site_and_category": { + // "data_ingested_per_site_and_category": { + // "Interferometric Observation": { + // "size__sum": 140 + // }, + // "Beamformed Observation": { + // "size__sum": 150 + // }, + // "Preprocessing Pipeline": { + // "size__sum": 160 + // }, + // "Pulsar Pipeline": { + // "size__sum": 170 + // } + // } + // "projects_summary": [ + // { + // "project": "high", + // "quota": [ + // { + // "id": 1, + // "resource_type_id": "LTA Storage", + // "value": 1000000000000 + // } + // ], + // "SUBs": { + // "finished": [], + // "failed": [] + // }, + // "durations": { + // "total": 12720, + // "total_observed": 0, + // "total_succeeded": 0, + // "total_not_cancelled": 12720, + // "total_failed": 0 + // }, + // "LTA dataproducts": { + // "size__sum": null + // }, + // "SAPs": [ + // { + // "sap_name": "placeholder", + // "total_exposure": 0 + // } + // ] + // }, + // { + // "project": "normal", + // "quota": [ + // { + // "id": 2, + // "resource_type_id": "LTA Storage", + // "value": 1000000000000 + // } + // ], + // "SUBs": { + // "finished": [], + // "failed": [] + // }, + // "durations": { + // "total": 0, + // "total_succeeded": 0, + // "total_not_cancelled": 0, + // "total_failed": 0 + // }, + // "LTA dataproducts": { + // "size__sum": null + // }, + // "SAPs": [ + // { + // "sap_name": "placeholder", + // "total_exposure": 0 + // } + // ] + // }, + // { + // "project": "low", + // "quota": [ + // { + // "id": 3, + // "resource_type_id": "LTA Storage", + // "value": 1000000000000 + // } + // ], + // "SUBs": { + // "finished": [], + // "failed": [] + // }, + // "durations": { + // "total": 0, + // "total_succeeded": 0, + // "total_not_cancelled": 0, + // "total_failed": 0 + // }, + // "LTA dataproducts": { + // "size__sum": null + // }, + // "SAPs": [ + // { + // "sap_name": "placeholder", + // "total_exposure": 0 + // } + // ] + // } + // ], + // "usage_mode": { + // "all modes": { + // "total": null, + // "observing": null, + // "idle/test": null + // }, + // "stand-alone mode": { + // "total": 908, + // "no project": null, + // "project": null, + // "mixed/no project": null + // }, + // "ILT mode": { + // "total": 3436, + // "observing": 1881, + // "idle/test": 980 + // } + // }, + // "failures": {months: [{month: "2020-06-01", total_failed: 1200}, {month: "2020-07-01", total_failed: 1300}]} + // } + // } - return _.filter(testData, data => { return cycleList.indexOf(data.cycle)>=0 }) ; + // return _.filter(testData, data => { return cycleList.indexOf(data.cycle)>=0 }) ; } catch(error) { console.error(error); return null;