feat: update response param p90 to p95

This commit is contained in:
Nidhi Tandon 2021-05-31 21:06:39 +05:30
parent 1caa07e0af
commit 872c8adbbb
4 changed files with 8 additions and 8 deletions

View File

@ -85,10 +85,10 @@ const _TopEndpointsTable = (props: TopEndpointsTableProps) => {
render: (value: number) => (value / 1000000).toFixed(2),
},
{
title: "P90 (in ms)",
dataIndex: "p90",
key: "p90",
sorter: (a: any, b: any) => a.p90 - b.p90,
title: "P95 (in ms)",
dataIndex: "p95",
key: "p95",
sorter: (a: any, b: any) => a.p95 - b.p95,
// sortDirections: ['descend', 'ascend'],
render: (value: number) => (value / 1000000).toFixed(2),
},

View File

@ -52,7 +52,7 @@ const aggregation_options = [
// options_available: [ {title:'Avg', dataindex:'avg'}, {title:'Max', dataindex:'max'},{title:'Min', dataindex:'min'}, {title:'p50', dataindex:'p50'},{title:'p90', dataindex:'p90'}, {title:'p95', dataindex:'p95'}]
options_available: [
{ title: "p50", dataindex: "p50" },
{ title: "p90", dataindex: "p90" },
{ title: "p95", dataindex: "p95" },
{ title: "p99", dataindex: "p99" },
],
},

View File

@ -40,7 +40,7 @@ export interface externalErrCodeMetricsItem {
}
export interface topEndpointListItem {
p50: number;
p90: number;
p95: number;
p99: number;
numCalls: number;
name: string;

View File

@ -38,7 +38,7 @@ export const serviceMetricsReducer = (
{
timestamp: 0,
p50: 0,
p90: 0,
p95: 0,
p99: 0,
numCalls: 0,
callRate: 0.0,
@ -58,7 +58,7 @@ export const serviceMetricsReducer = (
export const topEndpointsReducer = (
state: topEndpointListItem[] = [
{ p50: 0, p90: 0, p99: 0, numCalls: 0, name: "" },
{ p50: 0, p95: 0, p99: 0, numCalls: 0, name: "" },
],
action: Action,
) => {