// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`getStreamSession controller general cases should return the correct metrics for a live stream less than 3 hours long 1`] = ` [ { "alignedStartTime": "2022-06-10T19:07:00.000Z", "data": [ 1.528315336, 2.81361773, 1.5884570709999999, 2.4516013565000003, 1.6792104436666666, 2.383699485, 2.001463595, 1.748917668, 2.2674101053333335, 2.26295996, 1.9996627825, 1.6813165853333334, 1.9979023939999998, 1.3877752186666665, 1.6675377746666669, 1.9426309083333333, 1.836021992, 2.0011279146666667, 1.8497157716666666, 1.6613199126666667, 2.0022250185, 1.829718379, 1.6277673146666665, 1.706908375, 2.0365257015, 2.054270359333333, 2.3728012935, 2.2578828284999997, 1.9973137843333333, 2.0161207745, 2.6683087504999996, 2.359148128, 1.9963940416666668, 2.005729176, 1.8827017886666668, 2.0122582820000003, 1.99515563, 1.7545691273333333, 2.688930614, 2.895796474, 1.997478082, 1.7768323333333331, 1.61469077, 1.8781057336666667, 1.5689790095, 2.0068654706666664, 1.7272766643333333, 1.508854803666667, 1.8122413206666668, 1.7500895455, 2.6860080225000003, 2.180494652333333, 2.1012717050000003, 2.42777723, 2.0077766825, 1.9774355190000001, 2.278805587, 1.65228568225, 2.0016677334999997, 1.5998881200000001, 2.0811623320000003, 2.276874999, ], "label": "KeyframeInterval", "period": 5, "statistics": { "average": 1.9971621265228496, }, }, { "alignedStartTime": "2022-06-10T19:07:00.000Z", "data": [ 1, 1, 1, 1, 1, 1, ], "label": "ConcurrentViews", "period": 5, "statistics": { "average": 1, }, }, { "alignedStartTime": "2022-06-10T19:07:00.000Z", "data": [ 15.656954494493235, 30.03254031136825, 30.061019373693295, 30.038944609948004, 29.995865711588987, 29.99935758227125, 29.980752753008474, 30.080633602697933, 29.983692433173953, 30.028635497566842, 30.00611091193501, 29.924825841026536, 30.033036974150917, 30.028438804911158, 29.98888658697838, 30.040832060735955, 29.950942327055742, 29.983231978228094, 29.91164378245199, 30.09901001926407, 29.96774056136966, 30.028547309297664, 30.051958943340825, 29.841135475132592, 29.891153126271337, 30.028499358627545, 30.11612849118665, 29.875548181523506, 30.0419123325499, 29.761804289364292, 30.17258831080876, 29.88521870912705, 30.055997593776386, 29.91431555635942, 30.102282909456665, 29.81729348717742, 30.073733670393995, 30.01459143342409, 29.751604442107034, 30.037304422320453, 30.03873111883721, 30.03204111630322, 29.85757702142412, 29.910826812639765, 30.271767045229574, 29.899372654710323, 30.115528457289027, 30.006889263336976, 29.917632338496514, 29.958090351025252, 29.969971917746072, 29.95014072988077, 29.983678703906858, 30.07046252830999, 29.894726798205642, 30.00069368271672, ], "label": "IngestFramerate", "period": 5, "statistics": { "average": 29.75984462169303, }, }, { "alignedStartTime": "2022-06-10T19:07:00.000Z", "data": [ 664695.6391561396, 1443717.167094591, 1177497.9347690933, 1374084.9234252013, 1352465.2211292868, 1312253.8109165665, 1231023.103514884, 1317666.1893212055, 1366446.3815628684, 1254596.3457116568, 1228501.405928826, 1405105.559823659, 1262208.0592664557, 1258937.5613648174, 1308574.330460866, 1297034.9297819538, 1302683.2157349978, 1321304.6247146088, 1288823.4118988414, 1339797.4347689308, 1207465.0929488442, 1369582.9202327563, 1265927.3658985875, 1288251.208944027, 1303438.8251736225, 1315859.3258111142, 1307301.4475733438, 1271738.543090981, 1311420.542484627, 1249265.2501433906, 1306952.155238709, 1406241.6700912248, 1281586.1969928192, 1293979.6632840303, 1312790.169415425, 1173345.5231127788, 1374175.5850284665, 1221429.982420586, 1355010.0478717668, 1322990.5838849635, 1313343.5545029575, 1325875.2567435156, 1370813.1551534394, 1307900.7554684854, 1262042.6714239032, 1308020.3378384516, 1267478.8745158818, 1407151.4140330453, 1287632.0787125824, 1504129.4114918723, 1145332.6256734417, 1431717.246853973, 1186968.3179022167, 1392075.1921582331, 1268326.9951916612, 1301770.7302593628, ], "label": "IngestVideoBitrate", "period": 5, "statistics": { "average": 1294593.0107171512, }, }, ] `; exports[`getStreamSession controller general cases should return the correct metrics for an offline stream less than 3 hours long 1`] = ` [ { "alignedStartTime": "2022-06-10T19:07:00.000Z", "data": [ 1.528315336, 2.81361773, 1.5884570709999999, 2.4516013565000003, 1.6792104436666666, 2.383699485, 2.001463595, 1.748917668, 2.2674101053333335, 2.26295996, 1.9996627825, 1.6813165853333334, 1.9979023939999998, 1.3877752186666665, 1.6675377746666669, 1.9426309083333333, 1.836021992, 2.0011279146666667, 1.8497157716666666, 1.6613199126666667, 2.0022250185, 1.829718379, 1.6277673146666665, 1.706908375, 2.0365257015, 2.054270359333333, 2.3728012935, 2.2578828284999997, 1.9973137843333333, 2.0161207745, 2.6683087504999996, 2.359148128, 1.9963940416666668, 2.005729176, 1.8827017886666668, 2.0122582820000003, 1.99515563, 1.7545691273333333, 2.688930614, 2.895796474, 1.997478082, 1.7768323333333331, 1.61469077, 1.8781057336666667, 1.5689790095, 2.0068654706666664, 1.7272766643333333, 1.508854803666667, 1.8122413206666668, 1.7500895455, 2.6860080225000003, 2.180494652333333, 2.1012717050000003, 2.42777723, 2.0077766825, 1.9774355190000001, 2.278805587, 1.65228568225, 2.0016677334999997, 1.5998881200000001, 2.0811623320000003, 2.276874999, ], "label": "KeyframeInterval", "period": 5, "statistics": { "average": 1.9971621265228496, }, }, { "alignedStartTime": "2022-06-10T19:07:00.000Z", "data": [ 1, 1, 1, 1, 1, 1, ], "label": "ConcurrentViews", "period": 5, "statistics": { "average": 1, }, }, { "alignedStartTime": "2022-06-10T19:07:00.000Z", "data": [ 15.656954494493235, 30.03254031136825, 30.061019373693295, 30.038944609948004, 29.995865711588987, 29.99935758227125, 29.980752753008474, 30.080633602697933, 29.983692433173953, 30.028635497566842, 30.00611091193501, 29.924825841026536, 30.033036974150917, 30.028438804911158, 29.98888658697838, 30.040832060735955, 29.950942327055742, 29.983231978228094, 29.91164378245199, 30.09901001926407, 29.96774056136966, 30.028547309297664, 30.051958943340825, 29.841135475132592, 29.891153126271337, 30.028499358627545, 30.11612849118665, 29.875548181523506, 30.0419123325499, 29.761804289364292, 30.17258831080876, 29.88521870912705, 30.055997593776386, 29.91431555635942, 30.102282909456665, 29.81729348717742, 30.073733670393995, 30.01459143342409, 29.751604442107034, 30.037304422320453, 30.03873111883721, 30.03204111630322, 29.85757702142412, 29.910826812639765, 30.271767045229574, 29.899372654710323, 30.115528457289027, 30.006889263336976, 29.917632338496514, 29.958090351025252, 29.969971917746072, 29.95014072988077, 29.983678703906858, 30.07046252830999, 29.894726798205642, 30.00069368271672, 30.0452949595891, 29.956951736866763, 29.97507479819452, 29.992852406047515, 30.16367967921944, 29.843668164829207, ], "label": "IngestFramerate", "period": 5, "statistics": { "average": 29.75984462169303, }, }, { "alignedStartTime": "2022-06-10T19:07:00.000Z", "data": [ 664695.6391561396, 1443717.167094591, 1177497.9347690933, 1374084.9234252013, 1352465.2211292868, 1312253.8109165665, 1231023.103514884, 1317666.1893212055, 1366446.3815628684, 1254596.3457116568, 1228501.405928826, 1405105.559823659, 1262208.0592664557, 1258937.5613648174, 1308574.330460866, 1297034.9297819538, 1302683.2157349978, 1321304.6247146088, 1288823.4118988414, 1339797.4347689308, 1207465.0929488442, 1369582.9202327563, 1265927.3658985875, 1288251.208944027, 1303438.8251736225, 1315859.3258111142, 1307301.4475733438, 1271738.543090981, 1311420.542484627, 1249265.2501433906, 1306952.155238709, 1406241.6700912248, 1281586.1969928192, 1293979.6632840303, 1312790.169415425, 1173345.5231127788, 1374175.5850284665, 1221429.982420586, 1355010.0478717668, 1322990.5838849635, 1313343.5545029575, 1325875.2567435156, 1370813.1551534394, 1307900.7554684854, 1262042.6714239032, 1308020.3378384516, 1267478.8745158818, 1407151.4140330453, 1287632.0787125824, 1504129.4114918723, 1145332.6256734417, 1431717.246853973, 1186968.3179022167, 1392075.1921582331, 1268326.9951916612, 1301770.7302593628, 1250614.5233035772, 1239395.7184993415, 1394264.9394709198, 1117705.3284119081, 1303632.1560215615, 1432406.0308455224, ], "label": "IngestVideoBitrate", "period": 5, "statistics": { "average": 1294593.0107171512, }, }, ] `; exports[`getStreamSession controller general cases should return the ingestConfiguration from IVS when it is not yet in the DB for an offline stream 1`] = ` [ { "alignedStartTime": "2022-06-10T19:07:00.000Z", "data": [ 1.528315336, 2.81361773, 1.5884570709999999, 2.4516013565000003, 1.6792104436666666, 2.383699485, 2.001463595, 1.748917668, 2.2674101053333335, 2.26295996, 1.9996627825, 1.6813165853333334, 1.9979023939999998, 1.3877752186666665, 1.6675377746666669, 1.9426309083333333, 1.836021992, 2.0011279146666667, 1.8497157716666666, 1.6613199126666667, 2.0022250185, 1.829718379, 1.6277673146666665, 1.706908375, 2.0365257015, 2.054270359333333, 2.3728012935, 2.2578828284999997, 1.9973137843333333, 2.0161207745, 2.6683087504999996, 2.359148128, 1.9963940416666668, 2.005729176, 1.8827017886666668, 2.0122582820000003, 1.99515563, 1.7545691273333333, 2.688930614, 2.895796474, 1.997478082, 1.7768323333333331, 1.61469077, 1.8781057336666667, 1.5689790095, 2.0068654706666664, 1.7272766643333333, 1.508854803666667, 1.8122413206666668, 1.7500895455, 2.6860080225000003, 2.180494652333333, 2.1012717050000003, 2.42777723, 2.0077766825, 1.9774355190000001, 2.278805587, 1.65228568225, 2.0016677334999997, 1.5998881200000001, 2.0811623320000003, 2.276874999, ], "label": "KeyframeInterval", "period": 5, "statistics": { "average": 1.9971621265228496, }, }, { "alignedStartTime": "2022-06-10T19:07:00.000Z", "data": [ 1, 1, 1, 1, 1, 1, ], "label": "ConcurrentViews", "period": 5, "statistics": { "average": 1, }, }, { "alignedStartTime": "2022-06-10T19:07:00.000Z", "data": [ 15.656954494493235, 30.03254031136825, 30.061019373693295, 30.038944609948004, 29.995865711588987, 29.99935758227125, 29.980752753008474, 30.080633602697933, 29.983692433173953, 30.028635497566842, 30.00611091193501, 29.924825841026536, 30.033036974150917, 30.028438804911158, 29.98888658697838, 30.040832060735955, 29.950942327055742, 29.983231978228094, 29.91164378245199, 30.09901001926407, 29.96774056136966, 30.028547309297664, 30.051958943340825, 29.841135475132592, 29.891153126271337, 30.028499358627545, 30.11612849118665, 29.875548181523506, 30.0419123325499, 29.761804289364292, 30.17258831080876, 29.88521870912705, 30.055997593776386, 29.91431555635942, 30.102282909456665, 29.81729348717742, 30.073733670393995, 30.01459143342409, 29.751604442107034, 30.037304422320453, 30.03873111883721, 30.03204111630322, 29.85757702142412, 29.910826812639765, 30.271767045229574, 29.899372654710323, 30.115528457289027, 30.006889263336976, 29.917632338496514, 29.958090351025252, 29.969971917746072, 29.95014072988077, 29.983678703906858, 30.07046252830999, 29.894726798205642, 30.00069368271672, 30.0452949595891, 29.956951736866763, 29.97507479819452, 29.992852406047515, 30.16367967921944, 29.843668164829207, ], "label": "IngestFramerate", "period": 5, "statistics": { "average": 29.75984462169303, }, }, { "alignedStartTime": "2022-06-10T19:07:00.000Z", "data": [ 664695.6391561396, 1443717.167094591, 1177497.9347690933, 1374084.9234252013, 1352465.2211292868, 1312253.8109165665, 1231023.103514884, 1317666.1893212055, 1366446.3815628684, 1254596.3457116568, 1228501.405928826, 1405105.559823659, 1262208.0592664557, 1258937.5613648174, 1308574.330460866, 1297034.9297819538, 1302683.2157349978, 1321304.6247146088, 1288823.4118988414, 1339797.4347689308, 1207465.0929488442, 1369582.9202327563, 1265927.3658985875, 1288251.208944027, 1303438.8251736225, 1315859.3258111142, 1307301.4475733438, 1271738.543090981, 1311420.542484627, 1249265.2501433906, 1306952.155238709, 1406241.6700912248, 1281586.1969928192, 1293979.6632840303, 1312790.169415425, 1173345.5231127788, 1374175.5850284665, 1221429.982420586, 1355010.0478717668, 1322990.5838849635, 1313343.5545029575, 1325875.2567435156, 1370813.1551534394, 1307900.7554684854, 1262042.6714239032, 1308020.3378384516, 1267478.8745158818, 1407151.4140330453, 1287632.0787125824, 1504129.4114918723, 1145332.6256734417, 1431717.246853973, 1186968.3179022167, 1392075.1921582331, 1268326.9951916612, 1301770.7302593628, 1250614.5233035772, 1239395.7184993415, 1394264.9394709198, 1117705.3284119081, 1303632.1560215615, 1432406.0308455224, ], "label": "IngestVideoBitrate", "period": 5, "statistics": { "average": 1294593.0107171512, }, }, ] `; exports[`getStreamSession controller general cases should return the metrics from DynamoDB when they are available for an offline stream 1`] = ` [ { "alignedStartTime": "2022-06-10T19:07:00.000Z", "data": [ 1.528315336, 2.81361773, 1.5884570709999999, 2.4516013565000003, 1.6792104436666666, 2.383699485, 2.001463595, 1.748917668, 2.2674101053333335, 2.26295996, 1.9996627825, 1.6813165853333334, 1.9979023939999998, 1.3877752186666665, 1.6675377746666669, 1.9426309083333333, 1.836021992, 2.0011279146666667, 1.8497157716666666, 1.6613199126666667, 2.0022250185, 1.829718379, 1.6277673146666665, 1.706908375, 2.0365257015, 2.054270359333333, 2.3728012935, 2.2578828284999997, 1.9973137843333333, 2.0161207745, 2.6683087504999996, 2.359148128, 1.9963940416666668, 2.005729176, 1.8827017886666668, 2.0122582820000003, 1.99515563, 1.7545691273333333, 2.688930614, 2.895796474, 1.997478082, 1.7768323333333331, 1.61469077, 1.8781057336666667, 1.5689790095, 2.0068654706666664, 1.7272766643333333, 1.508854803666667, 1.8122413206666668, 1.7500895455, 2.6860080225000003, 2.180494652333333, 2.1012717050000003, 2.42777723, 2.0077766825, 1.9774355190000001, 2.278805587, 1.65228568225, 2.0016677334999997, 1.5998881200000001, 2.0811623320000003, 2.276874999, ], "label": "KeyframeInterval", "period": 5, "statistics": { "average": 1.9971621265228496, }, }, { "alignedStartTime": "2022-06-10T19:07:00.000Z", "data": [ 1, 1, 1, 1, 1, 1, ], "label": "ConcurrentViews", "period": 5, "statistics": { "average": 1, }, }, { "alignedStartTime": "2022-06-10T19:07:00.000Z", "data": [ 15.656954494493235, 30.03254031136825, 30.061019373693295, 30.038944609948004, 29.995865711588987, 29.99935758227125, 29.980752753008474, 30.080633602697933, 29.983692433173953, 30.028635497566842, 30.00611091193501, 29.924825841026536, 30.033036974150917, 30.028438804911158, 29.98888658697838, 30.040832060735955, 29.950942327055742, 29.983231978228094, 29.91164378245199, 30.09901001926407, 29.96774056136966, 30.028547309297664, 30.051958943340825, 29.841135475132592, 29.891153126271337, 30.028499358627545, 30.11612849118665, 29.875548181523506, 30.0419123325499, 29.761804289364292, 30.17258831080876, 29.88521870912705, 30.055997593776386, 29.91431555635942, 30.102282909456665, 29.81729348717742, 30.073733670393995, 30.01459143342409, 29.751604442107034, 30.037304422320453, 30.03873111883721, 30.03204111630322, 29.85757702142412, 29.910826812639765, 30.271767045229574, 29.899372654710323, 30.115528457289027, 30.006889263336976, 29.917632338496514, 29.958090351025252, 29.969971917746072, 29.95014072988077, 29.983678703906858, 30.07046252830999, 29.894726798205642, 30.00069368271672, 30.0452949595891, 29.956951736866763, 29.97507479819452, 29.992852406047515, 30.16367967921944, 29.843668164829207, ], "label": "IngestFramerate", "period": 5, "statistics": { "average": 29.75984462169303, }, }, { "alignedStartTime": "2022-06-10T19:07:00.000Z", "data": [ 664695.6391561396, 1443717.167094591, 1177497.9347690933, 1374084.9234252013, 1352465.2211292868, 1312253.8109165665, 1231023.103514884, 1317666.1893212055, 1366446.3815628684, 1254596.3457116568, 1228501.405928826, 1405105.559823659, 1262208.0592664557, 1258937.5613648174, 1308574.330460866, 1297034.9297819538, 1302683.2157349978, 1321304.6247146088, 1288823.4118988414, 1339797.4347689308, 1207465.0929488442, 1369582.9202327563, 1265927.3658985875, 1288251.208944027, 1303438.8251736225, 1315859.3258111142, 1307301.4475733438, 1271738.543090981, 1311420.542484627, 1249265.2501433906, 1306952.155238709, 1406241.6700912248, 1281586.1969928192, 1293979.6632840303, 1312790.169415425, 1173345.5231127788, 1374175.5850284665, 1221429.982420586, 1355010.0478717668, 1322990.5838849635, 1313343.5545029575, 1325875.2567435156, 1370813.1551534394, 1307900.7554684854, 1262042.6714239032, 1308020.3378384516, 1267478.8745158818, 1407151.4140330453, 1287632.0787125824, 1504129.4114918723, 1145332.6256734417, 1431717.246853973, 1186968.3179022167, 1392075.1921582331, 1268326.9951916612, 1301770.7302593628, 1250614.5233035772, 1239395.7184993415, 1394264.9394709198, 1117705.3284119081, 1303632.1560215615, 1432406.0308455224, ], "label": "IngestVideoBitrate", "period": 5, "statistics": { "average": 1294593.0107171512, }, }, ] `; exports[`getStreamSession controller partial and empty data should handle missing MetricResults in the CloudWatch response and return partial statistics 1`] = ` [ { "alignedStartTime": "2022-06-10T19:07:00.000Z", "data": [ 1.528315336, 2.81361773, 1.5884570709999999, 2.4516013565000003, 1.6792104436666666, 2.383699485, 2.001463595, 1.748917668, 2.2674101053333335, 2.26295996, 1.9996627825, 1.6813165853333334, 1.9979023939999998, 1.3877752186666665, 1.6675377746666669, 1.9426309083333333, 1.836021992, 2.0011279146666667, 1.8497157716666666, 1.6613199126666667, 2.0022250185, 1.829718379, 1.6277673146666665, 1.706908375, 2.0365257015, 2.054270359333333, 2.3728012935, 2.2578828284999997, 1.9973137843333333, 2.0161207745, 2.6683087504999996, 2.359148128, 1.9963940416666668, 2.005729176, 1.8827017886666668, 2.0122582820000003, 1.99515563, 1.7545691273333333, 2.688930614, 2.895796474, 1.997478082, 1.7768323333333331, 1.61469077, 1.8781057336666667, 1.5689790095, 2.0068654706666664, 1.7272766643333333, 1.508854803666667, 1.8122413206666668, 1.7500895455, 2.6860080225000003, 2.180494652333333, 2.1012717050000003, 2.42777723, 2.0077766825, 1.9774355190000001, 2.278805587, 1.65228568225, 2.0016677334999997, 1.5998881200000001, 2.0811623320000003, 2.276874999, ], "label": "KeyframeInterval", "period": 5, "statistics": { "average": 1.9971621265228496, }, }, { "alignedStartTime": "2022-06-10T19:07:00.000Z", "data": [ 1, 1, 1, 1, 1, 1, ], "label": "ConcurrentViews", "period": 5, "statistics": { "average": 1, }, }, { "alignedStartTime": "2022-06-10T19:07:00.000Z", "data": [ 15.656954494493235, 30.03254031136825, 30.061019373693295, 30.038944609948004, 29.995865711588987, 29.99935758227125, 29.980752753008474, 30.080633602697933, 29.983692433173953, 30.028635497566842, 30.00611091193501, 29.924825841026536, 30.033036974150917, 30.028438804911158, 29.98888658697838, 30.040832060735955, 29.950942327055742, 29.983231978228094, 29.91164378245199, 30.09901001926407, 29.96774056136966, 30.028547309297664, 30.051958943340825, 29.841135475132592, 29.891153126271337, 30.028499358627545, 30.11612849118665, 29.875548181523506, 30.0419123325499, 29.761804289364292, 30.17258831080876, 29.88521870912705, 30.055997593776386, 29.91431555635942, 30.102282909456665, 29.81729348717742, 30.073733670393995, 30.01459143342409, 29.751604442107034, 30.037304422320453, 30.03873111883721, 30.03204111630322, 29.85757702142412, 29.910826812639765, 30.271767045229574, 29.899372654710323, 30.115528457289027, 30.006889263336976, 29.917632338496514, 29.958090351025252, 29.969971917746072, 29.95014072988077, 29.983678703906858, 30.07046252830999, 29.894726798205642, 30.00069368271672, ], "label": "IngestFramerate", "period": 5, "statistics": {}, }, { "alignedStartTime": "2022-06-10T19:07:00.000Z", "data": [ 664695.6391561396, 1443717.167094591, 1177497.9347690933, 1374084.9234252013, 1352465.2211292868, 1312253.8109165665, 1231023.103514884, 1317666.1893212055, 1366446.3815628684, 1254596.3457116568, 1228501.405928826, 1405105.559823659, 1262208.0592664557, 1258937.5613648174, 1308574.330460866, 1297034.9297819538, 1302683.2157349978, 1321304.6247146088, 1288823.4118988414, 1339797.4347689308, 1207465.0929488442, 1369582.9202327563, 1265927.3658985875, 1288251.208944027, 1303438.8251736225, 1315859.3258111142, 1307301.4475733438, 1271738.543090981, 1311420.542484627, 1249265.2501433906, 1306952.155238709, 1406241.6700912248, 1281586.1969928192, 1293979.6632840303, 1312790.169415425, 1173345.5231127788, 1374175.5850284665, 1221429.982420586, 1355010.0478717668, 1322990.5838849635, 1313343.5545029575, 1325875.2567435156, 1370813.1551534394, 1307900.7554684854, 1262042.6714239032, 1308020.3378384516, 1267478.8745158818, 1407151.4140330453, 1287632.0787125824, 1504129.4114918723, 1145332.6256734417, 1431717.246853973, 1186968.3179022167, 1392075.1921582331, 1268326.9951916612, 1301770.7302593628, ], "label": "IngestVideoBitrate", "period": 5, "statistics": { "average": 1294593.0107171512, }, }, ] `; exports[`getStreamSession controller partial and empty data should handle missing Timestamps or missing Values in the charts metrics and return a partial response 1`] = ` [ { "alignedStartTime": "2022-06-10T19:07:00.000Z", "data": [ 1.528315336, 2.81361773, 1.5884570709999999, 2.4516013565000003, 1.6792104436666666, 2.383699485, 2.001463595, 1.748917668, 2.2674101053333335, 2.26295996, 1.9996627825, 1.6813165853333334, 1.9979023939999998, 1.3877752186666665, 1.6675377746666669, 1.9426309083333333, 1.836021992, 2.0011279146666667, 1.8497157716666666, 1.6613199126666667, 2.0022250185, 1.829718379, 1.6277673146666665, 1.706908375, 2.0365257015, 2.054270359333333, 2.3728012935, 2.2578828284999997, 1.9973137843333333, 2.0161207745, 2.6683087504999996, 2.359148128, 1.9963940416666668, 2.005729176, 1.8827017886666668, 2.0122582820000003, 1.99515563, 1.7545691273333333, 2.688930614, 2.895796474, 1.997478082, 1.7768323333333331, 1.61469077, 1.8781057336666667, 1.5689790095, 2.0068654706666664, 1.7272766643333333, 1.508854803666667, 1.8122413206666668, 1.7500895455, 2.6860080225000003, 2.180494652333333, 2.1012717050000003, 2.42777723, 2.0077766825, 1.9774355190000001, 2.278805587, 1.65228568225, 2.0016677334999997, 1.5998881200000001, 2.0811623320000003, 2.276874999, ], "label": "KeyframeInterval", "period": 5, "statistics": { "average": 1.9971621265228496, }, }, { "alignedStartTime": "2022-06-10T19:07:00.000Z", "data": [ 1, 1, 1, 1, 1, 1, ], "label": "ConcurrentViews", "period": 5, "statistics": { "average": 1, }, }, ] `; exports[`getStreamSession controller partial and empty data should handle missing Values in the statistics metrics and return partial statistics 1`] = ` [ { "alignedStartTime": "2022-06-10T19:07:00.000Z", "data": [ 1.528315336, 2.81361773, 1.5884570709999999, 2.4516013565000003, 1.6792104436666666, 2.383699485, 2.001463595, 1.748917668, 2.2674101053333335, 2.26295996, 1.9996627825, 1.6813165853333334, 1.9979023939999998, 1.3877752186666665, 1.6675377746666669, 1.9426309083333333, 1.836021992, 2.0011279146666667, 1.8497157716666666, 1.6613199126666667, 2.0022250185, 1.829718379, 1.6277673146666665, 1.706908375, 2.0365257015, 2.054270359333333, 2.3728012935, 2.2578828284999997, 1.9973137843333333, 2.0161207745, 2.6683087504999996, 2.359148128, 1.9963940416666668, 2.005729176, 1.8827017886666668, 2.0122582820000003, 1.99515563, 1.7545691273333333, 2.688930614, 2.895796474, 1.997478082, 1.7768323333333331, 1.61469077, 1.8781057336666667, 1.5689790095, 2.0068654706666664, 1.7272766643333333, 1.508854803666667, 1.8122413206666668, 1.7500895455, 2.6860080225000003, 2.180494652333333, 2.1012717050000003, 2.42777723, 2.0077766825, 1.9774355190000001, 2.278805587, 1.65228568225, 2.0016677334999997, 1.5998881200000001, 2.0811623320000003, 2.276874999, ], "label": "KeyframeInterval", "period": 5, "statistics": { "average": 1.9971621265228496, }, }, { "alignedStartTime": "2022-06-10T19:07:00.000Z", "data": [ 1, 1, 1, 1, 1, 1, ], "label": "ConcurrentViews", "period": 5, "statistics": { "average": 1, }, }, { "alignedStartTime": "2022-06-10T19:07:00.000Z", "data": [ 15.656954494493235, 30.03254031136825, 30.061019373693295, 30.038944609948004, 29.995865711588987, 29.99935758227125, 29.980752753008474, 30.080633602697933, 29.983692433173953, 30.028635497566842, 30.00611091193501, 29.924825841026536, 30.033036974150917, 30.028438804911158, 29.98888658697838, 30.040832060735955, 29.950942327055742, 29.983231978228094, 29.91164378245199, 30.09901001926407, 29.96774056136966, 30.028547309297664, 30.051958943340825, 29.841135475132592, 29.891153126271337, 30.028499358627545, 30.11612849118665, 29.875548181523506, 30.0419123325499, 29.761804289364292, 30.17258831080876, 29.88521870912705, 30.055997593776386, 29.91431555635942, 30.102282909456665, 29.81729348717742, 30.073733670393995, 30.01459143342409, 29.751604442107034, 30.037304422320453, 30.03873111883721, 30.03204111630322, 29.85757702142412, 29.910826812639765, 30.271767045229574, 29.899372654710323, 30.115528457289027, 30.006889263336976, 29.917632338496514, 29.958090351025252, 29.969971917746072, 29.95014072988077, 29.983678703906858, 30.07046252830999, 29.894726798205642, 30.00069368271672, ], "label": "IngestFramerate", "period": 5, "statistics": {}, }, { "alignedStartTime": "2022-06-10T19:07:00.000Z", "data": [ 664695.6391561396, 1443717.167094591, 1177497.9347690933, 1374084.9234252013, 1352465.2211292868, 1312253.8109165665, 1231023.103514884, 1317666.1893212055, 1366446.3815628684, 1254596.3457116568, 1228501.405928826, 1405105.559823659, 1262208.0592664557, 1258937.5613648174, 1308574.330460866, 1297034.9297819538, 1302683.2157349978, 1321304.6247146088, 1288823.4118988414, 1339797.4347689308, 1207465.0929488442, 1369582.9202327563, 1265927.3658985875, 1288251.208944027, 1303438.8251736225, 1315859.3258111142, 1307301.4475733438, 1271738.543090981, 1311420.542484627, 1249265.2501433906, 1306952.155238709, 1406241.6700912248, 1281586.1969928192, 1293979.6632840303, 1312790.169415425, 1173345.5231127788, 1374175.5850284665, 1221429.982420586, 1355010.0478717668, 1322990.5838849635, 1313343.5545029575, 1325875.2567435156, 1370813.1551534394, 1307900.7554684854, 1262042.6714239032, 1308020.3378384516, 1267478.8745158818, 1407151.4140330453, 1287632.0787125824, 1504129.4114918723, 1145332.6256734417, 1431717.246853973, 1186968.3179022167, 1392075.1921582331, 1268326.9951916612, 1301770.7302593628, ], "label": "IngestVideoBitrate", "period": 5, "statistics": { "average": 1294593.0107171512, }, }, ] `;