metrics.js 39 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021
  1. // Totals will not be correct for all aggregation functions.
  2. // Consider adding aggregation specific fixture (e.g. MetricsP75Field) if your test depends on it.
  3. export function MetricsField({field, ...rest} = {}) {
  4. return {
  5. start: '2021-12-01T16:15:00Z',
  6. end: '2021-12-02T16:15:00Z',
  7. query: '',
  8. intervals: [
  9. '2021-12-01T16:15:00Z',
  10. '2021-12-01T16:30:00Z',
  11. '2021-12-01T16:45:00Z',
  12. '2021-12-01T17:00:00Z',
  13. '2021-12-01T17:15:00Z',
  14. '2021-12-01T17:30:00Z',
  15. '2021-12-01T17:45:00Z',
  16. '2021-12-01T18:00:00Z',
  17. '2021-12-01T18:15:00Z',
  18. '2021-12-01T18:30:00Z',
  19. '2021-12-01T18:45:00Z',
  20. '2021-12-01T19:00:00Z',
  21. '2021-12-01T19:15:00Z',
  22. '2021-12-01T19:30:00Z',
  23. '2021-12-01T19:45:00Z',
  24. '2021-12-01T20:00:00Z',
  25. '2021-12-01T20:15:00Z',
  26. '2021-12-01T20:30:00Z',
  27. '2021-12-01T20:45:00Z',
  28. '2021-12-01T21:00:00Z',
  29. '2021-12-01T21:15:00Z',
  30. '2021-12-01T21:30:00Z',
  31. '2021-12-01T21:45:00Z',
  32. '2021-12-01T22:00:00Z',
  33. '2021-12-01T22:15:00Z',
  34. '2021-12-01T22:30:00Z',
  35. '2021-12-01T22:45:00Z',
  36. '2021-12-01T23:00:00Z',
  37. '2021-12-01T23:15:00Z',
  38. '2021-12-01T23:30:00Z',
  39. '2021-12-01T23:45:00Z',
  40. '2021-12-02T00:00:00Z',
  41. '2021-12-02T00:15:00Z',
  42. '2021-12-02T00:30:00Z',
  43. '2021-12-02T00:45:00Z',
  44. '2021-12-02T01:00:00Z',
  45. '2021-12-02T01:15:00Z',
  46. '2021-12-02T01:30:00Z',
  47. '2021-12-02T01:45:00Z',
  48. '2021-12-02T02:00:00Z',
  49. '2021-12-02T02:15:00Z',
  50. '2021-12-02T02:30:00Z',
  51. '2021-12-02T02:45:00Z',
  52. '2021-12-02T03:00:00Z',
  53. '2021-12-02T03:15:00Z',
  54. '2021-12-02T03:30:00Z',
  55. '2021-12-02T03:45:00Z',
  56. '2021-12-02T04:00:00Z',
  57. '2021-12-02T04:15:00Z',
  58. '2021-12-02T04:30:00Z',
  59. '2021-12-02T04:45:00Z',
  60. '2021-12-02T05:00:00Z',
  61. '2021-12-02T05:15:00Z',
  62. '2021-12-02T05:30:00Z',
  63. '2021-12-02T05:45:00Z',
  64. '2021-12-02T06:00:00Z',
  65. '2021-12-02T06:15:00Z',
  66. '2021-12-02T06:30:00Z',
  67. '2021-12-02T06:45:00Z',
  68. '2021-12-02T07:00:00Z',
  69. '2021-12-02T07:15:00Z',
  70. '2021-12-02T07:30:00Z',
  71. '2021-12-02T07:45:00Z',
  72. '2021-12-02T08:00:00Z',
  73. '2021-12-02T08:15:00Z',
  74. '2021-12-02T08:30:00Z',
  75. '2021-12-02T08:45:00Z',
  76. '2021-12-02T09:00:00Z',
  77. '2021-12-02T09:15:00Z',
  78. '2021-12-02T09:30:00Z',
  79. '2021-12-02T09:45:00Z',
  80. '2021-12-02T10:00:00Z',
  81. '2021-12-02T10:15:00Z',
  82. '2021-12-02T10:30:00Z',
  83. '2021-12-02T10:45:00Z',
  84. '2021-12-02T11:00:00Z',
  85. '2021-12-02T11:15:00Z',
  86. '2021-12-02T11:30:00Z',
  87. '2021-12-02T11:45:00Z',
  88. '2021-12-02T12:00:00Z',
  89. '2021-12-02T12:15:00Z',
  90. '2021-12-02T12:30:00Z',
  91. '2021-12-02T12:45:00Z',
  92. '2021-12-02T13:00:00Z',
  93. '2021-12-02T13:15:00Z',
  94. '2021-12-02T13:30:00Z',
  95. '2021-12-02T13:45:00Z',
  96. '2021-12-02T14:00:00Z',
  97. '2021-12-02T14:15:00Z',
  98. '2021-12-02T14:30:00Z',
  99. '2021-12-02T14:45:00Z',
  100. '2021-12-02T15:00:00Z',
  101. '2021-12-02T15:15:00Z',
  102. '2021-12-02T15:30:00Z',
  103. '2021-12-02T15:45:00Z',
  104. '2021-12-02T16:00:00Z',
  105. ],
  106. groups: [
  107. {
  108. by: {},
  109. totals: {
  110. [field]: 51292.95404741901,
  111. },
  112. series: {
  113. [field]: [
  114. 443.6200417187068, 471.7512262596214, 632.5356294251225, 538.6063865509535,
  115. 524.4706847412767, 552.1308328866158, 491.4847951529728, 540.5649544109818,
  116. 430.31622543090765, 513.2803858330382, 498.20598088568426, 503.9482408241235,
  117. 496.3081254057422, 530.4951893480746, 510.9472734431329, 534.2121619563322,
  118. 580.24191602519, 582.2308981360263, 628.6978339387008, 569.093042423482,
  119. 625.5703758567254, 529.286046746119, 491.3038256504387, 548.2822063955006,
  120. 569.3739373104116, 579.5492159758986, 483.9070230718182, 529.9636517032774,
  121. 554.3095224302028, 546.8567462459974, 574.3167313021837, 578.9293435905665,
  122. 561.8965496805288, 576.137674866579, 529.6122522035633, 513.9424504410429,
  123. 543.8130703563698, 597.6542214420452, 510.1568375049254, 510.7187029189223,
  124. 433.78137928589973, 539.3227194785493, 436.44338223053234, 607.1985174516628,
  125. 524.8753880194068, 501.7107697990002, 514.0727518760925, 541.2173843758375,
  126. 556.0898842681038, 535.6274044037233, 475.75355633285346, 587.3256393771101,
  127. 494.61335151920775, 643.5242484747213, 519.9786827806394, 534.7536939750254,
  128. 570.1995703475561, 452.91363051761834, 613.7709480932585, 520.9545797679832,
  129. 497.2156651159481, 625.7054147147829, 490.6365344675922, 592.1175307910397,
  130. 564.6276355603038, 514.8572640893523, 484.47902185133046, 597.7622625233755,
  131. 559.1799635501319, 571.7109630540343, 513.212778566814, 549.1636248727518,
  132. 462.32331107946504, 551.0869305265527, 576.872028698758, 636.4899532813711,
  133. 479.0486254908533, 543.761081985735, 488.9454132823779, 536.1309059508741,
  134. 534.9354940989901, 567.6136279473333, 458.8870965420118, 514.9547377042924,
  135. 525.3278756572803, 502.05863531061544, 575.8454944963837, 524.476069016465,
  136. 431.1190903001866, 543.5139624946099, 598.8881832598959, 510.5100592771207,
  137. 541.151976697214, 550.0881388522994, 485.26355742991586, 460.14344601636975,
  138. ],
  139. },
  140. },
  141. ],
  142. ...rest,
  143. };
  144. }
  145. export function MetricsFieldByTransaction({field, ...rest}) {
  146. return {
  147. start: '2021-11-28T18:00:00Z',
  148. end: '2021-11-29T17:07:00Z',
  149. query: '',
  150. intervals: [
  151. '2021-11-28T18:00:00Z',
  152. '2021-11-28T19:00:00Z',
  153. '2021-11-28T20:00:00Z',
  154. '2021-11-28T21:00:00Z',
  155. '2021-11-28T22:00:00Z',
  156. '2021-11-28T23:00:00Z',
  157. '2021-11-29T00:00:00Z',
  158. '2021-11-29T01:00:00Z',
  159. '2021-11-29T02:00:00Z',
  160. '2021-11-29T03:00:00Z',
  161. '2021-11-29T04:00:00Z',
  162. '2021-11-29T05:00:00Z',
  163. '2021-11-29T06:00:00Z',
  164. '2021-11-29T07:00:00Z',
  165. '2021-11-29T08:00:00Z',
  166. '2021-11-29T09:00:00Z',
  167. '2021-11-29T10:00:00Z',
  168. '2021-11-29T11:00:00Z',
  169. '2021-11-29T12:00:00Z',
  170. '2021-11-29T13:00:00Z',
  171. '2021-11-29T14:00:00Z',
  172. '2021-11-29T15:00:00Z',
  173. '2021-11-29T16:00:00Z',
  174. '2021-11-29T17:00:00Z',
  175. ],
  176. groups: [
  177. {
  178. by: {
  179. transaction: '/bar/:ordId/',
  180. },
  181. totals: {
  182. [field]: 913.2667882519335,
  183. },
  184. series: {
  185. [field]: [
  186. 878.0965537951091, 892.4128102279035, 917.4473775231118, 884.0592721573165,
  187. 882.8631377404286, 977.3661107427924, 860.5718105590834, 1036.8824425087375,
  188. 857.4349331408594, 872.0064570283837, 954.3387108987523, 982.0946255973818,
  189. 895.0158989602506, 842.4015901457649, 913.8372197059941, 845.6186018412996,
  190. 971.3439877765327, 977.5787125586039, 934.8308904844635, 924.3141080070806,
  191. 889.9088931286851, 861.11871846869, 945.2639201121442, 921.5961349370338,
  192. ],
  193. },
  194. },
  195. {
  196. by: {
  197. transaction: '/foo/:ordId/',
  198. },
  199. totals: {
  200. [field]: 334.68332989807976,
  201. },
  202. series: {
  203. [field]: [
  204. 250.3774996770386, 371.6466508301939, 389.0367396067616, 364.3194808493991,
  205. 200.31796886834115, 382.2695255829035, 315.19978364600627, 343.65161544673435,
  206. 394.0993214558925, 303.2183329284477, 331.8381124232099, 303.94194516767607,
  207. 340.4228803656242, 381.4180332281987, 282.5149785708053, 338.32392357546075,
  208. 375.26120755255505, 320.6268918566363, 342.67556406266016, 386.13447628268096,
  209. 295.9214530587189, 339.2846900047603, 328.4972817992001, 351.4015607140078,
  210. ],
  211. },
  212. },
  213. ],
  214. ...rest,
  215. };
  216. }
  217. export function MetricsFieldByTransactionStatus({field, ...rest} = {}) {
  218. return {
  219. start: '2021-12-06T13:45:00Z',
  220. end: '2021-12-07T13:45:00Z',
  221. query: '',
  222. intervals: [
  223. '2021-12-06T13:45:00Z',
  224. '2021-12-06T14:00:00Z',
  225. '2021-12-06T14:15:00Z',
  226. '2021-12-06T14:30:00Z',
  227. '2021-12-06T14:45:00Z',
  228. '2021-12-06T15:00:00Z',
  229. '2021-12-06T15:15:00Z',
  230. '2021-12-06T15:30:00Z',
  231. '2021-12-06T15:45:00Z',
  232. '2021-12-06T16:00:00Z',
  233. '2021-12-06T16:15:00Z',
  234. '2021-12-06T16:30:00Z',
  235. '2021-12-06T16:45:00Z',
  236. '2021-12-06T17:00:00Z',
  237. '2021-12-06T17:15:00Z',
  238. '2021-12-06T17:30:00Z',
  239. '2021-12-06T17:45:00Z',
  240. '2021-12-06T18:00:00Z',
  241. '2021-12-06T18:15:00Z',
  242. '2021-12-06T18:30:00Z',
  243. '2021-12-06T18:45:00Z',
  244. '2021-12-06T19:00:00Z',
  245. '2021-12-06T19:15:00Z',
  246. '2021-12-06T19:30:00Z',
  247. '2021-12-06T19:45:00Z',
  248. '2021-12-06T20:00:00Z',
  249. '2021-12-06T20:15:00Z',
  250. '2021-12-06T20:30:00Z',
  251. '2021-12-06T20:45:00Z',
  252. '2021-12-06T21:00:00Z',
  253. '2021-12-06T21:15:00Z',
  254. '2021-12-06T21:30:00Z',
  255. '2021-12-06T21:45:00Z',
  256. '2021-12-06T22:00:00Z',
  257. '2021-12-06T22:15:00Z',
  258. '2021-12-06T22:30:00Z',
  259. '2021-12-06T22:45:00Z',
  260. '2021-12-06T23:00:00Z',
  261. '2021-12-06T23:15:00Z',
  262. '2021-12-06T23:30:00Z',
  263. '2021-12-06T23:45:00Z',
  264. '2021-12-07T00:00:00Z',
  265. '2021-12-07T00:15:00Z',
  266. '2021-12-07T00:30:00Z',
  267. '2021-12-07T00:45:00Z',
  268. '2021-12-07T01:00:00Z',
  269. '2021-12-07T01:15:00Z',
  270. '2021-12-07T01:30:00Z',
  271. '2021-12-07T01:45:00Z',
  272. '2021-12-07T02:00:00Z',
  273. '2021-12-07T02:15:00Z',
  274. '2021-12-07T02:30:00Z',
  275. '2021-12-07T02:45:00Z',
  276. '2021-12-07T03:00:00Z',
  277. '2021-12-07T03:15:00Z',
  278. '2021-12-07T03:30:00Z',
  279. '2021-12-07T03:45:00Z',
  280. '2021-12-07T04:00:00Z',
  281. '2021-12-07T04:15:00Z',
  282. '2021-12-07T04:30:00Z',
  283. '2021-12-07T04:45:00Z',
  284. '2021-12-07T05:00:00Z',
  285. '2021-12-07T05:15:00Z',
  286. '2021-12-07T05:30:00Z',
  287. '2021-12-07T05:45:00Z',
  288. '2021-12-07T06:00:00Z',
  289. '2021-12-07T06:15:00Z',
  290. '2021-12-07T06:30:00Z',
  291. '2021-12-07T06:45:00Z',
  292. '2021-12-07T07:00:00Z',
  293. '2021-12-07T07:15:00Z',
  294. '2021-12-07T07:30:00Z',
  295. '2021-12-07T07:45:00Z',
  296. '2021-12-07T08:00:00Z',
  297. '2021-12-07T08:15:00Z',
  298. '2021-12-07T08:30:00Z',
  299. '2021-12-07T08:45:00Z',
  300. '2021-12-07T09:00:00Z',
  301. '2021-12-07T09:15:00Z',
  302. '2021-12-07T09:30:00Z',
  303. '2021-12-07T09:45:00Z',
  304. '2021-12-07T10:00:00Z',
  305. '2021-12-07T10:15:00Z',
  306. '2021-12-07T10:30:00Z',
  307. '2021-12-07T10:45:00Z',
  308. '2021-12-07T11:00:00Z',
  309. '2021-12-07T11:15:00Z',
  310. '2021-12-07T11:30:00Z',
  311. '2021-12-07T11:45:00Z',
  312. '2021-12-07T12:00:00Z',
  313. '2021-12-07T12:15:00Z',
  314. '2021-12-07T12:30:00Z',
  315. '2021-12-07T12:45:00Z',
  316. '2021-12-07T13:00:00Z',
  317. '2021-12-07T13:15:00Z',
  318. '2021-12-07T13:30:00Z',
  319. ],
  320. groups: [
  321. {
  322. by: {
  323. 'transaction.status': 'cancelled',
  324. },
  325. totals: {
  326. [field]: 37136.841939500686,
  327. },
  328. series: {
  329. [field]: [
  330. 355.3490131200743, 330.3055256333457, 407.83884157275776, 428.9533930364429,
  331. 436.2548034308876, 285.7230952127132, 392.76558843901313, 370.0344751978364,
  332. 331.21595173183823, 371.3882993485885, 338.4624380322561, 483.7742051516484,
  333. 377.03291332780844, 414.06161737484484, 382.97046103999975,
  334. 360.82738029755836, 363.50149679131977, 392.11456710385823, 461.6774201001289,
  335. 404.7019653857344, 428.7565196307361, 349.8738683293533, 468.9925765203339,
  336. 456.95086199252347, 390.4468243586591, 351.201951957558, 448.6459310030699,
  337. 329.2404819993303, 345.42696101913396, 381.18810561072104, 403.41709512819244,
  338. 372.577042150698, 423.9187935504961, 420.159203372878, 343.01986900620994,
  339. 348.5441033982917, 331.6271572210442, 369.5967089981914, 436.74018789273293,
  340. 419.4349941593203, 396.4747069348353, 422.47372911692435, 347.2542386080101,
  341. 359.4098272132287, 376.90247419364033, 382.09204461873225, 338.21915115617946,
  342. 312.84664380477693, 288.9728851280446, 507.0991265240608, 375.56785741836734,
  343. 390.00779083955007, 370.5153880122641, 412.7157547191045, 513.9598105400818,
  344. 397.7675980165556, 414.2725390279078, 389.5973571260673, 408.19134769031183,
  345. 407.30190969822604, 391.63533783293616, 387.9722978509748, 391.1656719608674,
  346. 361.6307289468619, 480.89415564023176, 357.369670914171, 319.6278755095593,
  347. 363.802761464002, 411.4652928365155, 330.2602521241386, 406.3307142229724,
  348. 488.33433876260733, 394.2576951916534, 362.5230712697027, 371.62804146622744,
  349. 451.90649872632497, 401.2243746338653, 341.0569528517861, 403.98180673146203,
  350. 406.8345991573571, 357.20399617255634, 307.733676165996, 351.664124097946,
  351. 446.2702162614976, 287.55636946785586, 408.4941740295459, 374.8779167037436,
  352. 358.6199833782514, 515.3541879145573, 330.10191669584526, 479.9073313192458,
  353. 376.818110604959, 353.37923783580374, 364.46292448098336, 387.3372000817254,
  354. 292.8035671809615,
  355. ],
  356. },
  357. },
  358. {
  359. by: {
  360. 'transaction.status': 'ok',
  361. },
  362. totals: {
  363. [field]: 52696.64340655463,
  364. },
  365. series: {
  366. [field]: [
  367. 618.5865450505377, 663.610842193466, 556.8238160974133, 572.8545752921874,
  368. 515.8543283370781, 583.3452944058821, 547.4090298814124, 515.9604719252445,
  369. 587.2141471094967, 619.8450076986474, 529.0930291914201, 559.6810872719008,
  370. 422.6605439105954, 523.7899581319031, 628.372383752648, 523.0680226322413,
  371. 601.6401730473798, 584.5344410011239, 593.6985789247184, 453.384758486753,
  372. 557.3317780667478, 621.3341071101402, 586.2686563277631, 513.6200512642777,
  373. 572.0698027520551, 526.9385175782576, 523.60045538119, 532.9849301400876,
  374. 616.908250163973, 587.7628742744747, 467.5570362151239, 576.8320713588967,
  375. 477.84966762045843, 593.6231613654957, 532.4483809894616, 567.5727535522612,
  376. 614.2889698679285, 595.4294434074892, 562.624721785009, 605.2789836642525,
  377. 550.4822854367562, 547.4915066024618, 552.2695978485009, 580.465154565526,
  378. 539.6691813913831, 556.9397481773582, 556.4245800664645, 603.428422351564,
  379. 457.7043664855097, 494.8350152263508, 573.1267735281064, 518.2624411857695,
  380. 623.346442311026, 554.0702166224976, 606.0610974218678, 576.3272324817879,
  381. 510.89922965453934, 499.8793794554816, 603.7379749757291, 599.4686531116329,
  382. 560.6418816713477, 570.2968749593794, 480.97803785088195, 564.0070635672826,
  383. 577.2436109682983, 518.4094382698681, 553.8018866029413, 520.6194771053986,
  384. 552.762849649621, 475.33409108515315, 524.12912849246, 508.72474249989375,
  385. 577.7982034201506, 578.5048521750765, 503.54179682397813, 492.414584567423,
  386. 530.4583352619517, 504.16822445738813, 549.03810398069, 578.585074397685,
  387. 534.1830028593554, 507.3381578254184, 518.2289386513759, 591.4953098344265,
  388. 582.0250483243833, 505.0297377873074, 505.86956506151546, 572.6247094317519,
  389. 482.16415988693205, 427.93552044422876, 549.1804831943311, 510.0633308696188,
  390. 489.23225234819375, 612.93101003181, 519.6585182372323, 528.5844578321814,
  391. ],
  392. },
  393. },
  394. {
  395. by: {
  396. 'transaction.status': 'aborted',
  397. },
  398. totals: {
  399. [field]: 57824.45854505795,
  400. },
  401. series: {
  402. [field]: [
  403. 506.3709370578013, 644.8542681318904, 596.7553570437444, 632.9772407677009,
  404. 570.8162328546368, 593.5745602118294, 618.0465855121598, 508.64556781922664,
  405. 603.6776731131123, 583.3473239799015, 594.8521211952932, 578.7511786534105,
  406. 610.4816945540877, 614.6546048592469, 640.0117836909517, 606.2752540449574,
  407. 595.1224800461486, 592.2639406098496, 586.1156326378982, 638.2613478004037,
  408. 661.2900829922954, 588.092376888531, 665.4576121383055, 592.0243579556254,
  409. 570.7731105998982, 612.3171550504326, 721.2246820680581, 584.3860797096143,
  410. 576.1937193205075, 569.4956402059744, 569.5982925348993, 554.2580987907393,
  411. 618.6371317926661, 599.2949303273468, 627.3011199581633, 545.2993553741798,
  412. 606.3386721851007, 525.0508191974686, 634.5277250090829, 654.1852360241252,
  413. 618.0540774544965, 546.8769241154781, 591.8735377563889, 620.368652438997,
  414. 520.611885627431, 610.2838845102792, 601.237914513572, 592.2661964991539,
  415. 592.4344833174763, 543.5002550443128, 589.6439077314019, 582.8520903569056,
  416. 688.9635241798925, 580.5829537438326, 662.0884447935787, 575.7727647385624,
  417. 643.0336613242248, 621.031725692256, 634.463039048471, 543.5856642692512,
  418. 645.6111078966451, 561.9056957400661, 641.0803172364893, 634.799123787404,
  419. 573.7935398185274, 641.6876068953679, 668.2664751233112, 550.8815904726317,
  420. 603.0759556731579, 655.9167930987059, 652.8740539367475, 662.7960056880313,
  421. 639.182415933369, 572.4049597703238, 708.767659054371, 612.1749763526883,
  422. 613.2663172435215, 559.6816136888561, 618.1103770987904, 600.8635770573385,
  423. 614.8627188852428, 645.932823477558, 569.7964077818579, 552.1901978269458,
  424. 581.2760987065903, 620.62222024277, 531.4688980272753, 610.3209864822912,
  425. 472.5993926910091, 619.8009766027724, 609.1157838182586, 549.9578043134536,
  426. 621.840977798967, 607.0086606301206, 582.4215465982414, 666.9753197450221,
  427. ],
  428. },
  429. },
  430. ],
  431. ...rest,
  432. };
  433. }
  434. export function MetricsFieldByMeasurementRating({field, ...rest} = {}) {
  435. return {
  436. start: '2022-01-11T12:00:00Z',
  437. end: '2022-01-12T12:00:00Z',
  438. query: 'transaction:/bar/:orgId/',
  439. intervals: [
  440. '2022-01-11T12:00:00Z',
  441. '2022-01-11T12:15:00Z',
  442. '2022-01-11T12:30:00Z',
  443. '2022-01-11T12:45:00Z',
  444. '2022-01-11T13:00:00Z',
  445. '2022-01-11T13:15:00Z',
  446. '2022-01-11T13:30:00Z',
  447. '2022-01-11T13:45:00Z',
  448. '2022-01-11T14:00:00Z',
  449. '2022-01-11T14:15:00Z',
  450. '2022-01-11T14:30:00Z',
  451. '2022-01-11T14:45:00Z',
  452. '2022-01-11T15:00:00Z',
  453. '2022-01-11T15:15:00Z',
  454. '2022-01-11T15:30:00Z',
  455. '2022-01-11T15:45:00Z',
  456. '2022-01-11T16:00:00Z',
  457. '2022-01-11T16:15:00Z',
  458. '2022-01-11T16:30:00Z',
  459. '2022-01-11T16:45:00Z',
  460. '2022-01-11T17:00:00Z',
  461. '2022-01-11T17:15:00Z',
  462. '2022-01-11T17:30:00Z',
  463. '2022-01-11T17:45:00Z',
  464. '2022-01-11T18:00:00Z',
  465. '2022-01-11T18:15:00Z',
  466. '2022-01-11T18:30:00Z',
  467. '2022-01-11T18:45:00Z',
  468. '2022-01-11T19:00:00Z',
  469. '2022-01-11T19:15:00Z',
  470. '2022-01-11T19:30:00Z',
  471. '2022-01-11T19:45:00Z',
  472. '2022-01-11T20:00:00Z',
  473. '2022-01-11T20:15:00Z',
  474. '2022-01-11T20:30:00Z',
  475. '2022-01-11T20:45:00Z',
  476. '2022-01-11T21:00:00Z',
  477. '2022-01-11T21:15:00Z',
  478. '2022-01-11T21:30:00Z',
  479. '2022-01-11T21:45:00Z',
  480. '2022-01-11T22:00:00Z',
  481. '2022-01-11T22:15:00Z',
  482. '2022-01-11T22:30:00Z',
  483. '2022-01-11T22:45:00Z',
  484. '2022-01-11T23:00:00Z',
  485. '2022-01-11T23:15:00Z',
  486. '2022-01-11T23:30:00Z',
  487. '2022-01-11T23:45:00Z',
  488. '2022-01-12T00:00:00Z',
  489. '2022-01-12T00:15:00Z',
  490. '2022-01-12T00:30:00Z',
  491. '2022-01-12T00:45:00Z',
  492. '2022-01-12T01:00:00Z',
  493. '2022-01-12T01:15:00Z',
  494. '2022-01-12T01:30:00Z',
  495. '2022-01-12T01:45:00Z',
  496. '2022-01-12T02:00:00Z',
  497. '2022-01-12T02:15:00Z',
  498. '2022-01-12T02:30:00Z',
  499. '2022-01-12T02:45:00Z',
  500. '2022-01-12T03:00:00Z',
  501. '2022-01-12T03:15:00Z',
  502. '2022-01-12T03:30:00Z',
  503. '2022-01-12T03:45:00Z',
  504. '2022-01-12T04:00:00Z',
  505. '2022-01-12T04:15:00Z',
  506. '2022-01-12T04:30:00Z',
  507. '2022-01-12T04:45:00Z',
  508. '2022-01-12T05:00:00Z',
  509. '2022-01-12T05:15:00Z',
  510. '2022-01-12T05:30:00Z',
  511. '2022-01-12T05:45:00Z',
  512. '2022-01-12T06:00:00Z',
  513. '2022-01-12T06:15:00Z',
  514. '2022-01-12T06:30:00Z',
  515. '2022-01-12T06:45:00Z',
  516. '2022-01-12T07:00:00Z',
  517. '2022-01-12T07:15:00Z',
  518. '2022-01-12T07:30:00Z',
  519. '2022-01-12T07:45:00Z',
  520. '2022-01-12T08:00:00Z',
  521. '2022-01-12T08:15:00Z',
  522. '2022-01-12T08:30:00Z',
  523. '2022-01-12T08:45:00Z',
  524. '2022-01-12T09:00:00Z',
  525. '2022-01-12T09:15:00Z',
  526. '2022-01-12T09:30:00Z',
  527. '2022-01-12T09:45:00Z',
  528. '2022-01-12T10:00:00Z',
  529. '2022-01-12T10:15:00Z',
  530. '2022-01-12T10:30:00Z',
  531. '2022-01-12T10:45:00Z',
  532. '2022-01-12T11:00:00Z',
  533. '2022-01-12T11:15:00Z',
  534. '2022-01-12T11:30:00Z',
  535. '2022-01-12T11:45:00Z',
  536. ],
  537. groups: [
  538. {
  539. by: {
  540. measurement_rating: 'meh',
  541. },
  542. totals: {
  543. [field]: 59657.82147954738,
  544. },
  545. series: {
  546. [field]: [
  547. 627.8710085009992, 660.3732727609262, 674.8245160444908, 705.7112209913826,
  548. 638.7849368908317, 672.0551387994523, 584.1424336269132, 656.8170140144678,
  549. 694.0211949381348, 671.6675037316546, 528.4087406716776, 676.5128951392546,
  550. 600.0000530619433, 600.3271279192944, 595.962597402425, 660.3533342181285,
  551. 578.8135726995977, 617.865395810204, 679.645373106888, 606.9009529821006,
  552. 516.7867575433484, 617.7988476760579, 690.723243160695, 572.8257630221008,
  553. 638.6630436210442, 645.4060949184075, 664.9109063659059, 613.4485564745689,
  554. 560.2819084728444, 622.9671342759495, 675.9772730155677, 629.6971892029818,
  555. 685.1106074355941, 574.8664599436279, 642.2611143842013, 594.6400386772042,
  556. 675.1634378991598, 497.5093447768292, 664.6616761026517, 600.9714740500857,
  557. 657.4807726712432, 659.9994653193004, 605.5650509648125, 627.7199337772342,
  558. 573.6977697255402, 565.8501964127163, 578.7930366073543, 610.3688310051944,
  559. 572.2514019341626, 647.230520002099, 595.6432048262811, 671.5839698243627,
  560. 628.1605429054315, 653.6161372295504, 599.469724243095, 596.1372762742918,
  561. 603.2057739937367, 713.6781026263965, 578.485574045103, 709.9546232277185,
  562. 579.786958477689, 601.8554605474623, 585.3097307901418, 613.7167564021971,
  563. 697.1751005777187, 669.9539880417157, 642.9039583184931, 609.8772970012956,
  564. 671.9537024280132, 633.9938144924257, 676.8171464452776, 628.9863519863605,
  565. 556.0483275910225, 719.2936071408676, 534.1351561787801, 618.381740471172,
  566. 619.9547224983717, 643.4504252589056, 559.4408984828945, 593.5496032036424,
  567. 590.637420613542, 561.9943118748838, 590.6074713472234, 589.4661749945312,
  568. 581.9006419447675, 679.0166524357721, 644.6418619189993, 547.645704746189,
  569. 663.5041801256356, 577.7843949214679, 679.6588503827807, 594.7580330399779,
  570. 600.7894872538927, 586.7977877803305, 591.2840548089212, 556.12864307881,
  571. ],
  572. },
  573. },
  574. {
  575. by: {
  576. measurement_rating: 'good',
  577. },
  578. totals: {
  579. [field]: 41729.69780070605,
  580. },
  581. series: {
  582. [field]: [
  583. 407.0029208783292, 469.62724587830684, 454.34267553793075, 402.61622820164104,
  584. 554.0103317764977, 457.41926676467, 492.5535478151178, 324.5119889676286,
  585. 531.4261235102066, 338.7693289660308, 412.0947170246884, 397.02746245831435,
  586. 391.47293874689, 461.9136650347087, 438.6034491442621, 362.7865488968385,
  587. 567.2946319711139, 463.0372545781996, 377.68915382635635, 486.8428068579126,
  588. 415.98054922571663, 479.31989702958253, 377.9969955095231, 377.9690822586457,
  589. 477.70267062070826, 470.59034273893906, 517.7261180308863, 423.51373190191293,
  590. 418.97124196308715, 367.56335259387566, 521.1628140257969, 366.0280032569374,
  591. 461.2689821105869, 500.3354345944678, 410.59934609462005, 493.6205728218092,
  592. 460.7637215689551, 504.32574169124496, 442.906625445494, 407.87998610416764,
  593. 479.4393876059118, 381.1710562156919, 359.75096103758756, 403.25841013289715,
  594. 476.211409675843, 449.687230711299, 368.32591347197337, 412.9866065250437,
  595. 446.0161774779158, 457.4779187300537, 428.7007173218327, 447.2468412159046,
  596. 470.12069925547297, 450.32953563872456, 434.56842744974495, 557.3725078674429,
  597. 447.60227163437594, 409.1502149342967, 382.10322175289224, 354.25859083882625,
  598. 403.9449516788097, 386.29106928677214, 422.7736366276359, 427.8294014603486,
  599. 461.68072987638214, 444.4155014715653, 460.8782308065721, 433.9434865001038,
  600. 439.09792342424066, 398.25595201132535, 389.0761210520433, 297.4726362248142,
  601. 389.4235561171558, 479.0235610215395, 387.444956212841, 362.7778589964607,
  602. 398.00754840520335, 359.17881841516055, 397.8650722422652, 364.32072694378155,
  603. 479.8682002432449, 418.0395544797137, 505.59338496821607, 406.6876586595074,
  604. 472.0800659991642, 549.8364529430182, 427.14548512061754, 449.9182582198993,
  605. 503.6022491487085, 449.81262100020496, 418.6007917579805, 518.0564967207595,
  606. 457.8193500403122, 409.0680400560197, 409.8900359135433, 446.93182074377995,
  607. ],
  608. },
  609. },
  610. {
  611. by: {
  612. measurement_rating: 'poor',
  613. },
  614. totals: {
  615. [field]: 48688.88480702653,
  616. },
  617. series: {
  618. [field]: [
  619. 532.9940899156505, 555.0330363499673, 416.85526609901774, 468.6994279976622,
  620. 473.9822164692267, 522.9859853549078, 557.9674331906216, 504.2126379479356,
  621. 569.602173148453, 439.6555459223781, 504.468223033432, 459.8232932709954,
  622. 518.2451215506339, 454.745336669694, 459.7438329270245, 643.726203385831,
  623. 489.14164165998227, 528.0337801781527, 551.0266762546081, 594.8678875905551,
  624. 574.1854520315023, 430.8904327194787, 581.5993646618615, 524.3833074991704,
  625. 544.1759927360187, 505.06726483322007, 502.374773557496, 476.89141558357716,
  626. 466.3151517431169, 436.18994821194525, 514.5874825305849, 452.89103244507334,
  627. 508.0188524107445, 488.6078414293525, 443.63762276335933, 469.61129593278685,
  628. 558.6492754523147, 485.10735906311544, 502.89090107622224, 572.9773143690379,
  629. 542.9498977997674, 558.1515064296876, 506.13352353300786, 471.17053023188123,
  630. 552.5317430757186, 459.53421389507935, 482.6295388155034, 442.6993575642006,
  631. 451.08913122524774, 519.5687407640459, 537.8283933661014, 487.52632337623737,
  632. 557.4074389350708, 397.0436051013438, 546.6554757932475, 587.1175995663493,
  633. 454.6079713161996, 482.2197133011751, 509.0090185519107, 506.8860953656434,
  634. 441.361745107081, 500.4002433293298, 562.8857216650699, 485.0412976560473,
  635. 608.1737788690727, 453.65052738534695, 499.2987049270883, 536.0036407904471,
  636. 543.0078459679887, 506.91500622252, 442.8268802366098, 554.2502152107439,
  637. 501.9524315010354, 471.50937986635176, 436.38941325012775, 610.0136480436144,
  638. 562.8242381932404, 481.2248377102762, 511.106044904139, 601.0888690479637,
  639. 501.8806117397912, 412.9225865400586, 498.3050066172081, 585.4472430228982,
  640. 540.7834281696422, 525.3457563960907, 453.9934677354221, 429.6631596662845,
  641. 522.819097545152, 522.12144489971, 537.8571173057984, 503.97608362579393,
  642. 504.05831976814727, 608.6763742781615, 428.3920276554025, 465.09690420274455,
  643. ],
  644. },
  645. },
  646. ],
  647. ...rest,
  648. };
  649. }
  650. export function MetricsFieldsByMeasurementRating({fields, ...rest} = {}) {
  651. return {
  652. start: '2022-01-04T10:30:00Z',
  653. end: '2022-01-05T10:30:00Z',
  654. query: '',
  655. intervals: [
  656. '2022-01-04T10:30:00Z',
  657. '2022-01-04T10:45:00Z',
  658. '2022-01-04T11:00:00Z',
  659. '2022-01-04T11:15:00Z',
  660. '2022-01-04T11:30:00Z',
  661. '2022-01-04T11:45:00Z',
  662. '2022-01-04T12:00:00Z',
  663. '2022-01-04T12:15:00Z',
  664. '2022-01-04T12:30:00Z',
  665. '2022-01-04T12:45:00Z',
  666. '2022-01-04T13:00:00Z',
  667. '2022-01-04T13:15:00Z',
  668. '2022-01-04T13:30:00Z',
  669. '2022-01-04T13:45:00Z',
  670. '2022-01-04T14:00:00Z',
  671. '2022-01-04T14:15:00Z',
  672. '2022-01-04T14:30:00Z',
  673. '2022-01-04T14:45:00Z',
  674. '2022-01-04T15:00:00Z',
  675. '2022-01-04T15:15:00Z',
  676. '2022-01-04T15:30:00Z',
  677. '2022-01-04T15:45:00Z',
  678. '2022-01-04T16:00:00Z',
  679. '2022-01-04T16:15:00Z',
  680. '2022-01-04T16:30:00Z',
  681. '2022-01-04T16:45:00Z',
  682. '2022-01-04T17:00:00Z',
  683. '2022-01-04T17:15:00Z',
  684. '2022-01-04T17:30:00Z',
  685. '2022-01-04T17:45:00Z',
  686. '2022-01-04T18:00:00Z',
  687. '2022-01-04T18:15:00Z',
  688. '2022-01-04T18:30:00Z',
  689. '2022-01-04T18:45:00Z',
  690. '2022-01-04T19:00:00Z',
  691. '2022-01-04T19:15:00Z',
  692. '2022-01-04T19:30:00Z',
  693. '2022-01-04T19:45:00Z',
  694. '2022-01-04T20:00:00Z',
  695. '2022-01-04T20:15:00Z',
  696. '2022-01-04T20:30:00Z',
  697. '2022-01-04T20:45:00Z',
  698. '2022-01-04T21:00:00Z',
  699. '2022-01-04T21:15:00Z',
  700. '2022-01-04T21:30:00Z',
  701. '2022-01-04T21:45:00Z',
  702. '2022-01-04T22:00:00Z',
  703. '2022-01-04T22:15:00Z',
  704. '2022-01-04T22:30:00Z',
  705. '2022-01-04T22:45:00Z',
  706. '2022-01-04T23:00:00Z',
  707. '2022-01-04T23:15:00Z',
  708. '2022-01-04T23:30:00Z',
  709. '2022-01-04T23:45:00Z',
  710. '2022-01-05T00:00:00Z',
  711. '2022-01-05T00:15:00Z',
  712. '2022-01-05T00:30:00Z',
  713. '2022-01-05T00:45:00Z',
  714. '2022-01-05T01:00:00Z',
  715. '2022-01-05T01:15:00Z',
  716. '2022-01-05T01:30:00Z',
  717. '2022-01-05T01:45:00Z',
  718. '2022-01-05T02:00:00Z',
  719. '2022-01-05T02:15:00Z',
  720. '2022-01-05T02:30:00Z',
  721. '2022-01-05T02:45:00Z',
  722. '2022-01-05T03:00:00Z',
  723. '2022-01-05T03:15:00Z',
  724. '2022-01-05T03:30:00Z',
  725. '2022-01-05T03:45:00Z',
  726. '2022-01-05T04:00:00Z',
  727. '2022-01-05T04:15:00Z',
  728. '2022-01-05T04:30:00Z',
  729. '2022-01-05T04:45:00Z',
  730. '2022-01-05T05:00:00Z',
  731. '2022-01-05T05:15:00Z',
  732. '2022-01-05T05:30:00Z',
  733. '2022-01-05T05:45:00Z',
  734. '2022-01-05T06:00:00Z',
  735. '2022-01-05T06:15:00Z',
  736. '2022-01-05T06:30:00Z',
  737. '2022-01-05T06:45:00Z',
  738. '2022-01-05T07:00:00Z',
  739. '2022-01-05T07:15:00Z',
  740. '2022-01-05T07:30:00Z',
  741. '2022-01-05T07:45:00Z',
  742. '2022-01-05T08:00:00Z',
  743. '2022-01-05T08:15:00Z',
  744. '2022-01-05T08:30:00Z',
  745. '2022-01-05T08:45:00Z',
  746. '2022-01-05T09:00:00Z',
  747. '2022-01-05T09:15:00Z',
  748. '2022-01-05T09:30:00Z',
  749. '2022-01-05T09:45:00Z',
  750. '2022-01-05T10:00:00Z',
  751. '2022-01-05T10:15:00Z',
  752. ],
  753. groups: [
  754. {
  755. by: {measurement_rating: 'poor'},
  756. totals: {
  757. [fields[0]]: 2,
  758. [fields[1]]: 4,
  759. },
  760. series: {
  761. [fields[1]]: [
  762. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  763. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  764. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  765. 0, 0, 0, 0, 2, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0,
  766. ],
  767. [fields[0]]: [
  768. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  769. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  770. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  771. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0,
  772. ],
  773. },
  774. },
  775. {
  776. by: {measurement_rating: 'good'},
  777. totals: {
  778. [fields[2]]: 2,
  779. [fields[1]]: 12,
  780. [fields[0]]: 14,
  781. },
  782. series: {
  783. [fields[1]]: [
  784. 0, 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,
  785. 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,
  786. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  787. 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 1, 0,
  788. ],
  789. [fields[2]]: [
  790. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  791. 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,
  792. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  793. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0,
  794. ],
  795. [fields[0]]: [
  796. 0, 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,
  797. 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,
  798. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  799. 0, 0, 0, 0, 2, 3, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 1, 0,
  800. ],
  801. },
  802. },
  803. {
  804. by: {measurement_rating: 'meh'},
  805. totals: {
  806. [fields[0]]: 1,
  807. [fields[1]]: 1,
  808. },
  809. series: {
  810. [fields[1]]: [
  811. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  812. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  813. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  814. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0,
  815. ],
  816. [fields[0]]: [
  817. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  818. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  819. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  820. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0,
  821. ],
  822. },
  823. },
  824. ],
  825. ...rest,
  826. };
  827. }
  828. export function MetricsTotalCountByReleaseIn24h() {
  829. return {
  830. query:
  831. 'release:7a82c130be9143361f20bc77252df783cf91e4fc OR release:e102abb2c46e7fe8686441091005c12aed90da99',
  832. intervals: [
  833. '2021-03-17T10:00:00Z',
  834. '2021-03-17T11:00:00Z',
  835. '2021-03-17T12:00:00Z',
  836. '2021-03-17T13:00:00Z',
  837. '2021-03-17T14:00:00Z',
  838. '2021-03-17T15:00:00Z',
  839. '2021-03-17T16:00:00Z',
  840. '2021-03-17T17:00:00Z',
  841. '2021-03-17T18:00:00Z',
  842. '2021-03-17T19:00:00Z',
  843. '2021-03-17T20:00:00Z',
  844. '2021-03-17T21:00:00Z',
  845. '2021-03-17T22:00:00Z',
  846. '2021-03-17T23:00:00Z',
  847. '2021-03-18T00:00:00Z',
  848. '2021-03-18T01:00:00Z',
  849. '2021-03-18T02:00:00Z',
  850. '2021-03-18T03:00:00Z',
  851. '2021-03-18T04:00:00Z',
  852. '2021-03-18T05:00:00Z',
  853. '2021-03-18T06:00:00Z',
  854. '2021-03-18T07:00:00Z',
  855. '2021-03-18T08:00:00Z',
  856. '2021-03-18T09:00:00Z',
  857. ],
  858. groups: [
  859. {
  860. by: {project: 123, release: '7a82c130be9143361f20bc77252df783cf91e4fc'},
  861. totals: {'sum(session)': 219826},
  862. series: {
  863. 'sum(session)': [
  864. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3444, 14912, 15649, 18019, 16726,
  865. 17540, 16970, 25015, 34686, 46434, 10431,
  866. ],
  867. },
  868. },
  869. {
  870. by: {release: 'e102abb2c46e7fe8686441091005c12aed90da99', project: 123},
  871. totals: {'sum(session)': 6320},
  872. series: {
  873. 'sum(session)': [
  874. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5809, 400, 22, 26, 12, 19, 8, 0, 19, 5,
  875. 0,
  876. ],
  877. },
  878. },
  879. ],
  880. };
  881. }
  882. export function MetricsSessionUserCountByStatusByRelease() {
  883. return {
  884. start: '2022-01-15T00:00:00Z',
  885. end: '2022-01-29T00:00:00Z',
  886. query: '',
  887. intervals: [
  888. '2022-01-15T00:00:00Z',
  889. '2022-01-16T00:00:00Z',
  890. '2022-01-17T00:00:00Z',
  891. '2022-01-18T00:00:00Z',
  892. '2022-01-19T00:00:00Z',
  893. '2022-01-20T00:00:00Z',
  894. '2022-01-21T00:00:00Z',
  895. '2022-01-22T00:00:00Z',
  896. '2022-01-23T00:00:00Z',
  897. '2022-01-24T00:00:00Z',
  898. '2022-01-25T00:00:00Z',
  899. '2022-01-26T00:00:00Z',
  900. '2022-01-27T00:00:00Z',
  901. '2022-01-28T00:00:00Z',
  902. ],
  903. groups: [
  904. {
  905. by: {'session.status': 'crashed', release: '1'},
  906. totals: {
  907. 'sum(sentry.sessions.session)': 34,
  908. 'count_unique(sentry.sessions.user)': 1,
  909. },
  910. series: {
  911. 'sum(sentry.sessions.session)': [0, 0, 0, 0, 0, 0, 0, 0, 0, 23, 11, 0, 0, 0],
  912. 'count_unique(sentry.sessions.user)': [
  913. 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0,
  914. ],
  915. },
  916. },
  917. {
  918. by: {'session.status': 'abnormal', release: '1'},
  919. totals: {
  920. 'sum(sentry.sessions.session)': 1,
  921. 'count_unique(sentry.sessions.user)': 1,
  922. },
  923. series: {
  924. 'sum(sentry.sessions.session)': [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
  925. 'count_unique(sentry.sessions.user)': [
  926. 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  927. ],
  928. },
  929. },
  930. {
  931. by: {'session.status': 'errored', release: '1'},
  932. totals: {
  933. 'sum(sentry.sessions.session)': 451,
  934. 'count_unique(sentry.sessions.user)': 2,
  935. },
  936. series: {
  937. 'sum(sentry.sessions.session)': [0, 0, 0, 0, 0, 37, 0, 0, 0, 335, 79, 0, 0, 0],
  938. 'count_unique(sentry.sessions.user)': [
  939. 0, 0, 0, 0, 0, 1, 0, 0, 0, 2, 2, 0, 0, 0,
  940. ],
  941. },
  942. },
  943. {
  944. by: {'session.status': 'healthy', release: '1'},
  945. totals: {
  946. 'sum(sentry.sessions.session)': 5058,
  947. 'count_unique(sentry.sessions.user)': 3,
  948. },
  949. series: {
  950. 'sum(sentry.sessions.session)': [
  951. 0, 0, 0, 0, 0, 2503, 661, 0, 0, 1464, 430, 0, 0, 0,
  952. ],
  953. 'count_unique(sentry.sessions.user)': [
  954. 0, 0, 0, 0, 0, 3, 3, 0, 0, 1, 1, 0, 0, 0,
  955. ],
  956. },
  957. },
  958. {
  959. by: {'session.status': 'crashed', release: '2'},
  960. totals: {
  961. 'sum(sentry.sessions.session)': 35,
  962. 'count_unique(sentry.sessions.user)': 2,
  963. },
  964. series: {
  965. 'sum(sentry.sessions.session)': [1, 0, 0, 0, 0, 0, 0, 0, 0, 23, 11, 0, 0, 0],
  966. 'count_unique(sentry.sessions.user)': [
  967. 1, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 0, 0, 0,
  968. ],
  969. },
  970. },
  971. {
  972. by: {'session.status': 'abnormal', release: '2'},
  973. totals: {
  974. 'sum(sentry.sessions.session)': 1,
  975. 'count_unique(sentry.sessions.user)': 1,
  976. },
  977. series: {
  978. 'sum(sentry.sessions.session)': [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
  979. 'count_unique(sentry.sessions.user)': [
  980. 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  981. ],
  982. },
  983. },
  984. {
  985. by: {'session.status': 'errored', release: '2'},
  986. totals: {
  987. 'sum(sentry.sessions.session)': 452,
  988. 'count_unique(sentry.sessions.user)': 1,
  989. },
  990. series: {
  991. 'sum(sentry.sessions.session)': [1, 0, 0, 0, 0, 37, 0, 0, 0, 335, 79, 0, 0, 0],
  992. 'count_unique(sentry.sessions.user)': [
  993. 1, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0,
  994. ],
  995. },
  996. },
  997. {
  998. by: {'session.status': 'healthy', release: '2'},
  999. totals: {
  1000. 'sum(sentry.sessions.session)': 5059,
  1001. 'count_unique(sentry.sessions.user)': 10,
  1002. },
  1003. series: {
  1004. 'sum(sentry.sessions.session)': [
  1005. 1, 0, 0, 0, 0, 2503, 661, 0, 0, 1464, 430, 0, 0, 0,
  1006. ],
  1007. 'count_unique(sentry.sessions.user)': [
  1008. 1, 0, 0, 0, 0, 10, 3, 0, 0, 4, 3, 0, 0, 0,
  1009. ],
  1010. },
  1011. },
  1012. ],
  1013. };
  1014. }