Commit 63f0eadb authored by dhrubesh's avatar dhrubesh
Browse files

fixes error percentage key

parent 25803e66
No related merge requests found
Showing with 6 additions and 4 deletions
+6 -4
......@@ -115,7 +115,7 @@ const _ServiceMetrics = (props: ServicesMetricsProps) => {
<ExternalApiGraph
title="External Call Error Percentage (%)"
keyIdentifier="externalHttpUrl"
dataIdentifier="numCalls"
dataIdentifier="errorRate"
data={props.externalErrCodeMetrics}
/>
</Card>
......
......@@ -33,9 +33,9 @@ export interface externalMetricsAvgDurationItem {
}
export interface externalErrCodeMetricsItem {
callRate: number;
errorRate: number;
externalHttpUrl: string;
numCalls: number;
numErrors: number;
timestamp: number;
}
export interface topEndpointListItem {
......@@ -131,7 +131,9 @@ export const getDbOverViewMetrics = (
"&end=" +
globalTime.maxTime +
"&step=60";
const response = await api.get<dbOverviewMetricsItem[]>(apiV1 + request_string);
const response = await api.get<dbOverviewMetricsItem[]>(
apiV1 + request_string,
);
dispatch<getDbOverViewMetricsAction>({
type: ActionTypes.getDbOverviewMetrics,
payload: response.data,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment