Skip to content

Commit b3bf60a

Browse files
Merge pull request #73 from digma-ai/fix/chatty-api-icon
Update Excessive API calls insight icon
2 parents 07bbe22 + 403d4d3 commit b3bf60a

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

packages/jaeger-ui/src/components/common/InsightIcon/utils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import { IIconProps } from '../icons/types';
1414
import { InsightType } from './types';
1515
import ClockWithTicksIcon from '../icons/ClockWithTicksIcon';
1616
import PieChartIcon from '../icons/PieChartIcon';
17+
import TwoHorizontalEndpointsIcon from '../icons/TwoHorizontalEndpointsIcon';
1718

1819
export const getInsightTypeInfo = (
1920
type: InsightType
@@ -99,7 +100,7 @@ export const getInsightTypeInfo = (
99100
label: 'Session in View Query Detected',
100101
},
101102
[InsightType.EndpointChattyApiV2]: {
102-
icon: SQLDatabaseIcon,
103+
icon: TwoHorizontalEndpointsIcon,
103104
label: 'Excessive API Calls Detected',
104105
},
105106
[InsightType.EndpointHighNumberOfQueries]: {
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import React from 'react';
2+
import { useIconProps } from './hooks';
3+
import { IIconProps } from './types';
4+
5+
const TwoHorizontalEndpointsIconComponent = (props: IIconProps) => {
6+
const { size, color } = useIconProps(props);
7+
8+
return (
9+
<svg xmlns="http://www.w3.org/2000/svg" width={size} height={size} fill="none" viewBox="0 0 16 16">
10+
<path
11+
fill={color}
12+
d="M13 9c-.929 0-1.705.64-1.929 1.5H1v1h10.071c.2235.86 1 1.5 1.929 1.5 1.103 0 2-.897 2-2s-.897-2-2-2Zm0 3c-.5515 0-1-.4485-1-1s.4485-1 1-1 1 .4485 1 1-.4485 1-1 1Zm0-9c-.929 0-1.705.64-1.929 1.5H1v1h10.071c.2235.86 1 1.5 1.929 1.5 1.103 0 2-.897 2-2s-.897-2-2-2Zm0 3c-.5515 0-1-.4485-1-1s.4485-1 1-1 1 .4485 1 1-.4485 1-1 1Z"
13+
/>
14+
</svg>
15+
);
16+
};
17+
18+
const TwoHorizontalEndpointsIcon = React.memo(TwoHorizontalEndpointsIconComponent);
19+
20+
export default TwoHorizontalEndpointsIcon;

0 commit comments

Comments
 (0)