[APM] Round numeric values to 15 significant digits (#77899)

* rounding numeric values to 5 decimals

* fixing api tests

* fixing api tests

* addressing PR comment

* fixing api tests

* fixing tests
This commit is contained in:
Cauê Marcondes 2020-09-23 14:14:41 +01:00 committed by GitHub
parent 21490d91c6
commit 8d4b5a599a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 409 additions and 396 deletions

View file

@ -19,8 +19,7 @@ export default function ApiTest({ getService }: FtrProviderContext) {
const supertest = getService('supertest');
const esArchiver = getService('esArchiver');
// FLAKY: https://github.com/elastic/kibana/issues/77870
describe.skip('when data is loaded', () => {
describe('when data is loaded', () => {
before(() => esArchiver.load('metrics_8.0.0'));
after(() => esArchiver.unload('metrics_8.0.0'));
@ -70,7 +69,7 @@ export default function ApiTest({ getService }: FtrProviderContext) {
.toMatchInline(`
Array [
0.714,
0.38770000000000004,
0.3877,
0.75,
0.2543,
]
@ -100,8 +99,8 @@ export default function ApiTest({ getService }: FtrProviderContext) {
expectSnapshot(systemMemoryUsageChart?.series.map(({ overallValue }) => overallValue))
.toMatchInline(`
Array [
0.7220939209255549,
0.7181735467963479,
0.722093920925555,
0.718173546796348,
]
`);
});
@ -162,9 +161,9 @@ export default function ApiTest({ getService }: FtrProviderContext) {
.toMatchInline(`
Array [
0.203,
0.17877777777777779,
0.178777777777778,
0.01,
0.009000000000000001,
0.009,
]
`);
});
@ -175,8 +174,8 @@ export default function ApiTest({ getService }: FtrProviderContext) {
Array [
0.193,
0.193,
0.009000000000000001,
0.009000000000000001,
0.009,
0.009,
]
`);
});
@ -204,8 +203,8 @@ export default function ApiTest({ getService }: FtrProviderContext) {
expectSnapshot(systemMemoryUsageChart?.series.map(({ overallValue }) => overallValue))
.toMatchInline(`
Array [
0.7079247035578369,
0.7053959808411816,
0.707924703557837,
0.705395980841182,
]
`);
});
@ -214,8 +213,8 @@ export default function ApiTest({ getService }: FtrProviderContext) {
const yValues = systemMemoryUsageChart?.series.map((serie) => first(serie.data)?.y);
expectSnapshot(yValues).toMatchInline(`
Array [
0.7079247035578369,
0.7079247035578369,
0.707924703557837,
0.707924703557837,
]
`);
});
@ -244,7 +243,7 @@ export default function ApiTest({ getService }: FtrProviderContext) {
expectSnapshot(cpuUsageChart?.series.map(({ overallValue }) => overallValue))
.toMatchInline(`
Array [
222501617.7777778,
222501617.777778,
374341632,
1560281088,
]
@ -285,8 +284,8 @@ export default function ApiTest({ getService }: FtrProviderContext) {
expectSnapshot(cpuUsageChart?.series.map(({ overallValue }) => overallValue))
.toMatchInline(`
Array [
138573397.33333334,
147677639.1111111,
138573397.333333,
147677639.111111,
]
`);
});
@ -324,7 +323,7 @@ export default function ApiTest({ getService }: FtrProviderContext) {
expectSnapshot(cpuUsageChart?.series.map(({ overallValue }) => overallValue))
.toMatchInline(`
Array [
44.44444444444444,
44.4444444444444,
45,
]
`);
@ -423,16 +422,16 @@ export default function ApiTest({ getService }: FtrProviderContext) {
expectSnapshot(systemMemoryUsageChart?.series.map(({ overallValue }) => overallValue))
.toMatchInline(`
Array [
0.11452389642649889,
0.11400237609041514,
0.114523896426499,
0.114002376090415,
]
`);
const yValues = systemMemoryUsageChart?.series.map((serie) => first(serie.data)?.y);
expectSnapshot(yValues).toMatchInline(`
Array [
0.11383724014063981,
0.11383724014063981,
0.11383724014064,
0.11383724014064,
]
`);
});

View file

@ -64,15 +64,15 @@ export default function ApiTest({ getService }: FtrProviderContext) {
},
Object {
"x": "2020-09-15T08:54:00.000Z",
"y": 1.8666666666666667,
"y": 1.86666666666667,
},
Object {
"x": "2020-09-15T08:55:00.000Z",
"y": 0.9666666666666667,
"y": 0.966666666666667,
},
Object {
"x": "2020-09-15T08:56:00.000Z",
"y": 1.9333333333333333,
"y": 1.93333333333333,
},
Object {
"x": "2020-09-15T08:57:00.000Z",

View file

@ -91,43 +91,43 @@ export default function ApiTest({ getService }: FtrProviderContext) {
Array [
Object {
"avgResponseTime": Object {
"value": 213583.7652495379,
"value": 213583.765249538,
},
"transactionErrorRate": Object {
"value": 0,
},
"transactionsPerMinute": Object {
"value": 18.033333333333335,
"value": 18.0333333333333,
},
},
Object {
"avgResponseTime": Object {
"value": 600255.7079646018,
"value": 600255.707964602,
},
"transactionErrorRate": Object {
"value": 0,
},
"transactionsPerMinute": Object {
"value": 7.533333333333333,
"value": 7.53333333333333,
},
},
Object {
"avgResponseTime": Object {
"value": 1818501.060810811,
"value": 1818501.06081081,
},
"transactionErrorRate": Object {
"value": 0.02027027027027027,
"value": 0.0202702702702703,
},
"transactionsPerMinute": Object {
"value": 4.933333333333334,
"value": 4.93333333333333,
},
},
Object {
"avgResponseTime": Object {
"value": 290900.5714285714,
"value": 290900.571428571,
},
"transactionErrorRate": Object {
"value": 0.013605442176870748,
"value": 0.0136054421768707,
},
"transactionsPerMinute": Object {
"value": 4.9,
@ -135,10 +135,10 @@ export default function ApiTest({ getService }: FtrProviderContext) {
},
Object {
"avgResponseTime": Object {
"value": 1123903.7027027027,
"value": 1123903.7027027,
},
"transactionErrorRate": Object {
"value": 0.009009009009009009,
"value": 0.00900900900900901,
},
"transactionsPerMinute": Object {
"value": 3.7,
@ -146,10 +146,10 @@ export default function ApiTest({ getService }: FtrProviderContext) {
},
Object {
"avgResponseTime": Object {
"value": 80364.62962962964,
"value": 80364.6296296296,
},
"transactionErrorRate": Object {
"value": 0.18518518518518517,
"value": 0.185185185185185,
},
"transactionsPerMinute": Object {
"value": 3.6,
@ -157,10 +157,10 @@ export default function ApiTest({ getService }: FtrProviderContext) {
},
Object {
"avgResponseTime": Object {
"value": 1365102.9411764706,
"value": 1365102.94117647,
},
"transactionsPerMinute": Object {
"value": 2.2666666666666666,
"value": 2.26666666666667,
},
},
]

View file

@ -12,11 +12,11 @@ Array [
"serviceName": "opbeans-node",
"transactionName": "POST /api/orders",
"transactionType": "request",
"transactionsPerMinute": 0.03333333333333333,
"transactionsPerMinute": 0.0333333333333333,
},
Object {
"averageResponseTime": 3347,
"impact": 0.003559081182448518,
"impact": 0.00355908118244852,
"key": Object {
"service.name": "opbeans-python",
"transaction.name": "GET opbeans.views.stats",
@ -24,7 +24,7 @@ Array [
"serviceName": "opbeans-python",
"transactionName": "GET opbeans.views.stats",
"transactionType": "request",
"transactionsPerMinute": 0.03333333333333333,
"transactionsPerMinute": 0.0333333333333333,
},
Object {
"averageResponseTime": 4479,
@ -36,11 +36,11 @@ Array [
"serviceName": "opbeans-node",
"transactionName": "GET /api/customers/:id",
"transactionType": "request",
"transactionsPerMinute": 0.03333333333333333,
"transactionsPerMinute": 0.0333333333333333,
},
Object {
"averageResponseTime": 7287,
"impact": 0.009904230439845424,
"impact": 0.00990423043984542,
"key": Object {
"service.name": "opbeans-node",
"transaction.name": "GET /api/products/top",
@ -48,11 +48,11 @@ Array [
"serviceName": "opbeans-node",
"transactionName": "GET /api/products/top",
"transactionType": "request",
"transactionsPerMinute": 0.03333333333333333,
"transactionsPerMinute": 0.0333333333333333,
},
Object {
"averageResponseTime": 8023,
"impact": 0.011089517204678958,
"impact": 0.011089517204679,
"key": Object {
"service.name": "opbeans-ruby",
"transaction.name": "Api::OrdersController#show",
@ -60,11 +60,11 @@ Array [
"serviceName": "opbeans-ruby",
"transactionName": "Api::OrdersController#show",
"transactionType": "request",
"transactionsPerMinute": 0.03333333333333333,
"transactionsPerMinute": 0.0333333333333333,
},
Object {
"averageResponseTime": 8282,
"impact": 0.011506622193934236,
"impact": 0.0115066221939342,
"key": Object {
"service.name": "opbeans-node",
"transaction.name": "GET /api/orders/:id",
@ -72,11 +72,11 @@ Array [
"serviceName": "opbeans-node",
"transactionName": "GET /api/orders/:id",
"transactionType": "request",
"transactionsPerMinute": 0.03333333333333333,
"transactionsPerMinute": 0.0333333333333333,
},
Object {
"averageResponseTime": 12116,
"impact": 0.017681064390091532,
"impact": 0.0176810643900915,
"key": Object {
"service.name": "opbeans-ruby",
"transaction.name": "Api::ProductsController#top",
@ -84,11 +84,11 @@ Array [
"serviceName": "opbeans-ruby",
"transactionName": "Api::ProductsController#top",
"transactionType": "request",
"transactionsPerMinute": 0.03333333333333333,
"transactionsPerMinute": 0.0333333333333333,
},
Object {
"averageResponseTime": 6451,
"impact": 0.018946873353622995,
"impact": 0.018946873353623,
"key": Object {
"service.name": "opbeans-node",
"transaction.name": "GET /api/products",
@ -96,11 +96,11 @@ Array [
"serviceName": "opbeans-node",
"transactionName": "GET /api/products",
"transactionType": "request",
"transactionsPerMinute": 0.06666666666666667,
"transactionsPerMinute": 0.0666666666666667,
},
Object {
"averageResponseTime": 13360,
"impact": 0.019684456693696034,
"impact": 0.019684456693696,
"key": Object {
"service.name": "opbeans-java",
"transaction.name": "APIRestController#customers",
@ -108,11 +108,11 @@ Array [
"serviceName": "opbeans-java",
"transactionName": "APIRestController#customers",
"transactionType": "request",
"transactionsPerMinute": 0.03333333333333333,
"transactionsPerMinute": 0.0333333333333333,
},
Object {
"averageResponseTime": 7903,
"impact": 0.023623602653998786,
"impact": 0.0236236026539988,
"key": Object {
"service.name": "opbeans-java",
"transaction.name": "APIRestController#product",
@ -120,11 +120,11 @@ Array [
"serviceName": "opbeans-java",
"transactionName": "APIRestController#product",
"transactionType": "request",
"transactionsPerMinute": 0.06666666666666667,
"transactionsPerMinute": 0.0666666666666667,
},
Object {
"averageResponseTime": 17913,
"impact": 0.027016808107129565,
"impact": 0.0270168081071296,
"key": Object {
"service.name": "opbeans-node",
"transaction.name": "GET /api/stats",
@ -132,11 +132,11 @@ Array [
"serviceName": "opbeans-node",
"transactionName": "GET /api/stats",
"transactionType": "request",
"transactionsPerMinute": 0.03333333333333333,
"transactionsPerMinute": 0.0333333333333333,
},
Object {
"averageResponseTime": 6065.666666666667,
"impact": 0.02747417419573381,
"averageResponseTime": 6065.66666666667,
"impact": 0.0274741741957338,
"key": Object {
"service.name": "opbeans-java",
"transaction.name": "APIRestController#topProducts",
@ -148,7 +148,7 @@ Array [
},
Object {
"averageResponseTime": 2340.875,
"impact": 0.02832770950193187,
"impact": 0.0283277095019319,
"key": Object {
"service.name": "opbeans-java",
"transaction.name": "ResourceHttpRequestHandler",
@ -156,11 +156,11 @@ Array [
"serviceName": "opbeans-java",
"transactionName": "ResourceHttpRequestHandler",
"transactionType": "request",
"transactionsPerMinute": 0.26666666666666666,
"transactionsPerMinute": 0.266666666666667,
},
Object {
"averageResponseTime": 7340.666666666667,
"impact": 0.03363412239612548,
"averageResponseTime": 7340.66666666667,
"impact": 0.0336341223961255,
"key": Object {
"service.name": "opbeans-java",
"transaction.name": "APIRestController#customerWhoBought",
@ -172,7 +172,7 @@ Array [
},
Object {
"averageResponseTime": 7689,
"impact": 0.03531703634891222,
"impact": 0.0353170363489122,
"key": Object {
"service.name": "opbeans-node",
"transaction.name": "GET /api/types",
@ -184,7 +184,7 @@ Array [
},
Object {
"averageResponseTime": 11598,
"impact": 0.035524783621552876,
"impact": 0.0355247836215529,
"key": Object {
"service.name": "opbeans-node",
"transaction.name": "GET /api/products/:id/customers",
@ -192,11 +192,11 @@ Array [
"serviceName": "opbeans-node",
"transactionName": "GET /api/products/:id/customers",
"transactionType": "request",
"transactionsPerMinute": 0.06666666666666667,
"transactionsPerMinute": 0.0666666666666667,
},
Object {
"averageResponseTime": 12077.5,
"impact": 0.03706919939257919,
"impact": 0.0370691993925792,
"key": Object {
"service.name": "opbeans-java",
"transaction.name": "APIRestController#order",
@ -204,11 +204,11 @@ Array [
"serviceName": "opbeans-java",
"transactionName": "APIRestController#order",
"transactionType": "request",
"transactionsPerMinute": 0.06666666666666667,
"transactionsPerMinute": 0.0666666666666667,
},
Object {
"averageResponseTime": 6296.5,
"impact": 0.03872956712973051,
"impact": 0.0387295671297305,
"key": Object {
"service.name": "opbeans-ruby",
"transaction.name": "Api::TypesController#index",
@ -216,11 +216,11 @@ Array [
"serviceName": "opbeans-ruby",
"transactionName": "Api::TypesController#index",
"transactionType": "request",
"transactionsPerMinute": 0.13333333333333333,
"transactionsPerMinute": 0.133333333333333,
},
Object {
"averageResponseTime": 28181,
"impact": 0.04355284683173653,
"impact": 0.0435528468317365,
"key": Object {
"service.name": "opbeans-python",
"transaction.name": "GET opbeans.views.customer",
@ -228,11 +228,11 @@ Array [
"serviceName": "opbeans-python",
"transactionName": "GET opbeans.views.customer",
"transactionType": "request",
"transactionsPerMinute": 0.03333333333333333,
"transactionsPerMinute": 0.0333333333333333,
},
Object {
"averageResponseTime": 7439,
"impact": 0.046089296090721335,
"impact": 0.0460892960907213,
"key": Object {
"service.name": "opbeans-go",
"transaction.name": "GET /api/customers/:id",
@ -240,10 +240,10 @@ Array [
"serviceName": "opbeans-go",
"transactionName": "GET /api/customers/:id",
"transactionType": "request",
"transactionsPerMinute": 0.13333333333333333,
"transactionsPerMinute": 0.133333333333333,
},
Object {
"averageResponseTime": 10471.333333333334,
"averageResponseTime": 10471.3333333333,
"impact": 0.0487594121995447,
"key": Object {
"service.name": "opbeans-node",
@ -264,11 +264,11 @@ Array [
"serviceName": "opbeans-node",
"transactionName": "GET /api/customers",
"transactionType": "request",
"transactionsPerMinute": 0.06666666666666667,
"transactionsPerMinute": 0.0666666666666667,
},
Object {
"averageResponseTime": 11732.25,
"impact": 0.07374545045551247,
"impact": 0.0737454504555125,
"key": Object {
"service.name": "opbeans-java",
"transaction.name": "APIRestController#customer",
@ -276,7 +276,7 @@ Array [
"serviceName": "opbeans-java",
"transactionName": "APIRestController#customer",
"transactionType": "request",
"transactionsPerMinute": 0.13333333333333333,
"transactionsPerMinute": 0.133333333333333,
},
Object {
"averageResponseTime": 47646,
@ -288,11 +288,11 @@ Array [
"serviceName": "opbeans-python",
"transactionName": "GET opbeans.views.customers",
"transactionType": "request",
"transactionsPerMinute": 0.03333333333333333,
"transactionsPerMinute": 0.0333333333333333,
},
Object {
"averageResponseTime": 13160.75,
"impact": 0.08294752732271193,
"impact": 0.0829475273227119,
"key": Object {
"service.name": "opbeans-python",
"transaction.name": "GET opbeans.views.products",
@ -300,11 +300,11 @@ Array [
"serviceName": "opbeans-python",
"transactionName": "GET opbeans.views.products",
"transactionType": "request",
"transactionsPerMinute": 0.13333333333333333,
"transactionsPerMinute": 0.133333333333333,
},
Object {
"averageResponseTime": 4131.461538461538,
"impact": 0.08466426059895181,
"averageResponseTime": 4131.46153846154,
"impact": 0.0846642605989518,
"key": Object {
"service.name": "opbeans-go",
"transaction.name": "GET /api/types/:id",
@ -312,11 +312,11 @@ Array [
"serviceName": "opbeans-go",
"transactionName": "GET /api/types/:id",
"transactionType": "request",
"transactionsPerMinute": 0.43333333333333335,
"transactionsPerMinute": 0.433333333333333,
},
Object {
"averageResponseTime": 13869.25,
"impact": 0.08751152554491062,
"impact": 0.0875115255449106,
"key": Object {
"service.name": "opbeans-ruby",
"transaction.name": "Api::StatsController#index",
@ -324,11 +324,11 @@ Array [
"serviceName": "opbeans-ruby",
"transactionName": "Api::StatsController#index",
"transactionType": "request",
"transactionsPerMinute": 0.13333333333333333,
"transactionsPerMinute": 0.133333333333333,
},
Object {
"averageResponseTime": 20643.333333333332,
"impact": 0.09790372050886552,
"averageResponseTime": 20643.3333333333,
"impact": 0.0979037205088655,
"key": Object {
"service.name": "opbeans-ruby",
"transaction.name": "Api::ProductsController#show",
@ -340,7 +340,7 @@ Array [
},
Object {
"averageResponseTime": 15596.5,
"impact": 0.09863808296099064,
"impact": 0.0986380829609906,
"key": Object {
"service.name": "opbeans-ruby",
"transaction.name": "Api::TypesController#show",
@ -348,11 +348,11 @@ Array [
"serviceName": "opbeans-ruby",
"transactionName": "Api::TypesController#show",
"transactionType": "request",
"transactionsPerMinute": 0.13333333333333333,
"transactionsPerMinute": 0.133333333333333,
},
Object {
"averageResponseTime": 20989,
"impact": 0.09957375090986059,
"impact": 0.0995737509098606,
"key": Object {
"service.name": "opbeans-python",
"transaction.name": "GET opbeans.views.orders",
@ -364,7 +364,7 @@ Array [
},
Object {
"averageResponseTime": 74419,
"impact": 0.11801655529963453,
"impact": 0.118016555299635,
"key": Object {
"service.name": "opbeans-python",
"transaction.name": "GET opbeans.views.product_type",
@ -372,11 +372,11 @@ Array [
"serviceName": "opbeans-python",
"transactionName": "GET opbeans.views.product_type",
"transactionType": "request",
"transactionsPerMinute": 0.03333333333333333,
"transactionsPerMinute": 0.0333333333333333,
},
Object {
"averageResponseTime": 10678.42857142857,
"impact": 0.11854800181104089,
"averageResponseTime": 10678.4285714286,
"impact": 0.118548001811041,
"key": Object {
"service.name": "opbeans-go",
"transaction.name": "GET /api/orders/:id",
@ -384,11 +384,11 @@ Array [
"serviceName": "opbeans-go",
"transactionName": "GET /api/orders/:id",
"transactionType": "request",
"transactionsPerMinute": 0.23333333333333334,
"transactionsPerMinute": 0.233333333333333,
},
Object {
"averageResponseTime": 27078.666666666668,
"impact": 0.12899495187011034,
"averageResponseTime": 27078.6666666667,
"impact": 0.12899495187011,
"key": Object {
"service.name": "opbeans-ruby",
"transaction.name": "Api::OrdersController#index",
@ -399,8 +399,8 @@ Array [
"transactionsPerMinute": 0.1,
},
Object {
"averageResponseTime": 11827.42857142857,
"impact": 0.13150080269358994,
"averageResponseTime": 11827.4285714286,
"impact": 0.13150080269359,
"key": Object {
"service.name": "opbeans-go",
"transaction.name": "GET /api/customers",
@ -408,11 +408,11 @@ Array [
"serviceName": "opbeans-go",
"transactionName": "GET /api/customers",
"transactionType": "request",
"transactionsPerMinute": 0.23333333333333334,
"transactionsPerMinute": 0.233333333333333,
},
Object {
"averageResponseTime": 21770.75,
"impact": 0.13841121778584634,
"impact": 0.138411217785846,
"key": Object {
"service.name": "opbeans-python",
"transaction.name": "GET opbeans.views.product",
@ -420,11 +420,11 @@ Array [
"serviceName": "opbeans-python",
"transactionName": "GET opbeans.views.product",
"transactionType": "request",
"transactionsPerMinute": 0.13333333333333333,
"transactionsPerMinute": 0.133333333333333,
},
Object {
"averageResponseTime": 10252,
"impact": 0.1467613697908217,
"impact": 0.146761369790822,
"key": Object {
"service.name": "opbeans-go",
"transaction.name": "GET /api/types",
@ -436,7 +436,7 @@ Array [
},
Object {
"averageResponseTime": 100570,
"impact": 0.16013127566262603,
"impact": 0.160131275662626,
"key": Object {
"service.name": "opbeans-python",
"transaction.name": "GET opbeans.views.top_products",
@ -444,11 +444,11 @@ Array [
"serviceName": "opbeans-python",
"transactionName": "GET opbeans.views.top_products",
"transactionType": "request",
"transactionsPerMinute": 0.03333333333333333,
"transactionsPerMinute": 0.0333333333333333,
},
Object {
"averageResponseTime": 15505,
"impact": 0.1979283957314345,
"impact": 0.197928395731435,
"key": Object {
"service.name": "opbeans-ruby",
"transaction.name": "Api::CustomersController#index",
@ -456,11 +456,11 @@ Array [
"serviceName": "opbeans-ruby",
"transactionName": "Api::CustomersController#index",
"transactionType": "request",
"transactionsPerMinute": 0.26666666666666666,
"transactionsPerMinute": 0.266666666666667,
},
Object {
"averageResponseTime": 22856.5,
"impact": 0.21902360134631826,
"impact": 0.219023601346318,
"key": Object {
"service.name": "opbeans-go",
"transaction.name": "GET /api/products",
@ -472,7 +472,7 @@ Array [
},
Object {
"averageResponseTime": 17250.125,
"impact": 0.2204118040518706,
"impact": 0.220411804051871,
"key": Object {
"service.name": "opbeans-ruby",
"transaction.name": "Api::ProductsController#index",
@ -480,11 +480,11 @@ Array [
"serviceName": "opbeans-ruby",
"transactionName": "Api::ProductsController#index",
"transactionType": "request",
"transactionsPerMinute": 0.26666666666666666,
"transactionsPerMinute": 0.266666666666667,
},
Object {
"averageResponseTime": 20089.555555555555,
"impact": 0.2893468583571687,
"averageResponseTime": 20089.5555555556,
"impact": 0.289346858357169,
"key": Object {
"service.name": "opbeans-ruby",
"transaction.name": "Api::CustomersController#show",
@ -495,8 +495,8 @@ Array [
"transactionsPerMinute": 0.3,
},
Object {
"averageResponseTime": 26487.85714285714,
"impact": 0.29676939463314395,
"averageResponseTime": 26487.8571428571,
"impact": 0.296769394633144,
"key": Object {
"service.name": "opbeans-go",
"transaction.name": "GET /api/stats",
@ -504,11 +504,11 @@ Array [
"serviceName": "opbeans-go",
"transactionName": "GET /api/stats",
"transactionType": "request",
"transactionsPerMinute": 0.23333333333333334,
"transactionsPerMinute": 0.233333333333333,
},
Object {
"averageResponseTime": 14957.538461538461,
"impact": 0.31131653504991197,
"averageResponseTime": 14957.5384615385,
"impact": 0.311316535049912,
"key": Object {
"service.name": "opbeans-go",
"transaction.name": "GET /api/products/:id/customers",
@ -516,7 +516,7 @@ Array [
"serviceName": "opbeans-go",
"transactionName": "GET /api/products/:id/customers",
"transactionType": "request",
"transactionsPerMinute": 0.43333333333333335,
"transactionsPerMinute": 0.433333333333333,
},
Object {
"averageResponseTime": 30178.5,
@ -528,11 +528,11 @@ Array [
"serviceName": "opbeans-node",
"transactionName": "GET /api",
"transactionType": "request",
"transactionsPerMinute": 0.4666666666666667,
"transactionsPerMinute": 0.466666666666667,
},
Object {
"averageResponseTime": 32625.875,
"impact": 0.8388432258236366,
"impact": 0.838843225823637,
"key": Object {
"service.name": "opbeans-go",
"transaction.name": "GET /api/products/:id",
@ -540,11 +540,11 @@ Array [
"serviceName": "opbeans-go",
"transactionName": "GET /api/products/:id",
"transactionType": "request",
"transactionsPerMinute": 0.5333333333333333,
"transactionsPerMinute": 0.533333333333333,
},
Object {
"averageResponseTime": 121200.83333333333,
"impact": 1.1692918352841768,
"averageResponseTime": 121200.833333333,
"impact": 1.16929183528418,
"key": Object {
"service.name": "opbeans-python",
"transaction.name": "GET opbeans.views.product_customers",
@ -555,8 +555,8 @@ Array [
"transactionsPerMinute": 0.2,
},
Object {
"averageResponseTime": 38025.86666666667,
"impact": 3.6724805948748136,
"averageResponseTime": 38025.8666666667,
"impact": 3.67248059487481,
"key": Object {
"service.name": "opbeans-python",
"transaction.name": "opbeans.tasks.sync_orders",
@ -579,8 +579,8 @@ Array [
"transactionsPerMinute": 0.3,
},
Object {
"averageResponseTime": 691636.3636363636,
"impact": 12.25042667907868,
"averageResponseTime": 691636.363636364,
"impact": 12.2504266790787,
"key": Object {
"service.name": "opbeans-rum",
"transaction.name": "/customers",
@ -588,11 +588,11 @@ Array [
"serviceName": "opbeans-rum",
"transactionName": "/customers",
"transactionType": "page-load",
"transactionsPerMinute": 0.36666666666666664,
"transactionsPerMinute": 0.366666666666667,
},
Object {
"averageResponseTime": 1590910.5,
"impact": 20.494746747861388,
"impact": 20.4947467478614,
"key": Object {
"service.name": "opbeans-go",
"transaction.name": "GET /api/orders",
@ -600,11 +600,11 @@ Array [
"serviceName": "opbeans-go",
"transactionName": "GET /api/orders",
"transactionType": "request",
"transactionsPerMinute": 0.26666666666666666,
"transactionsPerMinute": 0.266666666666667,
},
Object {
"averageResponseTime": 303589.16279069765,
"impact": 21.02144244954455,
"averageResponseTime": 303589.162790698,
"impact": 21.0214424495446,
"key": Object {
"service.name": "opbeans-ruby",
"transaction.name": "Rack",
@ -612,11 +612,11 @@ Array [
"serviceName": "opbeans-ruby",
"transactionName": "Rack",
"transactionType": "request",
"transactionsPerMinute": 1.4333333333333333,
"transactionsPerMinute": 1.43333333333333,
},
Object {
"averageResponseTime": 1180200,
"impact": 28.507858596190804,
"impact": 28.5078585961908,
"key": Object {
"service.name": "opbeans-rum",
"transaction.name": "/products",
@ -627,8 +627,8 @@ Array [
"transactionsPerMinute": 0.5,
},
Object {
"averageResponseTime": 1073178.5714285714,
"impact": 48.390399898683754,
"averageResponseTime": 1073178.57142857,
"impact": 48.3903998986838,
"key": Object {
"service.name": "opbeans-rum",
"transaction.name": "/dashboard",
@ -636,11 +636,11 @@ Array [
"serviceName": "opbeans-rum",
"transactionName": "/dashboard",
"transactionType": "page-load",
"transactionsPerMinute": 0.9333333333333333,
"transactionsPerMinute": 0.933333333333333,
},
Object {
"averageResponseTime": 2676214.285714286,
"impact": 60.33667329750868,
"averageResponseTime": 2676214.28571429,
"impact": 60.3366732975087,
"key": Object {
"service.name": "opbeans-rum",
"transaction.name": "/orders",
@ -648,11 +648,11 @@ Array [
"serviceName": "opbeans-rum",
"transactionName": "/orders",
"transactionType": "page-load",
"transactionsPerMinute": 0.4666666666666667,
"transactionsPerMinute": 0.466666666666667,
},
Object {
"averageResponseTime": 928922.4347826086,
"impact": 68.81313564424958,
"averageResponseTime": 928922.434782609,
"impact": 68.8131356442496,
"key": Object {
"service.name": "opbeans-node",
"transaction.name": "Process completed order",
@ -660,11 +660,11 @@ Array [
"serviceName": "opbeans-node",
"transactionName": "Process completed order",
"transactionType": "Worker",
"transactionsPerMinute": 1.5333333333333334,
"transactionsPerMinute": 1.53333333333333,
},
Object {
"averageResponseTime": 1012219.0930232558,
"impact": 70.09342088866295,
"averageResponseTime": 1012219.09302326,
"impact": 70.0934208886629,
"key": Object {
"service.name": "opbeans-node",
"transaction.name": "Process payment",
@ -672,11 +672,11 @@ Array [
"serviceName": "opbeans-node",
"transactionName": "Process payment",
"transactionType": "Worker",
"transactionsPerMinute": 1.4333333333333333,
"transactionsPerMinute": 1.43333333333333,
},
Object {
"averageResponseTime": 126010.60833333334,
"impact": 73.05405786950051,
"averageResponseTime": 126010.608333333,
"impact": 73.0540578695005,
"key": Object {
"service.name": "opbeans-python",
"transaction.name": "opbeans.tasks.update_stats",
@ -687,8 +687,8 @@ Array [
"transactionsPerMinute": 12,
},
Object {
"averageResponseTime": 1041680.2444444444,
"impact": 75.48871418577934,
"averageResponseTime": 1041680.24444444,
"impact": 75.4887141857793,
"key": Object {
"service.name": "opbeans-node",
"transaction.name": "Update shipping status",

View file

@ -73,7 +73,7 @@ export default function ApiTest({ getService }: FtrProviderContext) {
"serviceName": "opbeans-node",
"transactionName": "POST /api/orders",
"transactionType": "request",
"transactionsPerMinute": 0.03333333333333333,
"transactionsPerMinute": 0.0333333333333333,
}
`);

View file

@ -36,7 +36,7 @@ Object {
},
Object {
"x": 1600160190000,
"y": 0.4827586206896552,
"y": 0.482758620689655,
},
Object {
"x": 1600160220000,
@ -52,7 +52,7 @@ Object {
},
Object {
"x": 1600160310000,
"y": 0.17142857142857143,
"y": 0.171428571428571,
},
Object {
"x": 1600160340000,
@ -68,15 +68,15 @@ Object {
},
Object {
"x": 1600160430000,
"y": 0.41964285714285715,
"y": 0.419642857142857,
},
Object {
"x": 1600160460000,
"y": 0.7222222222222222,
"y": 0.722222222222222,
},
Object {
"x": 1600160490000,
"y": 0.8333333333333334,
"y": 0.833333333333333,
},
Object {
"x": 1600160520000,
@ -88,7 +88,7 @@ Object {
},
Object {
"x": 1600160580000,
"y": 0.11044776119402985,
"y": 0.11044776119403,
},
Object {
"x": 1600160610000,
@ -100,15 +100,15 @@ Object {
},
Object {
"x": 1600160670000,
"y": 0.15028901734104047,
"y": 0.15028901734104,
},
Object {
"x": 1600160700000,
"y": 0.38095238095238093,
"y": 0.380952380952381,
},
Object {
"x": 1600160730000,
"y": 0.06761565836298933,
"y": 0.0676156583629893,
},
Object {
"x": 1600160760000,
@ -116,7 +116,7 @@ Object {
},
Object {
"x": 1600160790000,
"y": 0.26373626373626374,
"y": 0.263736263736264,
},
Object {
"x": 1600160820000,
@ -124,7 +124,7 @@ Object {
},
Object {
"x": 1600160850000,
"y": 0.5294117647058824,
"y": 0.529411764705882,
},
Object {
"x": 1600160880000,
@ -132,11 +132,11 @@ Object {
},
Object {
"x": 1600160910000,
"y": 0.012096774193548387,
"y": 0.0120967741935484,
},
Object {
"x": 1600160940000,
"y": 0.26126126126126126,
"y": 0.261261261261261,
},
Object {
"x": 1600160970000,
@ -148,11 +148,11 @@ Object {
},
Object {
"x": 1600161030000,
"y": 0.16071428571428573,
"y": 0.160714285714286,
},
Object {
"x": 1600161060000,
"y": 0.040268456375838924,
"y": 0.0402684563758389,
},
Object {
"x": 1600161090000,
@ -164,11 +164,11 @@ Object {
},
Object {
"x": 1600161150000,
"y": 0.07894736842105263,
"y": 0.0789473684210526,
},
Object {
"x": 1600161180000,
"y": 0.4074074074074074,
"y": 0.407407407407407,
},
Object {
"x": 1600161210000,
@ -180,11 +180,11 @@ Object {
},
Object {
"x": 1600161270000,
"y": 0.6666666666666666,
"y": 0.666666666666667,
},
Object {
"x": 1600161300000,
"y": 0.8214285714285714,
"y": 0.821428571428571,
},
Object {
"x": 1600161330000,
@ -196,11 +196,11 @@ Object {
},
Object {
"x": 1600161390000,
"y": 0.17333333333333334,
"y": 0.173333333333333,
},
Object {
"x": 1600161420000,
"y": 0.14285714285714285,
"y": 0.142857142857143,
},
Object {
"x": 1600161450000,
@ -212,7 +212,7 @@ Object {
},
Object {
"x": 1600161510000,
"y": 0.42105263157894735,
"y": 0.421052631578947,
},
Object {
"x": 1600161540000,
@ -232,7 +232,7 @@ Object {
},
Object {
"x": 1600161660000,
"y": 0.018518518518518517,
"y": 0.0185185185185185,
},
Object {
"x": 1600161690000,
@ -244,11 +244,11 @@ Object {
},
Object {
"x": 1600161750000,
"y": 0.36764705882352944,
"y": 0.367647058823529,
},
Object {
"x": 1600161780000,
"y": 0.10526315789473684,
"y": 0.105263157894737,
},
],
"hideLegend": false,
@ -289,7 +289,7 @@ Object {
},
Object {
"x": 1600160190000,
"y": 0.41379310344827586,
"y": 0.413793103448276,
},
Object {
"x": 1600160220000,
@ -305,7 +305,7 @@ Object {
},
Object {
"x": 1600160310000,
"y": 0.6285714285714286,
"y": 0.628571428571429,
},
Object {
"x": 1600160340000,
@ -341,7 +341,7 @@ Object {
},
Object {
"x": 1600160580000,
"y": 0.8895522388059701,
"y": 0.88955223880597,
},
Object {
"x": 1600160610000,
@ -353,7 +353,7 @@ Object {
},
Object {
"x": 1600160670000,
"y": 0.7052023121387283,
"y": 0.705202312138728,
},
Object {
"x": 1600160700000,
@ -361,7 +361,7 @@ Object {
},
Object {
"x": 1600160730000,
"y": 0.8718861209964412,
"y": 0.871886120996441,
},
Object {
"x": 1600160760000,
@ -369,7 +369,7 @@ Object {
},
Object {
"x": 1600160790000,
"y": 0.6703296703296703,
"y": 0.67032967032967,
},
Object {
"x": 1600160820000,
@ -385,11 +385,11 @@ Object {
},
Object {
"x": 1600160910000,
"y": 0.9879032258064516,
"y": 0.987903225806452,
},
Object {
"x": 1600160940000,
"y": 0.7387387387387387,
"y": 0.738738738738739,
},
Object {
"x": 1600160970000,
@ -401,7 +401,7 @@ Object {
},
Object {
"x": 1600161030000,
"y": 0.7946428571428571,
"y": 0.794642857142857,
},
Object {
"x": 1600161060000,
@ -417,7 +417,7 @@ Object {
},
Object {
"x": 1600161150000,
"y": 0.9210526315789473,
"y": 0.921052631578947,
},
Object {
"x": 1600161180000,
@ -449,11 +449,11 @@ Object {
},
Object {
"x": 1600161390000,
"y": 0.7466666666666667,
"y": 0.746666666666667,
},
Object {
"x": 1600161420000,
"y": 0.8571428571428571,
"y": 0.857142857142857,
},
Object {
"x": 1600161450000,
@ -465,7 +465,7 @@ Object {
},
Object {
"x": 1600161510000,
"y": 0.5789473684210527,
"y": 0.578947368421053,
},
Object {
"x": 1600161540000,
@ -485,7 +485,7 @@ Object {
},
Object {
"x": 1600161660000,
"y": 0.9814814814814815,
"y": 0.981481481481482,
},
Object {
"x": 1600161690000,
@ -497,11 +497,11 @@ Object {
},
Object {
"x": 1600161750000,
"y": 0.5588235294117647,
"y": 0.558823529411765,
},
Object {
"x": 1600161780000,
"y": 0.8947368421052632,
"y": 0.894736842105263,
},
],
"hideLegend": false,
@ -542,7 +542,7 @@ Object {
},
Object {
"x": 1600160190000,
"y": 0.10344827586206896,
"y": 0.103448275862069,
},
Object {
"x": 1600160220000,
@ -574,15 +574,15 @@ Object {
},
Object {
"x": 1600160430000,
"y": 0.14285714285714285,
"y": 0.142857142857143,
},
Object {
"x": 1600160460000,
"y": 0.2777777777777778,
"y": 0.277777777777778,
},
Object {
"x": 1600160490000,
"y": 0.16666666666666666,
"y": 0.166666666666667,
},
Object {
"x": 1600160520000,
@ -606,15 +606,15 @@ Object {
},
Object {
"x": 1600160670000,
"y": 0.14450867052023122,
"y": 0.144508670520231,
},
Object {
"x": 1600160700000,
"y": 0.6190476190476191,
"y": 0.619047619047619,
},
Object {
"x": 1600160730000,
"y": 0.060498220640569395,
"y": 0.0604982206405694,
},
Object {
"x": 1600160760000,
@ -622,7 +622,7 @@ Object {
},
Object {
"x": 1600160790000,
"y": 0.06593406593406594,
"y": 0.0659340659340659,
},
Object {
"x": 1600160820000,
@ -630,7 +630,7 @@ Object {
},
Object {
"x": 1600160850000,
"y": 0.47058823529411764,
"y": 0.470588235294118,
},
Object {
"x": 1600160880000,
@ -654,7 +654,7 @@ Object {
},
Object {
"x": 1600161030000,
"y": 0.044642857142857144,
"y": 0.0446428571428571,
},
Object {
"x": 1600161060000,
@ -674,7 +674,7 @@ Object {
},
Object {
"x": 1600161180000,
"y": 0.5925925925925926,
"y": 0.592592592592593,
},
Object {
"x": 1600161210000,
@ -686,11 +686,11 @@ Object {
},
Object {
"x": 1600161270000,
"y": 0.3333333333333333,
"y": 0.333333333333333,
},
Object {
"x": 1600161300000,
"y": 0.17857142857142858,
"y": 0.178571428571429,
},
Object {
"x": 1600161330000,
@ -750,7 +750,7 @@ Object {
},
Object {
"x": 1600161750000,
"y": 0.07352941176470588,
"y": 0.0735294117647059,
},
Object {
"x": 1600161780000,

View file

@ -12,7 +12,7 @@ Array [
},
Object {
"x": 1600160040000,
"y": 0.14285714285714285,
"y": 0.142857142857143,
},
Object {
"x": 1600160070000,
@ -44,11 +44,11 @@ Array [
},
Object {
"x": 1600160280000,
"y": 0.16666666666666666,
"y": 0.166666666666667,
},
Object {
"x": 1600160310000,
"y": 0.3333333333333333,
"y": 0.333333333333333,
},
Object {
"x": 1600160340000,
@ -76,7 +76,7 @@ Array [
},
Object {
"x": 1600160520000,
"y": 0.16666666666666666,
"y": 0.166666666666667,
},
Object {
"x": 1600160550000,

View file

@ -10,41 +10,41 @@ Array [
"serviceName": "opbeans-node",
"transactionName": "POST /api/orders",
"transactionType": "request",
"transactionsPerMinute": 0.03333333333333333,
"transactionsPerMinute": 0.0333333333333333,
},
Object {
"averageResponseTime": 4479,
"impact": 0.1825278966745733,
"impact": 0.182527896674573,
"key": "GET /api/customers/:id",
"p95": 4448,
"serviceName": "opbeans-node",
"transactionName": "GET /api/customers/:id",
"transactionType": "request",
"transactionsPerMinute": 0.03333333333333333,
"transactionsPerMinute": 0.0333333333333333,
},
Object {
"averageResponseTime": 2754.5,
"impact": 0.23878275411766442,
"impact": 0.238782754117664,
"key": "GET /*",
"p95": 2832,
"serviceName": "opbeans-node",
"transactionName": "GET /*",
"transactionType": "request",
"transactionsPerMinute": 0.06666666666666667,
"transactionsPerMinute": 0.0666666666666667,
},
Object {
"averageResponseTime": 10841,
"impact": 1.122093248707094,
"impact": 1.12209324870709,
"key": "GET /api/orders/:id",
"p95": 13376,
"serviceName": "opbeans-node",
"transactionName": "GET /api/orders/:id",
"transactionType": "request",
"transactionsPerMinute": 0.06666666666666667,
"transactionsPerMinute": 0.0666666666666667,
},
Object {
"averageResponseTime": 10551.333333333334,
"impact": 1.6667276549425354,
"averageResponseTime": 10551.3333333333,
"impact": 1.66672765494254,
"key": "GET /api/products/top",
"p95": 19552,
"serviceName": "opbeans-node",
@ -54,37 +54,37 @@ Array [
},
Object {
"averageResponseTime": 15988,
"impact": 1.6843141249393074,
"impact": 1.68431412493931,
"key": "GET /api/products/:id",
"p95": 16000,
"serviceName": "opbeans-node",
"transactionName": "GET /api/products/:id",
"transactionType": "request",
"transactionsPerMinute": 0.06666666666666667,
"transactionsPerMinute": 0.0666666666666667,
},
Object {
"averageResponseTime": 9499,
"impact": 2.013104650965918,
"impact": 2.01310465096592,
"key": "GET /api/types",
"p95": 14944,
"serviceName": "opbeans-node",
"transactionName": "GET /api/types",
"transactionType": "request",
"transactionsPerMinute": 0.13333333333333333,
"transactionsPerMinute": 0.133333333333333,
},
Object {
"averageResponseTime": 12228,
"impact": 2.6092969071297842,
"impact": 2.60929690712978,
"key": "GET /api/products/:id/customers",
"p95": 17760,
"serviceName": "opbeans-node",
"transactionName": "GET /api/products/:id/customers",
"transactionType": "request",
"transactionsPerMinute": 0.13333333333333333,
"transactionsPerMinute": 0.133333333333333,
},
Object {
"averageResponseTime": 22555.666666666668,
"impact": 3.633626859892089,
"averageResponseTime": 22555.6666666667,
"impact": 3.63362685989209,
"key": "GET /api/customers",
"p95": 25984,
"serviceName": "opbeans-node",
@ -94,17 +94,17 @@ Array [
},
Object {
"averageResponseTime": 13852.6,
"impact": 3.7207945807456553,
"impact": 3.72079458074566,
"key": "GET /api/types/:id",
"p95": 21984,
"serviceName": "opbeans-node",
"transactionName": "GET /api/types/:id",
"transactionType": "request",
"transactionsPerMinute": 0.16666666666666666,
"transactionsPerMinute": 0.166666666666667,
},
Object {
"averageResponseTime": 12228.5,
"impact": 3.9451586141206243,
"impact": 3.94515861412062,
"key": "GET /api/orders",
"p95": 16736,
"serviceName": "opbeans-node",
@ -113,18 +113,18 @@ Array [
"transactionsPerMinute": 0.2,
},
Object {
"averageResponseTime": 12491.42857142857,
"averageResponseTime": 12491.4285714286,
"impact": 4.71355627370009,
"key": "GET /api/products",
"p95": 30448,
"serviceName": "opbeans-node",
"transactionName": "GET /api/products",
"transactionType": "request",
"transactionsPerMinute": 0.23333333333333334,
"transactionsPerMinute": 0.233333333333333,
},
Object {
"averageResponseTime": 23683.333333333332,
"impact": 11.579379700079686,
"averageResponseTime": 23683.3333333333,
"impact": 11.5793797000797,
"key": "GET /api/stats",
"p95": 36288,
"serviceName": "opbeans-node",
@ -133,14 +133,14 @@ Array [
"transactionsPerMinute": 0.3,
},
Object {
"averageResponseTime": 42606.74418604651,
"averageResponseTime": 42606.7441860465,
"impact": 100,
"key": "GET /api",
"p95": 131008,
"serviceName": "opbeans-node",
"transactionName": "GET /api",
"transactionType": "request",
"transactionsPerMinute": 1.4333333333333333,
"transactionsPerMinute": 1.43333333333333,
},
]
`;

View file

@ -3,7 +3,7 @@
exports[`Transaction charts when data is loaded returns the correct data 4`] = `
Object {
"apmTimeseries": Object {
"overallAvgDuration": 600255.7079646018,
"overallAvgDuration": 600255.707964602,
"responseTimes": Object {
"avg": Array [
Object {
@ -32,11 +32,11 @@ Object {
},
Object {
"x": 1600160160000,
"y": 467003.6666666667,
"y": 467003.666666667,
},
Object {
"x": 1600160190000,
"y": 863809.6666666666,
"y": 863809.666666667,
},
Object {
"x": 1600160220000,
@ -64,7 +64,7 @@ Object {
},
Object {
"x": 1600160400000,
"y": 368087.9090909091,
"y": 368087.909090909,
},
Object {
"x": 1600160430000,
@ -92,11 +92,11 @@ Object {
},
Object {
"x": 1600160610000,
"y": 882789.6666666666,
"y": 882789.666666667,
},
Object {
"x": 1600160640000,
"y": 238075.9090909091,
"y": 238075.909090909,
},
Object {
"x": 1600160670000,
@ -112,11 +112,11 @@ Object {
},
Object {
"x": 1600160760000,
"y": 282337.1666666667,
"y": 282337.166666667,
},
Object {
"x": 1600160790000,
"y": 987012.3333333334,
"y": 987012.333333333,
},
Object {
"x": 1600160820000,
@ -136,7 +136,7 @@ Object {
},
Object {
"x": 1600160940000,
"y": 1313632.6666666667,
"y": 1313632.66666667,
},
Object {
"x": 1600160970000,
@ -144,11 +144,11 @@ Object {
},
Object {
"x": 1600161000000,
"y": 611899.1428571428,
"y": 611899.142857143,
},
Object {
"x": 1600161030000,
"y": 273321.85714285716,
"y": 273321.857142857,
},
Object {
"x": 1600161060000,
@ -156,7 +156,7 @@ Object {
},
Object {
"x": 1600161090000,
"y": 1446104.6666666667,
"y": 1446104.66666667,
},
Object {
"x": 1600161120000,
@ -172,11 +172,11 @@ Object {
},
Object {
"x": 1600161210000,
"y": 1054428.6666666667,
"y": 1054428.66666667,
},
Object {
"x": 1600161240000,
"y": 816781.3333333334,
"y": 816781.333333333,
},
Object {
"x": 1600161270000,
@ -192,7 +192,7 @@ Object {
},
Object {
"x": 1600161360000,
"y": 714202.3333333334,
"y": 714202.333333333,
},
Object {
"x": 1600161390000,
@ -204,7 +204,7 @@ Object {
},
Object {
"x": 1600161450000,
"y": 836182.3333333334,
"y": 836182.333333333,
},
Object {
"x": 1600161480000,
@ -212,11 +212,11 @@ Object {
},
Object {
"x": 1600161510000,
"y": 615193.3333333334,
"y": 615193.333333333,
},
Object {
"x": 1600161540000,
"y": 946298.6666666666,
"y": 946298.666666667,
},
Object {
"x": 1600161570000,
@ -240,7 +240,7 @@ Object {
},
Object {
"x": 1600161720000,
"y": 450557.77777777775,
"y": 450557.777777778,
},
Object {
"x": 1600161750000,
@ -746,7 +746,7 @@ Object {
},
"tpmBuckets": Array [
Object {
"avg": 2.8333333333333335,
"avg": 2.83333333333333,
"dataPoints": Array [
Object {
"x": 1600159980000,
@ -996,7 +996,7 @@ Object {
"key": "HTTP 2xx",
},
Object {
"avg": 0.23333333333333334,
"avg": 0.233333333333333,
"dataPoints": Array [
Object {
"x": 1600159980000,
@ -1246,7 +1246,7 @@ Object {
"key": "HTTP 4xx",
},
Object {
"avg": 4.466666666666667,
"avg": 4.46666666666667,
"dataPoints": Array [
Object {
"x": 1600159980000,

View file

@ -80,7 +80,7 @@ export default function ApiTest({ getService }: FtrProviderContext) {
});
it('has the correct calculation for average', () => {
expectSnapshot(errorRateResponse.average).toMatchInline(`0.14086309523809523`);
expectSnapshot(errorRateResponse.average).toMatchInline(`0.140863095238095`);
});
it('has the correct error rate', () => {

View file

@ -62,7 +62,7 @@ export default function ApiTest({ getService }: FtrProviderContext) {
it('returns the correct data', () => {
expectSnapshot(response.body.apmTimeseries.overallAvgDuration).toMatchInline(
`600255.7079646018`
`600255.707964602`
);
expectSnapshot(response.body.apmTimeseries.responseTimes.avg.length).toMatchInline(`61`);
expectSnapshot(response.body.apmTimeseries.tpmBuckets.length).toMatchInline(`3`);

View file

@ -4,7 +4,12 @@
* you may not use this file except in compliance with the Elastic License.
*/
import { SnapshotState, toMatchSnapshot, toMatchInlineSnapshot } from 'jest-snapshot';
import {
SnapshotState,
toMatchSnapshot,
toMatchInlineSnapshot,
addSerializer,
} from 'jest-snapshot';
import path from 'path';
import expect from '@kbn/expect';
// @ts-expect-error
@ -62,6 +67,15 @@ export function registerMochaHooksForSnapshots() {
{ snapshotState: ISnapshotState; testsInFile: Test[] }
> = {};
addSerializer({
serialize: (num: number) => {
return String(parseFloat(num.toPrecision(15)));
},
test: (value: any) => {
return typeof value === 'number';
},
});
registered = true;
beforeEach(function () {

View file

@ -75,8 +75,8 @@ Array [
"service.environment": "testing",
"service.name": "opbeans-go",
"serviceAnomalyStats": Object {
"actualValue": 3933482.1764705875,
"anomalyScore": 2.6101702751482714,
"actualValue": 3933482.17647059,
"anomalyScore": 2.61017027514827,
"healthStatus": "healthy",
"jobId": "apm-testing-d457-high_mean_transaction_duration",
"transactionType": "request",
@ -103,8 +103,8 @@ Array [
"service.environment": "testing",
"service.name": "opbeans-go",
"serviceAnomalyStats": Object {
"actualValue": 3933482.1764705875,
"anomalyScore": 2.6101702751482714,
"actualValue": 3933482.17647059,
"anomalyScore": 2.61017027514827,
"healthStatus": "healthy",
"jobId": "apm-testing-d457-high_mean_transaction_duration",
"transactionType": "request",
@ -117,7 +117,7 @@ Array [
"service.environment": "production",
"service.name": "opbeans-java",
"serviceAnomalyStats": Object {
"actualValue": 14901.319999999996,
"actualValue": 14901.32,
"anomalyScore": 0,
"healthStatus": "healthy",
"jobId": "apm-production-229a-high_mean_transaction_duration",
@ -137,8 +137,8 @@ Array [
"service.environment": "testing",
"service.name": "opbeans-go",
"serviceAnomalyStats": Object {
"actualValue": 3933482.1764705875,
"anomalyScore": 2.6101702751482714,
"actualValue": 3933482.17647059,
"anomalyScore": 2.61017027514827,
"healthStatus": "healthy",
"jobId": "apm-testing-d457-high_mean_transaction_duration",
"transactionType": "request",
@ -151,7 +151,7 @@ Array [
"service.environment": "testing",
"service.name": "opbeans-node",
"serviceAnomalyStats": Object {
"actualValue": 32226.649122807008,
"actualValue": 32226.649122807,
"anomalyScore": 0,
"healthStatus": "healthy",
"jobId": "apm-testing-d457-high_mean_transaction_duration",
@ -171,8 +171,8 @@ Array [
"service.environment": "testing",
"service.name": "opbeans-go",
"serviceAnomalyStats": Object {
"actualValue": 3933482.1764705875,
"anomalyScore": 2.6101702751482714,
"actualValue": 3933482.17647059,
"anomalyScore": 2.61017027514827,
"healthStatus": "healthy",
"jobId": "apm-testing-d457-high_mean_transaction_duration",
"transactionType": "request",
@ -185,7 +185,7 @@ Array [
"service.environment": "production",
"service.name": "opbeans-python",
"serviceAnomalyStats": Object {
"actualValue": 66218.08333333333,
"actualValue": 66218.0833333333,
"anomalyScore": 0,
"healthStatus": "healthy",
"jobId": "apm-production-229a-high_mean_transaction_duration",
@ -204,7 +204,7 @@ Array [
"service.environment": "production",
"service.name": "opbeans-java",
"serviceAnomalyStats": Object {
"actualValue": 14901.319999999996,
"actualValue": 14901.32,
"anomalyScore": 0,
"healthStatus": "healthy",
"jobId": "apm-production-229a-high_mean_transaction_duration",
@ -232,7 +232,7 @@ Array [
"service.environment": "production",
"service.name": "opbeans-java",
"serviceAnomalyStats": Object {
"actualValue": 14901.319999999996,
"actualValue": 14901.32,
"anomalyScore": 0,
"healthStatus": "healthy",
"jobId": "apm-production-229a-high_mean_transaction_duration",
@ -246,8 +246,8 @@ Array [
"service.environment": "testing",
"service.name": "opbeans-go",
"serviceAnomalyStats": Object {
"actualValue": 3933482.1764705875,
"anomalyScore": 2.6101702751482714,
"actualValue": 3933482.17647059,
"anomalyScore": 2.61017027514827,
"healthStatus": "healthy",
"jobId": "apm-testing-d457-high_mean_transaction_duration",
"transactionType": "request",
@ -266,7 +266,7 @@ Array [
"service.environment": "production",
"service.name": "opbeans-java",
"serviceAnomalyStats": Object {
"actualValue": 14901.319999999996,
"actualValue": 14901.32,
"anomalyScore": 0,
"healthStatus": "healthy",
"jobId": "apm-production-229a-high_mean_transaction_duration",
@ -280,7 +280,7 @@ Array [
"service.environment": "production",
"service.name": "opbeans-python",
"serviceAnomalyStats": Object {
"actualValue": 66218.08333333333,
"actualValue": 66218.0833333333,
"anomalyScore": 0,
"healthStatus": "healthy",
"jobId": "apm-production-229a-high_mean_transaction_duration",
@ -300,7 +300,7 @@ Array [
"service.environment": "production",
"service.name": "opbeans-java",
"serviceAnomalyStats": Object {
"actualValue": 14901.319999999996,
"actualValue": 14901.32,
"anomalyScore": 0,
"healthStatus": "healthy",
"jobId": "apm-production-229a-high_mean_transaction_duration",
@ -314,8 +314,8 @@ Array [
"service.environment": "production",
"service.name": "opbeans-ruby",
"serviceAnomalyStats": Object {
"actualValue": 684716.5813953485,
"anomalyScore": 0.20498907719907372,
"actualValue": 684716.581395349,
"anomalyScore": 0.204989077199074,
"healthStatus": "healthy",
"jobId": "apm-production-229a-high_mean_transaction_duration",
"transactionType": "request",
@ -333,7 +333,7 @@ Array [
"service.environment": "testing",
"service.name": "opbeans-node",
"serviceAnomalyStats": Object {
"actualValue": 32226.649122807008,
"actualValue": 32226.649122807,
"anomalyScore": 0,
"healthStatus": "healthy",
"jobId": "apm-testing-d457-high_mean_transaction_duration",
@ -361,7 +361,7 @@ Array [
"service.environment": "testing",
"service.name": "opbeans-node",
"serviceAnomalyStats": Object {
"actualValue": 32226.649122807008,
"actualValue": 32226.649122807,
"anomalyScore": 0,
"healthStatus": "healthy",
"jobId": "apm-testing-d457-high_mean_transaction_duration",
@ -375,8 +375,8 @@ Array [
"service.environment": "testing",
"service.name": "opbeans-go",
"serviceAnomalyStats": Object {
"actualValue": 3933482.1764705875,
"anomalyScore": 2.6101702751482714,
"actualValue": 3933482.17647059,
"anomalyScore": 2.61017027514827,
"healthStatus": "healthy",
"jobId": "apm-testing-d457-high_mean_transaction_duration",
"transactionType": "request",
@ -395,7 +395,7 @@ Array [
"service.environment": "testing",
"service.name": "opbeans-node",
"serviceAnomalyStats": Object {
"actualValue": 32226.649122807008,
"actualValue": 32226.649122807,
"anomalyScore": 0,
"healthStatus": "healthy",
"jobId": "apm-testing-d457-high_mean_transaction_duration",
@ -409,7 +409,7 @@ Array [
"service.environment": "production",
"service.name": "opbeans-python",
"serviceAnomalyStats": Object {
"actualValue": 66218.08333333333,
"actualValue": 66218.0833333333,
"anomalyScore": 0,
"healthStatus": "healthy",
"jobId": "apm-production-229a-high_mean_transaction_duration",
@ -428,7 +428,7 @@ Array [
"service.environment": "production",
"service.name": "opbeans-python",
"serviceAnomalyStats": Object {
"actualValue": 66218.08333333333,
"actualValue": 66218.0833333333,
"anomalyScore": 0,
"healthStatus": "healthy",
"jobId": "apm-production-229a-high_mean_transaction_duration",
@ -455,7 +455,7 @@ Array [
"service.environment": "production",
"service.name": "opbeans-python",
"serviceAnomalyStats": Object {
"actualValue": 66218.08333333333,
"actualValue": 66218.0833333333,
"anomalyScore": 0,
"healthStatus": "healthy",
"jobId": "apm-production-229a-high_mean_transaction_duration",
@ -482,7 +482,7 @@ Array [
"service.environment": "production",
"service.name": "opbeans-python",
"serviceAnomalyStats": Object {
"actualValue": 66218.08333333333,
"actualValue": 66218.0833333333,
"anomalyScore": 0,
"healthStatus": "healthy",
"jobId": "apm-production-229a-high_mean_transaction_duration",
@ -510,7 +510,7 @@ Array [
"service.environment": "production",
"service.name": "opbeans-python",
"serviceAnomalyStats": Object {
"actualValue": 66218.08333333333,
"actualValue": 66218.0833333333,
"anomalyScore": 0,
"healthStatus": "healthy",
"jobId": "apm-production-229a-high_mean_transaction_duration",
@ -524,8 +524,8 @@ Array [
"service.environment": "testing",
"service.name": "opbeans-go",
"serviceAnomalyStats": Object {
"actualValue": 3933482.1764705875,
"anomalyScore": 2.6101702751482714,
"actualValue": 3933482.17647059,
"anomalyScore": 2.61017027514827,
"healthStatus": "healthy",
"jobId": "apm-testing-d457-high_mean_transaction_duration",
"transactionType": "request",
@ -544,7 +544,7 @@ Array [
"service.environment": "production",
"service.name": "opbeans-python",
"serviceAnomalyStats": Object {
"actualValue": 66218.08333333333,
"actualValue": 66218.0833333333,
"anomalyScore": 0,
"healthStatus": "healthy",
"jobId": "apm-production-229a-high_mean_transaction_duration",
@ -558,7 +558,7 @@ Array [
"service.environment": "production",
"service.name": "opbeans-java",
"serviceAnomalyStats": Object {
"actualValue": 14901.319999999996,
"actualValue": 14901.32,
"anomalyScore": 0,
"healthStatus": "healthy",
"jobId": "apm-production-229a-high_mean_transaction_duration",
@ -578,7 +578,7 @@ Array [
"service.environment": "production",
"service.name": "opbeans-python",
"serviceAnomalyStats": Object {
"actualValue": 66218.08333333333,
"actualValue": 66218.0833333333,
"anomalyScore": 0,
"healthStatus": "healthy",
"jobId": "apm-production-229a-high_mean_transaction_duration",
@ -592,7 +592,7 @@ Array [
"service.environment": "testing",
"service.name": "opbeans-node",
"serviceAnomalyStats": Object {
"actualValue": 32226.649122807008,
"actualValue": 32226.649122807,
"anomalyScore": 0,
"healthStatus": "healthy",
"jobId": "apm-testing-d457-high_mean_transaction_duration",
@ -611,8 +611,8 @@ Array [
"service.environment": "production",
"service.name": "opbeans-ruby",
"serviceAnomalyStats": Object {
"actualValue": 684716.5813953485,
"anomalyScore": 0.20498907719907372,
"actualValue": 684716.581395349,
"anomalyScore": 0.204989077199074,
"healthStatus": "healthy",
"jobId": "apm-production-229a-high_mean_transaction_duration",
"transactionType": "request",
@ -638,8 +638,8 @@ Array [
"service.environment": "production",
"service.name": "opbeans-ruby",
"serviceAnomalyStats": Object {
"actualValue": 684716.5813953485,
"anomalyScore": 0.20498907719907372,
"actualValue": 684716.581395349,
"anomalyScore": 0.204989077199074,
"healthStatus": "healthy",
"jobId": "apm-production-229a-high_mean_transaction_duration",
"transactionType": "request",
@ -652,8 +652,8 @@ Array [
"service.environment": "testing",
"service.name": "opbeans-go",
"serviceAnomalyStats": Object {
"actualValue": 3933482.1764705875,
"anomalyScore": 2.6101702751482714,
"actualValue": 3933482.17647059,
"anomalyScore": 2.61017027514827,
"healthStatus": "healthy",
"jobId": "apm-testing-d457-high_mean_transaction_duration",
"transactionType": "request",
@ -672,8 +672,8 @@ Array [
"service.environment": "production",
"service.name": "opbeans-ruby",
"serviceAnomalyStats": Object {
"actualValue": 684716.5813953485,
"anomalyScore": 0.20498907719907372,
"actualValue": 684716.581395349,
"anomalyScore": 0.204989077199074,
"healthStatus": "healthy",
"jobId": "apm-production-229a-high_mean_transaction_duration",
"transactionType": "request",
@ -686,7 +686,7 @@ Array [
"service.environment": "production",
"service.name": "opbeans-java",
"serviceAnomalyStats": Object {
"actualValue": 14901.319999999996,
"actualValue": 14901.32,
"anomalyScore": 0,
"healthStatus": "healthy",
"jobId": "apm-production-229a-high_mean_transaction_duration",
@ -705,8 +705,8 @@ Array [
"service.environment": "production",
"service.name": "opbeans-ruby",
"serviceAnomalyStats": Object {
"actualValue": 684716.5813953485,
"anomalyScore": 0.20498907719907372,
"actualValue": 684716.581395349,
"anomalyScore": 0.204989077199074,
"healthStatus": "healthy",
"jobId": "apm-production-229a-high_mean_transaction_duration",
"transactionType": "request",
@ -719,7 +719,7 @@ Array [
"service.environment": "testing",
"service.name": "opbeans-node",
"serviceAnomalyStats": Object {
"actualValue": 32226.649122807008,
"actualValue": 32226.649122807,
"anomalyScore": 0,
"healthStatus": "healthy",
"jobId": "apm-testing-d457-high_mean_transaction_duration",
@ -738,8 +738,8 @@ Array [
"service.environment": "production",
"service.name": "opbeans-ruby",
"serviceAnomalyStats": Object {
"actualValue": 684716.5813953485,
"anomalyScore": 0.20498907719907372,
"actualValue": 684716.581395349,
"anomalyScore": 0.204989077199074,
"healthStatus": "healthy",
"jobId": "apm-production-229a-high_mean_transaction_duration",
"transactionType": "request",
@ -752,7 +752,7 @@ Array [
"service.environment": "production",
"service.name": "opbeans-python",
"serviceAnomalyStats": Object {
"actualValue": 66218.08333333333,
"actualValue": 66218.0833333333,
"anomalyScore": 0,
"healthStatus": "healthy",
"jobId": "apm-production-229a-high_mean_transaction_duration",
@ -784,8 +784,8 @@ Array [
"service.environment": "testing",
"service.name": "opbeans-go",
"serviceAnomalyStats": Object {
"actualValue": 3933482.1764705875,
"anomalyScore": 2.6101702751482714,
"actualValue": 3933482.17647059,
"anomalyScore": 2.61017027514827,
"healthStatus": "healthy",
"jobId": "apm-testing-d457-high_mean_transaction_duration",
"transactionType": "request",
@ -816,7 +816,7 @@ Array [
"service.environment": "production",
"service.name": "opbeans-java",
"serviceAnomalyStats": Object {
"actualValue": 14901.319999999996,
"actualValue": 14901.32,
"anomalyScore": 0,
"healthStatus": "healthy",
"jobId": "apm-production-229a-high_mean_transaction_duration",
@ -848,7 +848,7 @@ Array [
"service.environment": "testing",
"service.name": "opbeans-node",
"serviceAnomalyStats": Object {
"actualValue": 32226.649122807008,
"actualValue": 32226.649122807,
"anomalyScore": 0,
"healthStatus": "healthy",
"jobId": "apm-testing-d457-high_mean_transaction_duration",
@ -880,7 +880,7 @@ Array [
"service.environment": "production",
"service.name": "opbeans-python",
"serviceAnomalyStats": Object {
"actualValue": 66218.08333333333,
"actualValue": 66218.0833333333,
"anomalyScore": 0,
"healthStatus": "healthy",
"jobId": "apm-production-229a-high_mean_transaction_duration",
@ -912,8 +912,8 @@ Array [
"service.environment": "production",
"service.name": "opbeans-ruby",
"serviceAnomalyStats": Object {
"actualValue": 684716.5813953485,
"anomalyScore": 0.20498907719907372,
"actualValue": 684716.581395349,
"anomalyScore": 0.204989077199074,
"healthStatus": "healthy",
"jobId": "apm-production-229a-high_mean_transaction_duration",
"transactionType": "request",
@ -942,7 +942,7 @@ Array [
"service.environment": "production",
"service.name": "opbeans-python",
"serviceAnomalyStats": Object {
"actualValue": 66218.08333333333,
"actualValue": 66218.0833333333,
"anomalyScore": 0,
"healthStatus": "healthy",
"jobId": "apm-production-229a-high_mean_transaction_duration",
@ -957,7 +957,7 @@ Array [
"service.environment": "production",
"service.name": "opbeans-java",
"serviceAnomalyStats": Object {
"actualValue": 14901.319999999996,
"actualValue": 14901.32,
"anomalyScore": 0,
"healthStatus": "healthy",
"jobId": "apm-production-229a-high_mean_transaction_duration",
@ -972,7 +972,7 @@ Array [
"service.environment": "testing",
"service.name": "opbeans-node",
"serviceAnomalyStats": Object {
"actualValue": 32226.649122807008,
"actualValue": 32226.649122807,
"anomalyScore": 0,
"healthStatus": "healthy",
"jobId": "apm-testing-d457-high_mean_transaction_duration",
@ -987,8 +987,8 @@ Array [
"service.environment": "testing",
"service.name": "opbeans-go",
"serviceAnomalyStats": Object {
"actualValue": 3933482.1764705875,
"anomalyScore": 2.6101702751482714,
"actualValue": 3933482.17647059,
"anomalyScore": 2.61017027514827,
"healthStatus": "healthy",
"jobId": "apm-testing-d457-high_mean_transaction_duration",
"transactionType": "request",
@ -1002,8 +1002,8 @@ Array [
"service.environment": "production",
"service.name": "opbeans-ruby",
"serviceAnomalyStats": Object {
"actualValue": 684716.5813953485,
"anomalyScore": 0.20498907719907372,
"actualValue": 684716.581395349,
"anomalyScore": 0.204989077199074,
"healthStatus": "healthy",
"jobId": "apm-production-229a-high_mean_transaction_duration",
"transactionType": "request",
@ -1061,8 +1061,8 @@ Object {
"service.environment": "testing",
"service.name": "opbeans-go",
"serviceAnomalyStats": Object {
"actualValue": 3933482.1764705875,
"anomalyScore": 2.6101702751482714,
"actualValue": 3933482.17647059,
"anomalyScore": 2.61017027514827,
"healthStatus": "healthy",
"jobId": "apm-testing-d457-high_mean_transaction_duration",
"transactionType": "request",
@ -1089,8 +1089,8 @@ Object {
"service.environment": "testing",
"service.name": "opbeans-go",
"serviceAnomalyStats": Object {
"actualValue": 3933482.1764705875,
"anomalyScore": 2.6101702751482714,
"actualValue": 3933482.17647059,
"anomalyScore": 2.61017027514827,
"healthStatus": "healthy",
"jobId": "apm-testing-d457-high_mean_transaction_duration",
"transactionType": "request",
@ -1103,7 +1103,7 @@ Object {
"service.environment": "production",
"service.name": "opbeans-java",
"serviceAnomalyStats": Object {
"actualValue": 14901.319999999996,
"actualValue": 14901.32,
"anomalyScore": 0,
"healthStatus": "healthy",
"jobId": "apm-production-229a-high_mean_transaction_duration",
@ -1123,8 +1123,8 @@ Object {
"service.environment": "testing",
"service.name": "opbeans-go",
"serviceAnomalyStats": Object {
"actualValue": 3933482.1764705875,
"anomalyScore": 2.6101702751482714,
"actualValue": 3933482.17647059,
"anomalyScore": 2.61017027514827,
"healthStatus": "healthy",
"jobId": "apm-testing-d457-high_mean_transaction_duration",
"transactionType": "request",
@ -1137,7 +1137,7 @@ Object {
"service.environment": "testing",
"service.name": "opbeans-node",
"serviceAnomalyStats": Object {
"actualValue": 32226.649122807008,
"actualValue": 32226.649122807,
"anomalyScore": 0,
"healthStatus": "healthy",
"jobId": "apm-testing-d457-high_mean_transaction_duration",
@ -1157,8 +1157,8 @@ Object {
"service.environment": "testing",
"service.name": "opbeans-go",
"serviceAnomalyStats": Object {
"actualValue": 3933482.1764705875,
"anomalyScore": 2.6101702751482714,
"actualValue": 3933482.17647059,
"anomalyScore": 2.61017027514827,
"healthStatus": "healthy",
"jobId": "apm-testing-d457-high_mean_transaction_duration",
"transactionType": "request",
@ -1171,7 +1171,7 @@ Object {
"service.environment": "production",
"service.name": "opbeans-python",
"serviceAnomalyStats": Object {
"actualValue": 66218.08333333333,
"actualValue": 66218.0833333333,
"anomalyScore": 0,
"healthStatus": "healthy",
"jobId": "apm-production-229a-high_mean_transaction_duration",
@ -1190,7 +1190,7 @@ Object {
"service.environment": "production",
"service.name": "opbeans-java",
"serviceAnomalyStats": Object {
"actualValue": 14901.319999999996,
"actualValue": 14901.32,
"anomalyScore": 0,
"healthStatus": "healthy",
"jobId": "apm-production-229a-high_mean_transaction_duration",
@ -1218,7 +1218,7 @@ Object {
"service.environment": "production",
"service.name": "opbeans-java",
"serviceAnomalyStats": Object {
"actualValue": 14901.319999999996,
"actualValue": 14901.32,
"anomalyScore": 0,
"healthStatus": "healthy",
"jobId": "apm-production-229a-high_mean_transaction_duration",
@ -1232,8 +1232,8 @@ Object {
"service.environment": "testing",
"service.name": "opbeans-go",
"serviceAnomalyStats": Object {
"actualValue": 3933482.1764705875,
"anomalyScore": 2.6101702751482714,
"actualValue": 3933482.17647059,
"anomalyScore": 2.61017027514827,
"healthStatus": "healthy",
"jobId": "apm-testing-d457-high_mean_transaction_duration",
"transactionType": "request",
@ -1252,7 +1252,7 @@ Object {
"service.environment": "production",
"service.name": "opbeans-java",
"serviceAnomalyStats": Object {
"actualValue": 14901.319999999996,
"actualValue": 14901.32,
"anomalyScore": 0,
"healthStatus": "healthy",
"jobId": "apm-production-229a-high_mean_transaction_duration",
@ -1266,7 +1266,7 @@ Object {
"service.environment": "production",
"service.name": "opbeans-python",
"serviceAnomalyStats": Object {
"actualValue": 66218.08333333333,
"actualValue": 66218.0833333333,
"anomalyScore": 0,
"healthStatus": "healthy",
"jobId": "apm-production-229a-high_mean_transaction_duration",
@ -1286,7 +1286,7 @@ Object {
"service.environment": "production",
"service.name": "opbeans-java",
"serviceAnomalyStats": Object {
"actualValue": 14901.319999999996,
"actualValue": 14901.32,
"anomalyScore": 0,
"healthStatus": "healthy",
"jobId": "apm-production-229a-high_mean_transaction_duration",
@ -1300,8 +1300,8 @@ Object {
"service.environment": "production",
"service.name": "opbeans-ruby",
"serviceAnomalyStats": Object {
"actualValue": 684716.5813953485,
"anomalyScore": 0.20498907719907372,
"actualValue": 684716.581395349,
"anomalyScore": 0.204989077199074,
"healthStatus": "healthy",
"jobId": "apm-production-229a-high_mean_transaction_duration",
"transactionType": "request",
@ -1319,7 +1319,7 @@ Object {
"service.environment": "testing",
"service.name": "opbeans-node",
"serviceAnomalyStats": Object {
"actualValue": 32226.649122807008,
"actualValue": 32226.649122807,
"anomalyScore": 0,
"healthStatus": "healthy",
"jobId": "apm-testing-d457-high_mean_transaction_duration",
@ -1347,7 +1347,7 @@ Object {
"service.environment": "testing",
"service.name": "opbeans-node",
"serviceAnomalyStats": Object {
"actualValue": 32226.649122807008,
"actualValue": 32226.649122807,
"anomalyScore": 0,
"healthStatus": "healthy",
"jobId": "apm-testing-d457-high_mean_transaction_duration",
@ -1361,8 +1361,8 @@ Object {
"service.environment": "testing",
"service.name": "opbeans-go",
"serviceAnomalyStats": Object {
"actualValue": 3933482.1764705875,
"anomalyScore": 2.6101702751482714,
"actualValue": 3933482.17647059,
"anomalyScore": 2.61017027514827,
"healthStatus": "healthy",
"jobId": "apm-testing-d457-high_mean_transaction_duration",
"transactionType": "request",
@ -1381,7 +1381,7 @@ Object {
"service.environment": "testing",
"service.name": "opbeans-node",
"serviceAnomalyStats": Object {
"actualValue": 32226.649122807008,
"actualValue": 32226.649122807,
"anomalyScore": 0,
"healthStatus": "healthy",
"jobId": "apm-testing-d457-high_mean_transaction_duration",
@ -1395,7 +1395,7 @@ Object {
"service.environment": "production",
"service.name": "opbeans-python",
"serviceAnomalyStats": Object {
"actualValue": 66218.08333333333,
"actualValue": 66218.0833333333,
"anomalyScore": 0,
"healthStatus": "healthy",
"jobId": "apm-production-229a-high_mean_transaction_duration",
@ -1414,7 +1414,7 @@ Object {
"service.environment": "production",
"service.name": "opbeans-python",
"serviceAnomalyStats": Object {
"actualValue": 66218.08333333333,
"actualValue": 66218.0833333333,
"anomalyScore": 0,
"healthStatus": "healthy",
"jobId": "apm-production-229a-high_mean_transaction_duration",
@ -1441,7 +1441,7 @@ Object {
"service.environment": "production",
"service.name": "opbeans-python",
"serviceAnomalyStats": Object {
"actualValue": 66218.08333333333,
"actualValue": 66218.0833333333,
"anomalyScore": 0,
"healthStatus": "healthy",
"jobId": "apm-production-229a-high_mean_transaction_duration",
@ -1468,7 +1468,7 @@ Object {
"service.environment": "production",
"service.name": "opbeans-python",
"serviceAnomalyStats": Object {
"actualValue": 66218.08333333333,
"actualValue": 66218.0833333333,
"anomalyScore": 0,
"healthStatus": "healthy",
"jobId": "apm-production-229a-high_mean_transaction_duration",
@ -1496,7 +1496,7 @@ Object {
"service.environment": "production",
"service.name": "opbeans-python",
"serviceAnomalyStats": Object {
"actualValue": 66218.08333333333,
"actualValue": 66218.0833333333,
"anomalyScore": 0,
"healthStatus": "healthy",
"jobId": "apm-production-229a-high_mean_transaction_duration",
@ -1510,8 +1510,8 @@ Object {
"service.environment": "testing",
"service.name": "opbeans-go",
"serviceAnomalyStats": Object {
"actualValue": 3933482.1764705875,
"anomalyScore": 2.6101702751482714,
"actualValue": 3933482.17647059,
"anomalyScore": 2.61017027514827,
"healthStatus": "healthy",
"jobId": "apm-testing-d457-high_mean_transaction_duration",
"transactionType": "request",
@ -1530,7 +1530,7 @@ Object {
"service.environment": "production",
"service.name": "opbeans-python",
"serviceAnomalyStats": Object {
"actualValue": 66218.08333333333,
"actualValue": 66218.0833333333,
"anomalyScore": 0,
"healthStatus": "healthy",
"jobId": "apm-production-229a-high_mean_transaction_duration",
@ -1544,7 +1544,7 @@ Object {
"service.environment": "production",
"service.name": "opbeans-java",
"serviceAnomalyStats": Object {
"actualValue": 14901.319999999996,
"actualValue": 14901.32,
"anomalyScore": 0,
"healthStatus": "healthy",
"jobId": "apm-production-229a-high_mean_transaction_duration",
@ -1564,7 +1564,7 @@ Object {
"service.environment": "production",
"service.name": "opbeans-python",
"serviceAnomalyStats": Object {
"actualValue": 66218.08333333333,
"actualValue": 66218.0833333333,
"anomalyScore": 0,
"healthStatus": "healthy",
"jobId": "apm-production-229a-high_mean_transaction_duration",
@ -1578,7 +1578,7 @@ Object {
"service.environment": "testing",
"service.name": "opbeans-node",
"serviceAnomalyStats": Object {
"actualValue": 32226.649122807008,
"actualValue": 32226.649122807,
"anomalyScore": 0,
"healthStatus": "healthy",
"jobId": "apm-testing-d457-high_mean_transaction_duration",
@ -1597,8 +1597,8 @@ Object {
"service.environment": "production",
"service.name": "opbeans-ruby",
"serviceAnomalyStats": Object {
"actualValue": 684716.5813953485,
"anomalyScore": 0.20498907719907372,
"actualValue": 684716.581395349,
"anomalyScore": 0.204989077199074,
"healthStatus": "healthy",
"jobId": "apm-production-229a-high_mean_transaction_duration",
"transactionType": "request",
@ -1624,8 +1624,8 @@ Object {
"service.environment": "production",
"service.name": "opbeans-ruby",
"serviceAnomalyStats": Object {
"actualValue": 684716.5813953485,
"anomalyScore": 0.20498907719907372,
"actualValue": 684716.581395349,
"anomalyScore": 0.204989077199074,
"healthStatus": "healthy",
"jobId": "apm-production-229a-high_mean_transaction_duration",
"transactionType": "request",
@ -1638,8 +1638,8 @@ Object {
"service.environment": "testing",
"service.name": "opbeans-go",
"serviceAnomalyStats": Object {
"actualValue": 3933482.1764705875,
"anomalyScore": 2.6101702751482714,
"actualValue": 3933482.17647059,
"anomalyScore": 2.61017027514827,
"healthStatus": "healthy",
"jobId": "apm-testing-d457-high_mean_transaction_duration",
"transactionType": "request",
@ -1658,8 +1658,8 @@ Object {
"service.environment": "production",
"service.name": "opbeans-ruby",
"serviceAnomalyStats": Object {
"actualValue": 684716.5813953485,
"anomalyScore": 0.20498907719907372,
"actualValue": 684716.581395349,
"anomalyScore": 0.204989077199074,
"healthStatus": "healthy",
"jobId": "apm-production-229a-high_mean_transaction_duration",
"transactionType": "request",
@ -1672,7 +1672,7 @@ Object {
"service.environment": "production",
"service.name": "opbeans-java",
"serviceAnomalyStats": Object {
"actualValue": 14901.319999999996,
"actualValue": 14901.32,
"anomalyScore": 0,
"healthStatus": "healthy",
"jobId": "apm-production-229a-high_mean_transaction_duration",
@ -1691,8 +1691,8 @@ Object {
"service.environment": "production",
"service.name": "opbeans-ruby",
"serviceAnomalyStats": Object {
"actualValue": 684716.5813953485,
"anomalyScore": 0.20498907719907372,
"actualValue": 684716.581395349,
"anomalyScore": 0.204989077199074,
"healthStatus": "healthy",
"jobId": "apm-production-229a-high_mean_transaction_duration",
"transactionType": "request",
@ -1705,7 +1705,7 @@ Object {
"service.environment": "testing",
"service.name": "opbeans-node",
"serviceAnomalyStats": Object {
"actualValue": 32226.649122807008,
"actualValue": 32226.649122807,
"anomalyScore": 0,
"healthStatus": "healthy",
"jobId": "apm-testing-d457-high_mean_transaction_duration",
@ -1724,8 +1724,8 @@ Object {
"service.environment": "production",
"service.name": "opbeans-ruby",
"serviceAnomalyStats": Object {
"actualValue": 684716.5813953485,
"anomalyScore": 0.20498907719907372,
"actualValue": 684716.581395349,
"anomalyScore": 0.204989077199074,
"healthStatus": "healthy",
"jobId": "apm-production-229a-high_mean_transaction_duration",
"transactionType": "request",
@ -1738,7 +1738,7 @@ Object {
"service.environment": "production",
"service.name": "opbeans-python",
"serviceAnomalyStats": Object {
"actualValue": 66218.08333333333,
"actualValue": 66218.0833333333,
"anomalyScore": 0,
"healthStatus": "healthy",
"jobId": "apm-production-229a-high_mean_transaction_duration",
@ -1770,8 +1770,8 @@ Object {
"service.environment": "testing",
"service.name": "opbeans-go",
"serviceAnomalyStats": Object {
"actualValue": 3933482.1764705875,
"anomalyScore": 2.6101702751482714,
"actualValue": 3933482.17647059,
"anomalyScore": 2.61017027514827,
"healthStatus": "healthy",
"jobId": "apm-testing-d457-high_mean_transaction_duration",
"transactionType": "request",
@ -1802,7 +1802,7 @@ Object {
"service.environment": "production",
"service.name": "opbeans-java",
"serviceAnomalyStats": Object {
"actualValue": 14901.319999999996,
"actualValue": 14901.32,
"anomalyScore": 0,
"healthStatus": "healthy",
"jobId": "apm-production-229a-high_mean_transaction_duration",
@ -1834,7 +1834,7 @@ Object {
"service.environment": "testing",
"service.name": "opbeans-node",
"serviceAnomalyStats": Object {
"actualValue": 32226.649122807008,
"actualValue": 32226.649122807,
"anomalyScore": 0,
"healthStatus": "healthy",
"jobId": "apm-testing-d457-high_mean_transaction_duration",
@ -1866,7 +1866,7 @@ Object {
"service.environment": "production",
"service.name": "opbeans-python",
"serviceAnomalyStats": Object {
"actualValue": 66218.08333333333,
"actualValue": 66218.0833333333,
"anomalyScore": 0,
"healthStatus": "healthy",
"jobId": "apm-production-229a-high_mean_transaction_duration",
@ -1898,8 +1898,8 @@ Object {
"service.environment": "production",
"service.name": "opbeans-ruby",
"serviceAnomalyStats": Object {
"actualValue": 684716.5813953485,
"anomalyScore": 0.20498907719907372,
"actualValue": 684716.581395349,
"anomalyScore": 0.204989077199074,
"healthStatus": "healthy",
"jobId": "apm-production-229a-high_mean_transaction_duration",
"transactionType": "request",
@ -1928,7 +1928,7 @@ Object {
"service.environment": "production",
"service.name": "opbeans-python",
"serviceAnomalyStats": Object {
"actualValue": 66218.08333333333,
"actualValue": 66218.0833333333,
"anomalyScore": 0,
"healthStatus": "healthy",
"jobId": "apm-production-229a-high_mean_transaction_duration",
@ -1943,7 +1943,7 @@ Object {
"service.environment": "production",
"service.name": "opbeans-java",
"serviceAnomalyStats": Object {
"actualValue": 14901.319999999996,
"actualValue": 14901.32,
"anomalyScore": 0,
"healthStatus": "healthy",
"jobId": "apm-production-229a-high_mean_transaction_duration",
@ -1958,7 +1958,7 @@ Object {
"service.environment": "testing",
"service.name": "opbeans-node",
"serviceAnomalyStats": Object {
"actualValue": 32226.649122807008,
"actualValue": 32226.649122807,
"anomalyScore": 0,
"healthStatus": "healthy",
"jobId": "apm-testing-d457-high_mean_transaction_duration",
@ -1973,8 +1973,8 @@ Object {
"service.environment": "testing",
"service.name": "opbeans-go",
"serviceAnomalyStats": Object {
"actualValue": 3933482.1764705875,
"anomalyScore": 2.6101702751482714,
"actualValue": 3933482.17647059,
"anomalyScore": 2.61017027514827,
"healthStatus": "healthy",
"jobId": "apm-testing-d457-high_mean_transaction_duration",
"transactionType": "request",
@ -1988,8 +1988,8 @@ Object {
"service.environment": "production",
"service.name": "opbeans-ruby",
"serviceAnomalyStats": Object {
"actualValue": 684716.5813953485,
"anomalyScore": 0.20498907719907372,
"actualValue": 684716.581395349,
"anomalyScore": 0.204989077199074,
"healthStatus": "healthy",
"jobId": "apm-production-229a-high_mean_transaction_duration",
"transactionType": "request",

View file

@ -177,7 +177,7 @@ export default function serviceMapsApiTests({ getService }: FtrProviderContext)
"service.environment": "production",
"service.name": "opbeans-python",
"serviceAnomalyStats": Object {
"actualValue": 66218.08333333333,
"actualValue": 66218.0833333333,
"anomalyScore": 0,
"healthStatus": "healthy",
"jobId": "apm-production-229a-high_mean_transaction_duration",
@ -192,7 +192,7 @@ export default function serviceMapsApiTests({ getService }: FtrProviderContext)
"service.environment": "production",
"service.name": "opbeans-java",
"serviceAnomalyStats": Object {
"actualValue": 14901.319999999996,
"actualValue": 14901.32,
"anomalyScore": 0,
"healthStatus": "healthy",
"jobId": "apm-production-229a-high_mean_transaction_duration",