// Totals will not be correct for all aggregation functions. // Consider adding aggregation specific fixture (e.g. MetricsP75Field) if your test depends on it. export function MetricsField({field, ...rest} = {}) { return { start: '2021-12-01T16:15:00Z', end: '2021-12-02T16:15:00Z', query: '', intervals: [ '2021-12-01T16:15:00Z', '2021-12-01T16:30:00Z', '2021-12-01T16:45:00Z', '2021-12-01T17:00:00Z', '2021-12-01T17:15:00Z', '2021-12-01T17:30:00Z', '2021-12-01T17:45:00Z', '2021-12-01T18:00:00Z', '2021-12-01T18:15:00Z', '2021-12-01T18:30:00Z', '2021-12-01T18:45:00Z', '2021-12-01T19:00:00Z', '2021-12-01T19:15:00Z', '2021-12-01T19:30:00Z', '2021-12-01T19:45:00Z', '2021-12-01T20:00:00Z', '2021-12-01T20:15:00Z', '2021-12-01T20:30:00Z', '2021-12-01T20:45:00Z', '2021-12-01T21:00:00Z', '2021-12-01T21:15:00Z', '2021-12-01T21:30:00Z', '2021-12-01T21:45:00Z', '2021-12-01T22:00:00Z', '2021-12-01T22:15:00Z', '2021-12-01T22:30:00Z', '2021-12-01T22:45:00Z', '2021-12-01T23:00:00Z', '2021-12-01T23:15:00Z', '2021-12-01T23:30:00Z', '2021-12-01T23:45:00Z', '2021-12-02T00:00:00Z', '2021-12-02T00:15:00Z', '2021-12-02T00:30:00Z', '2021-12-02T00:45:00Z', '2021-12-02T01:00:00Z', '2021-12-02T01:15:00Z', '2021-12-02T01:30:00Z', '2021-12-02T01:45:00Z', '2021-12-02T02:00:00Z', '2021-12-02T02:15:00Z', '2021-12-02T02:30:00Z', '2021-12-02T02:45:00Z', '2021-12-02T03:00:00Z', '2021-12-02T03:15:00Z', '2021-12-02T03:30:00Z', '2021-12-02T03:45:00Z', '2021-12-02T04:00:00Z', '2021-12-02T04:15:00Z', '2021-12-02T04:30:00Z', '2021-12-02T04:45:00Z', '2021-12-02T05:00:00Z', '2021-12-02T05:15:00Z', '2021-12-02T05:30:00Z', '2021-12-02T05:45:00Z', '2021-12-02T06:00:00Z', '2021-12-02T06:15:00Z', '2021-12-02T06:30:00Z', '2021-12-02T06:45:00Z', '2021-12-02T07:00:00Z', '2021-12-02T07:15:00Z', '2021-12-02T07:30:00Z', '2021-12-02T07:45:00Z', '2021-12-02T08:00:00Z', '2021-12-02T08:15:00Z', '2021-12-02T08:30:00Z', '2021-12-02T08:45:00Z', '2021-12-02T09:00:00Z', '2021-12-02T09:15:00Z', '2021-12-02T09:30:00Z', '2021-12-02T09:45:00Z', '2021-12-02T10:00:00Z', '2021-12-02T10:15:00Z', '2021-12-02T10:30:00Z', '2021-12-02T10:45:00Z', '2021-12-02T11:00:00Z', '2021-12-02T11:15:00Z', '2021-12-02T11:30:00Z', '2021-12-02T11:45:00Z', '2021-12-02T12:00:00Z', '2021-12-02T12:15:00Z', '2021-12-02T12:30:00Z', '2021-12-02T12:45:00Z', '2021-12-02T13:00:00Z', '2021-12-02T13:15:00Z', '2021-12-02T13:30:00Z', '2021-12-02T13:45:00Z', '2021-12-02T14:00:00Z', '2021-12-02T14:15:00Z', '2021-12-02T14:30:00Z', '2021-12-02T14:45:00Z', '2021-12-02T15:00:00Z', '2021-12-02T15:15:00Z', '2021-12-02T15:30:00Z', '2021-12-02T15:45:00Z', '2021-12-02T16:00:00Z', ], groups: [ { by: {}, totals: { [field]: 51292.95404741901, }, series: { [field]: [ 443.6200417187068, 471.7512262596214, 632.5356294251225, 538.6063865509535, 524.4706847412767, 552.1308328866158, 491.4847951529728, 540.5649544109818, 430.31622543090765, 513.2803858330382, 498.20598088568426, 503.9482408241235, 496.3081254057422, 530.4951893480746, 510.9472734431329, 534.2121619563322, 580.24191602519, 582.2308981360263, 628.6978339387008, 569.093042423482, 625.5703758567254, 529.286046746119, 491.3038256504387, 548.2822063955006, 569.3739373104116, 579.5492159758986, 483.9070230718182, 529.9636517032774, 554.3095224302028, 546.8567462459974, 574.3167313021837, 578.9293435905665, 561.8965496805288, 576.137674866579, 529.6122522035633, 513.9424504410429, 543.8130703563698, 597.6542214420452, 510.1568375049254, 510.7187029189223, 433.78137928589973, 539.3227194785493, 436.44338223053234, 607.1985174516628, 524.8753880194068, 501.7107697990002, 514.0727518760925, 541.2173843758375, 556.0898842681038, 535.6274044037233, 475.75355633285346, 587.3256393771101, 494.61335151920775, 643.5242484747213, 519.9786827806394, 534.7536939750254, 570.1995703475561, 452.91363051761834, 613.7709480932585, 520.9545797679832, 497.2156651159481, 625.7054147147829, 490.6365344675922, 592.1175307910397, 564.6276355603038, 514.8572640893523, 484.47902185133046, 597.7622625233755, 559.1799635501319, 571.7109630540343, 513.212778566814, 549.1636248727518, 462.32331107946504, 551.0869305265527, 576.872028698758, 636.4899532813711, 479.0486254908533, 543.761081985735, 488.9454132823779, 536.1309059508741, 534.9354940989901, 567.6136279473333, 458.8870965420118, 514.9547377042924, 525.3278756572803, 502.05863531061544, 575.8454944963837, 524.476069016465, 431.1190903001866, 543.5139624946099, 598.8881832598959, 510.5100592771207, 541.151976697214, 550.0881388522994, 485.26355742991586, 460.14344601636975, ], }, }, ], ...rest, }; } export function MetricsFieldByTransaction({field, ...rest}) { return { start: '2021-11-28T18:00:00Z', end: '2021-11-29T17:07:00Z', query: '', intervals: [ '2021-11-28T18:00:00Z', '2021-11-28T19:00:00Z', '2021-11-28T20:00:00Z', '2021-11-28T21:00:00Z', '2021-11-28T22:00:00Z', '2021-11-28T23:00:00Z', '2021-11-29T00:00:00Z', '2021-11-29T01:00:00Z', '2021-11-29T02:00:00Z', '2021-11-29T03:00:00Z', '2021-11-29T04:00:00Z', '2021-11-29T05:00:00Z', '2021-11-29T06:00:00Z', '2021-11-29T07:00:00Z', '2021-11-29T08:00:00Z', '2021-11-29T09:00:00Z', '2021-11-29T10:00:00Z', '2021-11-29T11:00:00Z', '2021-11-29T12:00:00Z', '2021-11-29T13:00:00Z', '2021-11-29T14:00:00Z', '2021-11-29T15:00:00Z', '2021-11-29T16:00:00Z', '2021-11-29T17:00:00Z', ], groups: [ { by: { transaction: '/bar/:ordId/', }, totals: { [field]: 913.2667882519335, }, series: { [field]: [ 878.0965537951091, 892.4128102279035, 917.4473775231118, 884.0592721573165, 882.8631377404286, 977.3661107427924, 860.5718105590834, 1036.8824425087375, 857.4349331408594, 872.0064570283837, 954.3387108987523, 982.0946255973818, 895.0158989602506, 842.4015901457649, 913.8372197059941, 845.6186018412996, 971.3439877765327, 977.5787125586039, 934.8308904844635, 924.3141080070806, 889.9088931286851, 861.11871846869, 945.2639201121442, 921.5961349370338, ], }, }, { by: { transaction: '/foo/:ordId/', }, totals: { [field]: 334.68332989807976, }, series: { [field]: [ 250.3774996770386, 371.6466508301939, 389.0367396067616, 364.3194808493991, 200.31796886834115, 382.2695255829035, 315.19978364600627, 343.65161544673435, 394.0993214558925, 303.2183329284477, 331.8381124232099, 303.94194516767607, 340.4228803656242, 381.4180332281987, 282.5149785708053, 338.32392357546075, 375.26120755255505, 320.6268918566363, 342.67556406266016, 386.13447628268096, 295.9214530587189, 339.2846900047603, 328.4972817992001, 351.4015607140078, ], }, }, ], ...rest, }; } export function MetricsFieldByTransactionStatus({field, ...rest} = {}) { return { start: '2021-12-06T13:45:00Z', end: '2021-12-07T13:45:00Z', query: '', intervals: [ '2021-12-06T13:45:00Z', '2021-12-06T14:00:00Z', '2021-12-06T14:15:00Z', '2021-12-06T14:30:00Z', '2021-12-06T14:45:00Z', '2021-12-06T15:00:00Z', '2021-12-06T15:15:00Z', '2021-12-06T15:30:00Z', '2021-12-06T15:45:00Z', '2021-12-06T16:00:00Z', '2021-12-06T16:15:00Z', '2021-12-06T16:30:00Z', '2021-12-06T16:45:00Z', '2021-12-06T17:00:00Z', '2021-12-06T17:15:00Z', '2021-12-06T17:30:00Z', '2021-12-06T17:45:00Z', '2021-12-06T18:00:00Z', '2021-12-06T18:15:00Z', '2021-12-06T18:30:00Z', '2021-12-06T18:45:00Z', '2021-12-06T19:00:00Z', '2021-12-06T19:15:00Z', '2021-12-06T19:30:00Z', '2021-12-06T19:45:00Z', '2021-12-06T20:00:00Z', '2021-12-06T20:15:00Z', '2021-12-06T20:30:00Z', '2021-12-06T20:45:00Z', '2021-12-06T21:00:00Z', '2021-12-06T21:15:00Z', '2021-12-06T21:30:00Z', '2021-12-06T21:45:00Z', '2021-12-06T22:00:00Z', '2021-12-06T22:15:00Z', '2021-12-06T22:30:00Z', '2021-12-06T22:45:00Z', '2021-12-06T23:00:00Z', '2021-12-06T23:15:00Z', '2021-12-06T23:30:00Z', '2021-12-06T23:45:00Z', '2021-12-07T00:00:00Z', '2021-12-07T00:15:00Z', '2021-12-07T00:30:00Z', '2021-12-07T00:45:00Z', '2021-12-07T01:00:00Z', '2021-12-07T01:15:00Z', '2021-12-07T01:30:00Z', '2021-12-07T01:45:00Z', '2021-12-07T02:00:00Z', '2021-12-07T02:15:00Z', '2021-12-07T02:30:00Z', '2021-12-07T02:45:00Z', '2021-12-07T03:00:00Z', '2021-12-07T03:15:00Z', '2021-12-07T03:30:00Z', '2021-12-07T03:45:00Z', '2021-12-07T04:00:00Z', '2021-12-07T04:15:00Z', '2021-12-07T04:30:00Z', '2021-12-07T04:45:00Z', '2021-12-07T05:00:00Z', '2021-12-07T05:15:00Z', '2021-12-07T05:30:00Z', '2021-12-07T05:45:00Z', '2021-12-07T06:00:00Z', '2021-12-07T06:15:00Z', '2021-12-07T06:30:00Z', '2021-12-07T06:45:00Z', '2021-12-07T07:00:00Z', '2021-12-07T07:15:00Z', '2021-12-07T07:30:00Z', '2021-12-07T07:45:00Z', '2021-12-07T08:00:00Z', '2021-12-07T08:15:00Z', '2021-12-07T08:30:00Z', '2021-12-07T08:45:00Z', '2021-12-07T09:00:00Z', '2021-12-07T09:15:00Z', '2021-12-07T09:30:00Z', '2021-12-07T09:45:00Z', '2021-12-07T10:00:00Z', '2021-12-07T10:15:00Z', '2021-12-07T10:30:00Z', '2021-12-07T10:45:00Z', '2021-12-07T11:00:00Z', '2021-12-07T11:15:00Z', '2021-12-07T11:30:00Z', '2021-12-07T11:45:00Z', '2021-12-07T12:00:00Z', '2021-12-07T12:15:00Z', '2021-12-07T12:30:00Z', '2021-12-07T12:45:00Z', '2021-12-07T13:00:00Z', '2021-12-07T13:15:00Z', '2021-12-07T13:30:00Z', ], groups: [ { by: { 'transaction.status': 'cancelled', }, totals: { [field]: 37136.841939500686, }, series: { [field]: [ 355.3490131200743, 330.3055256333457, 407.83884157275776, 428.9533930364429, 436.2548034308876, 285.7230952127132, 392.76558843901313, 370.0344751978364, 331.21595173183823, 371.3882993485885, 338.4624380322561, 483.7742051516484, 377.03291332780844, 414.06161737484484, 382.97046103999975, 360.82738029755836, 363.50149679131977, 392.11456710385823, 461.6774201001289, 404.7019653857344, 428.7565196307361, 349.8738683293533, 468.9925765203339, 456.95086199252347, 390.4468243586591, 351.201951957558, 448.6459310030699, 329.2404819993303, 345.42696101913396, 381.18810561072104, 403.41709512819244, 372.577042150698, 423.9187935504961, 420.159203372878, 343.01986900620994, 348.5441033982917, 331.6271572210442, 369.5967089981914, 436.74018789273293, 419.4349941593203, 396.4747069348353, 422.47372911692435, 347.2542386080101, 359.4098272132287, 376.90247419364033, 382.09204461873225, 338.21915115617946, 312.84664380477693, 288.9728851280446, 507.0991265240608, 375.56785741836734, 390.00779083955007, 370.5153880122641, 412.7157547191045, 513.9598105400818, 397.7675980165556, 414.2725390279078, 389.5973571260673, 408.19134769031183, 407.30190969822604, 391.63533783293616, 387.9722978509748, 391.1656719608674, 361.6307289468619, 480.89415564023176, 357.369670914171, 319.6278755095593, 363.802761464002, 411.4652928365155, 330.2602521241386, 406.3307142229724, 488.33433876260733, 394.2576951916534, 362.5230712697027, 371.62804146622744, 451.90649872632497, 401.2243746338653, 341.0569528517861, 403.98180673146203, 406.8345991573571, 357.20399617255634, 307.733676165996, 351.664124097946, 446.2702162614976, 287.55636946785586, 408.4941740295459, 374.8779167037436, 358.6199833782514, 515.3541879145573, 330.10191669584526, 479.9073313192458, 376.818110604959, 353.37923783580374, 364.46292448098336, 387.3372000817254, 292.8035671809615, ], }, }, { by: { 'transaction.status': 'ok', }, totals: { [field]: 52696.64340655463, }, series: { [field]: [ 618.5865450505377, 663.610842193466, 556.8238160974133, 572.8545752921874, 515.8543283370781, 583.3452944058821, 547.4090298814124, 515.9604719252445, 587.2141471094967, 619.8450076986474, 529.0930291914201, 559.6810872719008, 422.6605439105954, 523.7899581319031, 628.372383752648, 523.0680226322413, 601.6401730473798, 584.5344410011239, 593.6985789247184, 453.384758486753, 557.3317780667478, 621.3341071101402, 586.2686563277631, 513.6200512642777, 572.0698027520551, 526.9385175782576, 523.60045538119, 532.9849301400876, 616.908250163973, 587.7628742744747, 467.5570362151239, 576.8320713588967, 477.84966762045843, 593.6231613654957, 532.4483809894616, 567.5727535522612, 614.2889698679285, 595.4294434074892, 562.624721785009, 605.2789836642525, 550.4822854367562, 547.4915066024618, 552.2695978485009, 580.465154565526, 539.6691813913831, 556.9397481773582, 556.4245800664645, 603.428422351564, 457.7043664855097, 494.8350152263508, 573.1267735281064, 518.2624411857695, 623.346442311026, 554.0702166224976, 606.0610974218678, 576.3272324817879, 510.89922965453934, 499.8793794554816, 603.7379749757291, 599.4686531116329, 560.6418816713477, 570.2968749593794, 480.97803785088195, 564.0070635672826, 577.2436109682983, 518.4094382698681, 553.8018866029413, 520.6194771053986, 552.762849649621, 475.33409108515315, 524.12912849246, 508.72474249989375, 577.7982034201506, 578.5048521750765, 503.54179682397813, 492.414584567423, 530.4583352619517, 504.16822445738813, 549.03810398069, 578.585074397685, 534.1830028593554, 507.3381578254184, 518.2289386513759, 591.4953098344265, 582.0250483243833, 505.0297377873074, 505.86956506151546, 572.6247094317519, 482.16415988693205, 427.93552044422876, 549.1804831943311, 510.0633308696188, 489.23225234819375, 612.93101003181, 519.6585182372323, 528.5844578321814, ], }, }, { by: { 'transaction.status': 'aborted', }, totals: { [field]: 57824.45854505795, }, series: { [field]: [ 506.3709370578013, 644.8542681318904, 596.7553570437444, 632.9772407677009, 570.8162328546368, 593.5745602118294, 618.0465855121598, 508.64556781922664, 603.6776731131123, 583.3473239799015, 594.8521211952932, 578.7511786534105, 610.4816945540877, 614.6546048592469, 640.0117836909517, 606.2752540449574, 595.1224800461486, 592.2639406098496, 586.1156326378982, 638.2613478004037, 661.2900829922954, 588.092376888531, 665.4576121383055, 592.0243579556254, 570.7731105998982, 612.3171550504326, 721.2246820680581, 584.3860797096143, 576.1937193205075, 569.4956402059744, 569.5982925348993, 554.2580987907393, 618.6371317926661, 599.2949303273468, 627.3011199581633, 545.2993553741798, 606.3386721851007, 525.0508191974686, 634.5277250090829, 654.1852360241252, 618.0540774544965, 546.8769241154781, 591.8735377563889, 620.368652438997, 520.611885627431, 610.2838845102792, 601.237914513572, 592.2661964991539, 592.4344833174763, 543.5002550443128, 589.6439077314019, 582.8520903569056, 688.9635241798925, 580.5829537438326, 662.0884447935787, 575.7727647385624, 643.0336613242248, 621.031725692256, 634.463039048471, 543.5856642692512, 645.6111078966451, 561.9056957400661, 641.0803172364893, 634.799123787404, 573.7935398185274, 641.6876068953679, 668.2664751233112, 550.8815904726317, 603.0759556731579, 655.9167930987059, 652.8740539367475, 662.7960056880313, 639.182415933369, 572.4049597703238, 708.767659054371, 612.1749763526883, 613.2663172435215, 559.6816136888561, 618.1103770987904, 600.8635770573385, 614.8627188852428, 645.932823477558, 569.7964077818579, 552.1901978269458, 581.2760987065903, 620.62222024277, 531.4688980272753, 610.3209864822912, 472.5993926910091, 619.8009766027724, 609.1157838182586, 549.9578043134536, 621.840977798967, 607.0086606301206, 582.4215465982414, 666.9753197450221, ], }, }, ], ...rest, }; } export function MetricsFieldByMeasurementRating({field, ...rest} = {}) { return { start: '2022-01-11T12:00:00Z', end: '2022-01-12T12:00:00Z', query: 'transaction:/bar/:orgId/', intervals: [ '2022-01-11T12:00:00Z', '2022-01-11T12:15:00Z', '2022-01-11T12:30:00Z', '2022-01-11T12:45:00Z', '2022-01-11T13:00:00Z', '2022-01-11T13:15:00Z', '2022-01-11T13:30:00Z', '2022-01-11T13:45:00Z', '2022-01-11T14:00:00Z', '2022-01-11T14:15:00Z', '2022-01-11T14:30:00Z', '2022-01-11T14:45:00Z', '2022-01-11T15:00:00Z', '2022-01-11T15:15:00Z', '2022-01-11T15:30:00Z', '2022-01-11T15:45:00Z', '2022-01-11T16:00:00Z', '2022-01-11T16:15:00Z', '2022-01-11T16:30:00Z', '2022-01-11T16:45:00Z', '2022-01-11T17:00:00Z', '2022-01-11T17:15:00Z', '2022-01-11T17:30:00Z', '2022-01-11T17:45:00Z', '2022-01-11T18:00:00Z', '2022-01-11T18:15:00Z', '2022-01-11T18:30:00Z', '2022-01-11T18:45:00Z', '2022-01-11T19:00:00Z', '2022-01-11T19:15:00Z', '2022-01-11T19:30:00Z', '2022-01-11T19:45:00Z', '2022-01-11T20:00:00Z', '2022-01-11T20:15:00Z', '2022-01-11T20:30:00Z', '2022-01-11T20:45:00Z', '2022-01-11T21:00:00Z', '2022-01-11T21:15:00Z', '2022-01-11T21:30:00Z', '2022-01-11T21:45:00Z', '2022-01-11T22:00:00Z', '2022-01-11T22:15:00Z', '2022-01-11T22:30:00Z', '2022-01-11T22:45:00Z', '2022-01-11T23:00:00Z', '2022-01-11T23:15:00Z', '2022-01-11T23:30:00Z', '2022-01-11T23:45:00Z', '2022-01-12T00:00:00Z', '2022-01-12T00:15:00Z', '2022-01-12T00:30:00Z', '2022-01-12T00:45:00Z', '2022-01-12T01:00:00Z', '2022-01-12T01:15:00Z', '2022-01-12T01:30:00Z', '2022-01-12T01:45:00Z', '2022-01-12T02:00:00Z', '2022-01-12T02:15:00Z', '2022-01-12T02:30:00Z', '2022-01-12T02:45:00Z', '2022-01-12T03:00:00Z', '2022-01-12T03:15:00Z', '2022-01-12T03:30:00Z', '2022-01-12T03:45:00Z', '2022-01-12T04:00:00Z', '2022-01-12T04:15:00Z', '2022-01-12T04:30:00Z', '2022-01-12T04:45:00Z', '2022-01-12T05:00:00Z', '2022-01-12T05:15:00Z', '2022-01-12T05:30:00Z', '2022-01-12T05:45:00Z', '2022-01-12T06:00:00Z', '2022-01-12T06:15:00Z', '2022-01-12T06:30:00Z', '2022-01-12T06:45:00Z', '2022-01-12T07:00:00Z', '2022-01-12T07:15:00Z', '2022-01-12T07:30:00Z', '2022-01-12T07:45:00Z', '2022-01-12T08:00:00Z', '2022-01-12T08:15:00Z', '2022-01-12T08:30:00Z', '2022-01-12T08:45:00Z', '2022-01-12T09:00:00Z', '2022-01-12T09:15:00Z', '2022-01-12T09:30:00Z', '2022-01-12T09:45:00Z', '2022-01-12T10:00:00Z', '2022-01-12T10:15:00Z', '2022-01-12T10:30:00Z', '2022-01-12T10:45:00Z', '2022-01-12T11:00:00Z', '2022-01-12T11:15:00Z', '2022-01-12T11:30:00Z', '2022-01-12T11:45:00Z', ], groups: [ { by: { measurement_rating: 'meh', }, totals: { [field]: 59657.82147954738, }, series: { [field]: [ 627.8710085009992, 660.3732727609262, 674.8245160444908, 705.7112209913826, 638.7849368908317, 672.0551387994523, 584.1424336269132, 656.8170140144678, 694.0211949381348, 671.6675037316546, 528.4087406716776, 676.5128951392546, 600.0000530619433, 600.3271279192944, 595.962597402425, 660.3533342181285, 578.8135726995977, 617.865395810204, 679.645373106888, 606.9009529821006, 516.7867575433484, 617.7988476760579, 690.723243160695, 572.8257630221008, 638.6630436210442, 645.4060949184075, 664.9109063659059, 613.4485564745689, 560.2819084728444, 622.9671342759495, 675.9772730155677, 629.6971892029818, 685.1106074355941, 574.8664599436279, 642.2611143842013, 594.6400386772042, 675.1634378991598, 497.5093447768292, 664.6616761026517, 600.9714740500857, 657.4807726712432, 659.9994653193004, 605.5650509648125, 627.7199337772342, 573.6977697255402, 565.8501964127163, 578.7930366073543, 610.3688310051944, 572.2514019341626, 647.230520002099, 595.6432048262811, 671.5839698243627, 628.1605429054315, 653.6161372295504, 599.469724243095, 596.1372762742918, 603.2057739937367, 713.6781026263965, 578.485574045103, 709.9546232277185, 579.786958477689, 601.8554605474623, 585.3097307901418, 613.7167564021971, 697.1751005777187, 669.9539880417157, 642.9039583184931, 609.8772970012956, 671.9537024280132, 633.9938144924257, 676.8171464452776, 628.9863519863605, 556.0483275910225, 719.2936071408676, 534.1351561787801, 618.381740471172, 619.9547224983717, 643.4504252589056, 559.4408984828945, 593.5496032036424, 590.637420613542, 561.9943118748838, 590.6074713472234, 589.4661749945312, 581.9006419447675, 679.0166524357721, 644.6418619189993, 547.645704746189, 663.5041801256356, 577.7843949214679, 679.6588503827807, 594.7580330399779, 600.7894872538927, 586.7977877803305, 591.2840548089212, 556.12864307881, ], }, }, { by: { measurement_rating: 'good', }, totals: { [field]: 41729.69780070605, }, series: { [field]: [ 407.0029208783292, 469.62724587830684, 454.34267553793075, 402.61622820164104, 554.0103317764977, 457.41926676467, 492.5535478151178, 324.5119889676286, 531.4261235102066, 338.7693289660308, 412.0947170246884, 397.02746245831435, 391.47293874689, 461.9136650347087, 438.6034491442621, 362.7865488968385, 567.2946319711139, 463.0372545781996, 377.68915382635635, 486.8428068579126, 415.98054922571663, 479.31989702958253, 377.9969955095231, 377.9690822586457, 477.70267062070826, 470.59034273893906, 517.7261180308863, 423.51373190191293, 418.97124196308715, 367.56335259387566, 521.1628140257969, 366.0280032569374, 461.2689821105869, 500.3354345944678, 410.59934609462005, 493.6205728218092, 460.7637215689551, 504.32574169124496, 442.906625445494, 407.87998610416764, 479.4393876059118, 381.1710562156919, 359.75096103758756, 403.25841013289715, 476.211409675843, 449.687230711299, 368.32591347197337, 412.9866065250437, 446.0161774779158, 457.4779187300537, 428.7007173218327, 447.2468412159046, 470.12069925547297, 450.32953563872456, 434.56842744974495, 557.3725078674429, 447.60227163437594, 409.1502149342967, 382.10322175289224, 354.25859083882625, 403.9449516788097, 386.29106928677214, 422.7736366276359, 427.8294014603486, 461.68072987638214, 444.4155014715653, 460.8782308065721, 433.9434865001038, 439.09792342424066, 398.25595201132535, 389.0761210520433, 297.4726362248142, 389.4235561171558, 479.0235610215395, 387.444956212841, 362.7778589964607, 398.00754840520335, 359.17881841516055, 397.8650722422652, 364.32072694378155, 479.8682002432449, 418.0395544797137, 505.59338496821607, 406.6876586595074, 472.0800659991642, 549.8364529430182, 427.14548512061754, 449.9182582198993, 503.6022491487085, 449.81262100020496, 418.6007917579805, 518.0564967207595, 457.8193500403122, 409.0680400560197, 409.8900359135433, 446.93182074377995, ], }, }, { by: { measurement_rating: 'poor', }, totals: { [field]: 48688.88480702653, }, series: { [field]: [ 532.9940899156505, 555.0330363499673, 416.85526609901774, 468.6994279976622, 473.9822164692267, 522.9859853549078, 557.9674331906216, 504.2126379479356, 569.602173148453, 439.6555459223781, 504.468223033432, 459.8232932709954, 518.2451215506339, 454.745336669694, 459.7438329270245, 643.726203385831, 489.14164165998227, 528.0337801781527, 551.0266762546081, 594.8678875905551, 574.1854520315023, 430.8904327194787, 581.5993646618615, 524.3833074991704, 544.1759927360187, 505.06726483322007, 502.374773557496, 476.89141558357716, 466.3151517431169, 436.18994821194525, 514.5874825305849, 452.89103244507334, 508.0188524107445, 488.6078414293525, 443.63762276335933, 469.61129593278685, 558.6492754523147, 485.10735906311544, 502.89090107622224, 572.9773143690379, 542.9498977997674, 558.1515064296876, 506.13352353300786, 471.17053023188123, 552.5317430757186, 459.53421389507935, 482.6295388155034, 442.6993575642006, 451.08913122524774, 519.5687407640459, 537.8283933661014, 487.52632337623737, 557.4074389350708, 397.0436051013438, 546.6554757932475, 587.1175995663493, 454.6079713161996, 482.2197133011751, 509.0090185519107, 506.8860953656434, 441.361745107081, 500.4002433293298, 562.8857216650699, 485.0412976560473, 608.1737788690727, 453.65052738534695, 499.2987049270883, 536.0036407904471, 543.0078459679887, 506.91500622252, 442.8268802366098, 554.2502152107439, 501.9524315010354, 471.50937986635176, 436.38941325012775, 610.0136480436144, 562.8242381932404, 481.2248377102762, 511.106044904139, 601.0888690479637, 501.8806117397912, 412.9225865400586, 498.3050066172081, 585.4472430228982, 540.7834281696422, 525.3457563960907, 453.9934677354221, 429.6631596662845, 522.819097545152, 522.12144489971, 537.8571173057984, 503.97608362579393, 504.05831976814727, 608.6763742781615, 428.3920276554025, 465.09690420274455, ], }, }, ], ...rest, }; } export function MetricsFieldsByMeasurementRating({fields, ...rest} = {}) { return { start: '2022-01-04T10:30:00Z', end: '2022-01-05T10:30:00Z', query: '', intervals: [ '2022-01-04T10:30:00Z', '2022-01-04T10:45:00Z', '2022-01-04T11:00:00Z', '2022-01-04T11:15:00Z', '2022-01-04T11:30:00Z', '2022-01-04T11:45:00Z', '2022-01-04T12:00:00Z', '2022-01-04T12:15:00Z', '2022-01-04T12:30:00Z', '2022-01-04T12:45:00Z', '2022-01-04T13:00:00Z', '2022-01-04T13:15:00Z', '2022-01-04T13:30:00Z', '2022-01-04T13:45:00Z', '2022-01-04T14:00:00Z', '2022-01-04T14:15:00Z', '2022-01-04T14:30:00Z', '2022-01-04T14:45:00Z', '2022-01-04T15:00:00Z', '2022-01-04T15:15:00Z', '2022-01-04T15:30:00Z', '2022-01-04T15:45:00Z', '2022-01-04T16:00:00Z', '2022-01-04T16:15:00Z', '2022-01-04T16:30:00Z', '2022-01-04T16:45:00Z', '2022-01-04T17:00:00Z', '2022-01-04T17:15:00Z', '2022-01-04T17:30:00Z', '2022-01-04T17:45:00Z', '2022-01-04T18:00:00Z', '2022-01-04T18:15:00Z', '2022-01-04T18:30:00Z', '2022-01-04T18:45:00Z', '2022-01-04T19:00:00Z', '2022-01-04T19:15:00Z', '2022-01-04T19:30:00Z', '2022-01-04T19:45:00Z', '2022-01-04T20:00:00Z', '2022-01-04T20:15:00Z', '2022-01-04T20:30:00Z', '2022-01-04T20:45:00Z', '2022-01-04T21:00:00Z', '2022-01-04T21:15:00Z', '2022-01-04T21:30:00Z', '2022-01-04T21:45:00Z', '2022-01-04T22:00:00Z', '2022-01-04T22:15:00Z', '2022-01-04T22:30:00Z', '2022-01-04T22:45:00Z', '2022-01-04T23:00:00Z', '2022-01-04T23:15:00Z', '2022-01-04T23:30:00Z', '2022-01-04T23:45:00Z', '2022-01-05T00:00:00Z', '2022-01-05T00:15:00Z', '2022-01-05T00:30:00Z', '2022-01-05T00:45:00Z', '2022-01-05T01:00:00Z', '2022-01-05T01:15:00Z', '2022-01-05T01:30:00Z', '2022-01-05T01:45:00Z', '2022-01-05T02:00:00Z', '2022-01-05T02:15:00Z', '2022-01-05T02:30:00Z', '2022-01-05T02:45:00Z', '2022-01-05T03:00:00Z', '2022-01-05T03:15:00Z', '2022-01-05T03:30:00Z', '2022-01-05T03:45:00Z', '2022-01-05T04:00:00Z', '2022-01-05T04:15:00Z', '2022-01-05T04:30:00Z', '2022-01-05T04:45:00Z', '2022-01-05T05:00:00Z', '2022-01-05T05:15:00Z', '2022-01-05T05:30:00Z', '2022-01-05T05:45:00Z', '2022-01-05T06:00:00Z', '2022-01-05T06:15:00Z', '2022-01-05T06:30:00Z', '2022-01-05T06:45:00Z', '2022-01-05T07:00:00Z', '2022-01-05T07:15:00Z', '2022-01-05T07:30:00Z', '2022-01-05T07:45:00Z', '2022-01-05T08:00:00Z', '2022-01-05T08:15:00Z', '2022-01-05T08:30:00Z', '2022-01-05T08:45:00Z', '2022-01-05T09:00:00Z', '2022-01-05T09:15:00Z', '2022-01-05T09:30:00Z', '2022-01-05T09:45:00Z', '2022-01-05T10:00:00Z', '2022-01-05T10:15:00Z', ], groups: [ { by: {measurement_rating: 'poor'}, totals: { [fields[0]]: 2, [fields[1]]: 4, }, series: { [fields[1]]: [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, ], [fields[0]]: [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, ], }, }, { by: {measurement_rating: 'good'}, totals: { [fields[2]]: 2, [fields[1]]: 12, [fields[0]]: 14, }, series: { [fields[1]]: [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 1, 0, ], [fields[2]]: [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, ], [fields[0]]: [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 1, 0, ], }, }, { by: {measurement_rating: 'meh'}, totals: { [fields[0]]: 1, [fields[1]]: 1, }, series: { [fields[1]]: [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, ], [fields[0]]: [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, ], }, }, ], ...rest, }; } export function MetricsTotalCountByReleaseIn24h() { return { query: 'release:7a82c130be9143361f20bc77252df783cf91e4fc OR release:e102abb2c46e7fe8686441091005c12aed90da99', intervals: [ '2021-03-17T10:00:00Z', '2021-03-17T11:00:00Z', '2021-03-17T12:00:00Z', '2021-03-17T13:00:00Z', '2021-03-17T14:00:00Z', '2021-03-17T15:00:00Z', '2021-03-17T16:00:00Z', '2021-03-17T17:00:00Z', '2021-03-17T18:00:00Z', '2021-03-17T19:00:00Z', '2021-03-17T20:00:00Z', '2021-03-17T21:00:00Z', '2021-03-17T22:00:00Z', '2021-03-17T23:00:00Z', '2021-03-18T00:00:00Z', '2021-03-18T01:00:00Z', '2021-03-18T02:00:00Z', '2021-03-18T03:00:00Z', '2021-03-18T04:00:00Z', '2021-03-18T05:00:00Z', '2021-03-18T06:00:00Z', '2021-03-18T07:00:00Z', '2021-03-18T08:00:00Z', '2021-03-18T09:00:00Z', ], groups: [ { by: {project: 123, release: '7a82c130be9143361f20bc77252df783cf91e4fc'}, totals: {'sum(session)': 219826}, series: { 'sum(session)': [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3444, 14912, 15649, 18019, 16726, 17540, 16970, 25015, 34686, 46434, 10431, ], }, }, { by: {release: 'e102abb2c46e7fe8686441091005c12aed90da99', project: 123}, totals: {'sum(session)': 6320}, series: { 'sum(session)': [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5809, 400, 22, 26, 12, 19, 8, 0, 19, 5, 0, ], }, }, ], }; } export function MetricsSessionUserCountByStatusByRelease() { return { start: '2022-01-15T00:00:00Z', end: '2022-01-29T00:00:00Z', query: '', intervals: [ '2022-01-15T00:00:00Z', '2022-01-16T00:00:00Z', '2022-01-17T00:00:00Z', '2022-01-18T00:00:00Z', '2022-01-19T00:00:00Z', '2022-01-20T00:00:00Z', '2022-01-21T00:00:00Z', '2022-01-22T00:00:00Z', '2022-01-23T00:00:00Z', '2022-01-24T00:00:00Z', '2022-01-25T00:00:00Z', '2022-01-26T00:00:00Z', '2022-01-27T00:00:00Z', '2022-01-28T00:00:00Z', ], groups: [ { by: {'session.status': 'crashed', release: '1'}, totals: { 'sum(sentry.sessions.session)': 34, 'count_unique(sentry.sessions.user)': 1, }, series: { 'sum(sentry.sessions.session)': [0, 0, 0, 0, 0, 0, 0, 0, 0, 23, 11, 0, 0, 0], 'count_unique(sentry.sessions.user)': [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, ], }, }, { by: {'session.status': 'abnormal', release: '1'}, totals: { 'sum(sentry.sessions.session)': 1, 'count_unique(sentry.sessions.user)': 1, }, series: { 'sum(sentry.sessions.session)': [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 'count_unique(sentry.sessions.user)': [ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ], }, }, { by: {'session.status': 'errored', release: '1'}, totals: { 'sum(sentry.sessions.session)': 451, 'count_unique(sentry.sessions.user)': 2, }, series: { 'sum(sentry.sessions.session)': [0, 0, 0, 0, 0, 37, 0, 0, 0, 335, 79, 0, 0, 0], 'count_unique(sentry.sessions.user)': [ 0, 0, 0, 0, 0, 1, 0, 0, 0, 2, 2, 0, 0, 0, ], }, }, { by: {'session.status': 'healthy', release: '1'}, totals: { 'sum(sentry.sessions.session)': 5058, 'count_unique(sentry.sessions.user)': 3, }, series: { 'sum(sentry.sessions.session)': [ 0, 0, 0, 0, 0, 2503, 661, 0, 0, 1464, 430, 0, 0, 0, ], 'count_unique(sentry.sessions.user)': [ 0, 0, 0, 0, 0, 3, 3, 0, 0, 1, 1, 0, 0, 0, ], }, }, { by: {'session.status': 'crashed', release: '2'}, totals: { 'sum(sentry.sessions.session)': 35, 'count_unique(sentry.sessions.user)': 2, }, series: { 'sum(sentry.sessions.session)': [1, 0, 0, 0, 0, 0, 0, 0, 0, 23, 11, 0, 0, 0], 'count_unique(sentry.sessions.user)': [ 1, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 0, 0, 0, ], }, }, { by: {'session.status': 'abnormal', release: '2'}, totals: { 'sum(sentry.sessions.session)': 1, 'count_unique(sentry.sessions.user)': 1, }, series: { 'sum(sentry.sessions.session)': [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 'count_unique(sentry.sessions.user)': [ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ], }, }, { by: {'session.status': 'errored', release: '2'}, totals: { 'sum(sentry.sessions.session)': 452, 'count_unique(sentry.sessions.user)': 1, }, series: { 'sum(sentry.sessions.session)': [1, 0, 0, 0, 0, 37, 0, 0, 0, 335, 79, 0, 0, 0], 'count_unique(sentry.sessions.user)': [ 1, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, ], }, }, { by: {'session.status': 'healthy', release: '2'}, totals: { 'sum(sentry.sessions.session)': 5059, 'count_unique(sentry.sessions.user)': 10, }, series: { 'sum(sentry.sessions.session)': [ 1, 0, 0, 0, 0, 2503, 661, 0, 0, 1464, 430, 0, 0, 0, ], 'count_unique(sentry.sessions.user)': [ 1, 0, 0, 0, 0, 10, 3, 0, 0, 4, 3, 0, 0, 0, ], }, }, ], }; }