123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881 |
- import type {SessionApiResponse} from 'sentry/types';
- export function SessionsFieldFixture(field: string): SessionApiResponse {
- return {
- start: '',
- end: '',
- query: '',
- intervals: [
- '2021-03-05T00:00:00Z',
- '2021-03-06T00:00:00Z',
- '2021-03-07T00:00:00Z',
- '2021-03-08T00:00:00Z',
- '2021-03-09T00:00:00Z',
- '2021-03-10T00:00:00Z',
- '2021-03-11T00:00:00Z',
- '2021-03-12T00:00:00Z',
- '2021-03-13T00:00:00Z',
- '2021-03-14T00:00:00Z',
- '2021-03-15T00:00:00Z',
- '2021-03-16T00:00:00Z',
- '2021-03-17T00:00:00Z',
- '2021-03-18T00:00:00Z',
- ],
- groups: [
- {
- by: {},
- totals: {
- [field]: 492,
- },
- series: {
- [field]: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 490],
- },
- },
- ],
- };
- }
- export function SessionUserCountByStatusFixture(): SessionApiResponse {
- return {
- start: '',
- end: '',
- query: '',
- intervals: [
- '2021-03-05T00:00:00Z',
- '2021-03-06T00:00:00Z',
- '2021-03-07T00:00:00Z',
- '2021-03-08T00:00:00Z',
- '2021-03-09T00:00:00Z',
- '2021-03-10T00:00:00Z',
- '2021-03-11T00:00:00Z',
- '2021-03-12T00:00:00Z',
- '2021-03-13T00:00:00Z',
- '2021-03-14T00:00:00Z',
- '2021-03-15T00:00:00Z',
- '2021-03-16T00:00:00Z',
- '2021-03-17T00:00:00Z',
- '2021-03-18T00:00:00Z',
- ],
- groups: [
- {
- by: {
- 'session.status': 'crashed',
- },
- totals: {
- 'sum(session)': 492,
- 'count_unique(user)': 92,
- 'p50(session.duration)': 195,
- },
- series: {
- 'sum(session)': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 490],
- 'count_unique(user)': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 90],
- 'p50(session.duration)': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 193],
- },
- },
- {
- by: {
- 'session.status': 'healthy',
- },
- totals: {
- 'sum(session)': 9260,
- 'count_unique(user)': 260,
- 'p50(session.duration)': 195,
- },
- series: {
- 'sum(session)': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9167, 93],
- 'count_unique(user)': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 258],
- 'p50(session.duration)': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 193],
- },
- },
- {
- by: {
- 'session.status': 'abnormal',
- },
- totals: {
- 'sum(session)': 0,
- 'count_unique(user)': 0,
- 'p50(session.duration)': 0,
- },
- series: {
- 'sum(session)': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
- 'count_unique(user)': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
- 'p50(session.duration)': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
- },
- },
- {
- by: {
- 'session.status': 'errored',
- },
- totals: {
- 'sum(session)': 99,
- 'count_unique(user)': 9,
- 'p50(session.duration)': 195,
- },
- series: {
- 'sum(session)': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 99, 0],
- 'count_unique(user)': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 8],
- 'p50(session.duration)': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 194],
- },
- },
- ],
- };
- }
- // this one is higher than the first one
- // first one can be used as "This Release" and the second one works nicely as "All Releases"
- export function SessionUserCountByStatus2Fixture(): SessionApiResponse {
- return {
- start: '',
- end: '',
- query: '',
- intervals: [
- '2021-03-05T00:00:00Z',
- '2021-03-06T00:00:00Z',
- '2021-03-07T00:00:00Z',
- '2021-03-08T00:00:00Z',
- '2021-03-09T00:00:00Z',
- '2021-03-10T00:00:00Z',
- '2021-03-11T00:00:00Z',
- '2021-03-12T00:00:00Z',
- '2021-03-13T00:00:00Z',
- '2021-03-14T00:00:00Z',
- '2021-03-15T00:00:00Z',
- '2021-03-16T00:00:00Z',
- '2021-03-17T00:00:00Z',
- '2021-03-18T00:00:00Z',
- ],
- groups: [
- {
- by: {
- 'session.status': 'crashed',
- },
- totals: {
- 'sum(session)': 992,
- 'count_unique(user)': 92,
- 'p50(session.duration)': 802,
- },
- series: {
- 'sum(session)': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 990],
- 'count_unique(user)': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 90],
- 'p50(session.duration)': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 800],
- },
- },
- {
- by: {
- 'session.status': 'abnormal',
- },
- totals: {
- 'sum(session)': 0,
- 'count_unique(user)': 0,
- 'p50(session.duration)': 0,
- },
- series: {
- 'sum(session)': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
- 'count_unique(user)': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
- 'p50(session.duration)': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
- },
- },
- {
- by: {
- 'session.status': 'healthy',
- },
- totals: {
- 'sum(session)': 202136,
- 'count_unique(user)': 99136,
- 'p50(session.duration)': 108404,
- },
- series: {
- 'sum(session)': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3404, 198732],
- 'count_unique(user)': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 404, 98732],
- 'p50(session.duration)': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 404, 108000],
- },
- },
- {
- by: {
- 'session.status': 'errored',
- },
- totals: {
- 'sum(session)': 1954,
- 'count_unique(user)': 915,
- 'p50(session.duration)': 800,
- },
- series: {
- 'sum(session)': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 40, 1914],
- 'count_unique(user)': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 914],
- 'p50(session.duration)': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 799],
- },
- },
- ],
- };
- }
- export function SessionStatusCountByReleaseInPeriodFixture(): SessionApiResponse {
- return {
- start: '',
- end: '',
- query:
- 'release:7a82c130be9143361f20bc77252df783cf91e4fc OR release:e102abb2c46e7fe8686441091005c12aed90da99',
- intervals: [
- '2021-03-05T00:00:00Z',
- '2021-03-06T00:00:00Z',
- '2021-03-07T00:00:00Z',
- '2021-03-08T00:00:00Z',
- '2021-03-09T00:00:00Z',
- '2021-03-10T00:00:00Z',
- '2021-03-11T00:00:00Z',
- '2021-03-12T00:00:00Z',
- '2021-03-13T00:00:00Z',
- '2021-03-14T00:00:00Z',
- '2021-03-15T00:00:00Z',
- '2021-03-16T00:00:00Z',
- '2021-03-17T00:00:00Z',
- '2021-03-18T00:00:00Z',
- ],
- groups: [
- {
- by: {
- project: 123,
- release: '7a82c130be9143361f20bc77252df783cf91e4fc',
- 'session.status': 'crashed',
- },
- totals: {'sum(session)': 492},
- series: {'sum(session)': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 490]},
- },
- {
- by: {
- 'session.status': 'healthy',
- project: 123,
- release: 'e102abb2c46e7fe8686441091005c12aed90da99',
- },
- totals: {'sum(session)': 6260},
- series: {'sum(session)': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5750, 510]},
- },
- {
- by: {
- project: 123,
- 'session.status': 'abnormal',
- release: 'e102abb2c46e7fe8686441091005c12aed90da99',
- },
- totals: {'sum(session)': 0},
- series: {'sum(session)': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]},
- },
- {
- by: {
- project: 123,
- release: 'e102abb2c46e7fe8686441091005c12aed90da99',
- 'session.status': 'crashed',
- },
- totals: {'sum(session)': 5},
- series: {'sum(session)': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0]},
- },
- {
- by: {
- project: 123,
- 'session.status': 'abnormal',
- release: '7a82c130be9143361f20bc77252df783cf91e4fc',
- },
- totals: {'sum(session)': 0},
- series: {'sum(session)': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]},
- },
- {
- by: {
- project: 123,
- release: 'e102abb2c46e7fe8686441091005c12aed90da99',
- 'session.status': 'errored',
- },
- totals: {'sum(session)': 59},
- series: {'sum(session)': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 59, 0]},
- },
- {
- by: {
- 'session.status': 'healthy',
- project: 123,
- release: '7a82c130be9143361f20bc77252df783cf91e4fc',
- },
- totals: {'sum(session)': 202136},
- series: {'sum(session)': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3404, 198732]},
- },
- {
- by: {
- project: 123,
- release: '7a82c130be9143361f20bc77252df783cf91e4fc',
- 'session.status': 'errored',
- },
- totals: {'sum(session)': 1954},
- series: {'sum(session)': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 40, 1914]},
- },
- ],
- };
- }
- export function SessionStatusCountByProjectInPeriodFixture(): SessionApiResponse {
- return {
- start: '',
- end: '',
- query: '',
- intervals: [
- '2021-03-05T00:00:00Z',
- '2021-03-06T00:00:00Z',
- '2021-03-07T00:00:00Z',
- '2021-03-08T00:00:00Z',
- '2021-03-09T00:00:00Z',
- '2021-03-10T00:00:00Z',
- '2021-03-11T00:00:00Z',
- '2021-03-12T00:00:00Z',
- '2021-03-13T00:00:00Z',
- '2021-03-14T00:00:00Z',
- '2021-03-15T00:00:00Z',
- '2021-03-16T00:00:00Z',
- '2021-03-17T00:00:00Z',
- '2021-03-18T00:00:00Z',
- ],
- groups: [
- {
- by: {
- project: 123,
- 'session.status': 'crashed',
- },
- totals: {'sum(session)': 992},
- series: {'sum(session)': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 990]},
- },
- {
- by: {
- project: 123,
- 'session.status': 'healthy',
- },
- totals: {'sum(session)': 9260},
- series: {'sum(session)': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9167, 93]},
- },
- {
- by: {
- project: 123,
- 'session.status': 'abnormal',
- },
- totals: {'sum(session)': 0},
- series: {'sum(session)': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]},
- },
- {
- by: {
- project: 123,
- 'session.status': 'errored',
- },
- totals: {'sum(session)': 99},
- series: {'sum(session)': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 99, 0]},
- },
- ],
- };
- }
- export function SesssionTotalCountByReleaseIn24hFixture(): SessionApiResponse {
- return {
- start: '',
- end: '',
- 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 SessionTotalCountByProjectIn24hFixture(): SessionApiResponse {
- return {
- start: '',
- end: '',
- query: '',
- 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},
- totals: {'sum(session)': 835965},
- series: {
- 'sum(session)': [
- 51284, 43820, 46981, 56929, 59999, 60476, 54145, 52642, 42917, 35787, 35036,
- 29287, 24815, 19815, 16334, 16415, 18961, 17512, 18149, 17585, 25725, 36365,
- 48104, 6882,
- ],
- },
- },
- ],
- };
- }
- export function SessionUserStatusCountByReleaseInPeriodFixture(): SessionApiResponse {
- return {
- start: '',
- end: '',
- query:
- 'release:7a82c130be9143361f20bc77252df783cf91e4fc OR release:e102abb2c46e7fe8686441091005c12aed90da99',
- intervals: [
- '2021-03-05T00:00:00Z',
- '2021-03-06T00:00:00Z',
- '2021-03-07T00:00:00Z',
- '2021-03-08T00:00:00Z',
- '2021-03-09T00:00:00Z',
- '2021-03-10T00:00:00Z',
- '2021-03-11T00:00:00Z',
- '2021-03-12T00:00:00Z',
- '2021-03-13T00:00:00Z',
- '2021-03-14T00:00:00Z',
- '2021-03-15T00:00:00Z',
- '2021-03-16T00:00:00Z',
- '2021-03-17T00:00:00Z',
- '2021-03-18T00:00:00Z',
- ],
- groups: [
- {
- by: {
- project: 123,
- release: '7a82c130be9143361f20bc77252df783cf91e4fc',
- 'session.status': 'crashed',
- },
- totals: {'sum(session)': 492, 'count_unique(user)': 92},
- series: {
- 'sum(session)': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 490],
- 'count_unique(user)': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 90],
- },
- },
- {
- by: {
- 'session.status': 'healthy',
- project: 123,
- release: 'e102abb2c46e7fe8686441091005c12aed90da99',
- },
- totals: {'sum(session)': 6260, 'count_unique(user)': 760},
- series: {
- 'sum(session)': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5750, 510],
- 'count_unique(user)': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 750, 10],
- },
- },
- {
- by: {
- project: 123,
- 'session.status': 'abnormal',
- release: 'e102abb2c46e7fe8686441091005c12aed90da99',
- },
- totals: {'sum(session)': 0, 'count_unique(user)': 0},
- series: {
- 'sum(session)': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
- 'count_unique(user)': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
- },
- },
- {
- by: {
- project: 123,
- release: 'e102abb2c46e7fe8686441091005c12aed90da99',
- 'session.status': 'crashed',
- },
- totals: {'sum(session)': 5, 'count_unique(user)': 1},
- series: {
- 'sum(session)': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0],
- 'count_unique(user)': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0],
- },
- },
- {
- by: {
- project: 123,
- 'session.status': 'abnormal',
- release: '7a82c130be9143361f20bc77252df783cf91e4fc',
- },
- totals: {'sum(session)': 0, 'count_unique(user)': 0},
- series: {
- 'sum(session)': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
- 'count_unique(user)': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
- },
- },
- {
- by: {
- project: 123,
- release: 'e102abb2c46e7fe8686441091005c12aed90da99',
- 'session.status': 'errored',
- },
- totals: {'sum(session)': 59, 'count_unique(user)': 9},
- series: {
- 'sum(session)': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 59, 0],
- 'count_unique(user)': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0],
- },
- },
- {
- by: {
- 'session.status': 'healthy',
- project: 123,
- release: '7a82c130be9143361f20bc77252df783cf91e4fc',
- },
- totals: {'sum(session)': 202136, 'count_unique(user)': 99136},
- series: {
- 'sum(session)': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3404, 198732],
- 'count_unique(user)': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 404, 98732],
- },
- },
- {
- by: {
- project: 123,
- release: '7a82c130be9143361f20bc77252df783cf91e4fc',
- 'session.status': 'errored',
- },
- totals: {'sum(session)': 1954, 'count_unique(user)': 915},
- series: {
- 'sum(session)': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 40, 1914],
- 'count_unique(user)': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 914],
- },
- },
- ],
- };
- }
- export function SessionUserStatusCountByProjectInPeriodFixture(): SessionApiResponse {
- return {
- start: '',
- end: '',
- query: '',
- intervals: [
- '2021-03-05T00:00:00Z',
- '2021-03-06T00:00:00Z',
- '2021-03-07T00:00:00Z',
- '2021-03-08T00:00:00Z',
- '2021-03-09T00:00:00Z',
- '2021-03-10T00:00:00Z',
- '2021-03-11T00:00:00Z',
- '2021-03-12T00:00:00Z',
- '2021-03-13T00:00:00Z',
- '2021-03-14T00:00:00Z',
- '2021-03-15T00:00:00Z',
- '2021-03-16T00:00:00Z',
- '2021-03-17T00:00:00Z',
- '2021-03-18T00:00:00Z',
- ],
- groups: [
- {
- by: {
- project: 123,
- 'session.status': 'crashed',
- },
- totals: {'sum(session)': 992, 'count_unique(user)': 92},
- series: {
- 'sum(session)': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 990],
- 'count_unique(user)': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 90],
- },
- },
- {
- by: {
- project: 123,
- 'session.status': 'healthy',
- },
- totals: {'sum(session)': 9260, 'count_unique(user)': 260},
- series: {
- 'sum(session)': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9167, 93],
- 'count_unique(user)': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 258],
- },
- },
- {
- by: {
- project: 123,
- 'session.status': 'abnormal',
- },
- totals: {'sum(session)': 0, 'count_unique(user)': 0},
- series: {
- 'sum(session)': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
- 'count_unique(user)': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
- },
- },
- {
- by: {
- project: 123,
- 'session.status': 'errored',
- },
- totals: {'sum(session)': 99, 'count_unique(user)': 9},
- series: {
- 'sum(session)': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 99, 0],
- 'count_unique(user)': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 8],
- },
- },
- ],
- };
- }
- export function UserTotalCountByReleaseIn24hFixture(): SessionApiResponse {
- return {
- start: '',
- end: '',
- 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: {'count_unique(user)': 56826},
- series: {
- 'count_unique(user)': [
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 444, 4912, 5649, 8019, 6726, 7540,
- 6970, 5015, 4686, 6434, 431,
- ],
- },
- },
- {
- by: {release: 'e102abb2c46e7fe8686441091005c12aed90da99', project: 123},
- totals: {'count_unique(user)': 850},
- series: {
- 'count_unique(user)': [
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 809, 0, 2, 6, 2, 9, 8, 0, 9, 5, 0,
- ],
- },
- },
- ],
- };
- }
- export function UserTotalCountByProjectIn24hFixture(): SessionApiResponse {
- return {
- start: '',
- end: '',
- query: '',
- 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},
- totals: {'count_unique(user)': 140965},
- series: {
- 'count_unique(user)': [
- 1284, 3820, 6981, 6929, 9999, 1476, 4145, 2642, 2917, 5787, 5036, 9287, 4815,
- 9815, 6334, 6415, 8961, 7512, 8149, 7585, 5725, 6365, 8104, 882,
- ],
- },
- },
- ],
- };
- }
- export function SessionUserCountByStatusByReleaseFixture(): SessionApiResponse {
- 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(session)': 34, 'count_unique(user)': 1},
- series: {
- 'sum(session)': [0, 0, 0, 0, 0, 0, 0, 0, 0, 23, 11, 0, 0, 0],
- 'count_unique(user)': [0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0],
- },
- },
- {
- by: {'session.status': 'abnormal', release: '1'},
- totals: {'sum(session)': 1, 'count_unique(user)': 1},
- series: {
- 'sum(session)': [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
- 'count_unique(user)': [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
- },
- },
- {
- by: {'session.status': 'errored', release: '1'},
- totals: {'sum(session)': 451, 'count_unique(user)': 2},
- series: {
- 'sum(session)': [0, 0, 0, 0, 0, 37, 0, 0, 0, 335, 79, 0, 0, 0],
- 'count_unique(user)': [0, 0, 0, 0, 0, 1, 0, 0, 0, 2, 2, 0, 0, 0],
- },
- },
- {
- by: {'session.status': 'healthy', release: '1'},
- totals: {'sum(session)': 5058, 'count_unique(user)': 3},
- series: {
- 'sum(session)': [0, 0, 0, 0, 0, 2503, 661, 0, 0, 1464, 430, 0, 0, 0],
- 'count_unique(user)': [0, 0, 0, 0, 0, 3, 3, 0, 0, 1, 1, 0, 0, 0],
- },
- },
- {
- by: {'session.status': 'crashed', release: '2'},
- totals: {'sum(session)': 35, 'count_unique(user)': 2},
- series: {
- 'sum(session)': [1, 0, 0, 0, 0, 0, 0, 0, 0, 23, 11, 0, 0, 0],
- 'count_unique(user)': [1, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 0, 0, 0],
- },
- },
- {
- by: {'session.status': 'abnormal', release: '2'},
- totals: {'sum(session)': 1, 'count_unique(user)': 1},
- series: {
- 'sum(session)': [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
- 'count_unique(user)': [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
- },
- },
- {
- by: {'session.status': 'errored', release: '2'},
- totals: {'sum(session)': 452, 'count_unique(user)': 1},
- series: {
- 'sum(session)': [1, 0, 0, 0, 0, 37, 0, 0, 0, 335, 79, 0, 0, 0],
- 'count_unique(user)': [1, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0],
- },
- },
- {
- by: {'session.status': 'healthy', release: '2'},
- totals: {'sum(session)': 5059, 'count_unique(user)': 10},
- series: {
- 'sum(session)': [1, 0, 0, 0, 0, 2503, 661, 0, 0, 1464, 430, 0, 0, 0],
- 'count_unique(user)': [1, 0, 0, 0, 0, 10, 3, 0, 0, 4, 3, 0, 0, 0],
- },
- },
- ],
- };
- }
- export function SessionEmptyGroupedResponseFixture(): SessionApiResponse {
- 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: [],
- };
- }
|