Skip to content

Commit fe7a18e

Browse files
authored
feat: new backend type icons - kafka, sqs (#675)
* feat: backend type icons for Kafka and SQS
1 parent cb71fdb commit fe7a18e

File tree

6 files changed

+28
-1
lines changed

6 files changed

+28
-1
lines changed
Lines changed: 11 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading

projects/observability/src/shared/graphql/model/schema/entity.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,7 @@ export const enum BackendType {
4242
RabbitMQ = 'RABBIT_MQ',
4343
Redis = 'REDIS',
4444
Tyk = 'TYK',
45-
JDBC = 'JDBC'
45+
JDBC = 'JDBC',
46+
KAFKA = 'KAFKA',
47+
SQS = 'SQS'
4648
}

projects/observability/src/shared/icons/observability-icon-library.module.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ const iconsRootPath = 'assets/icons';
2222
{ key: ObservabilityIconType.Helm, url: `${iconsRootPath}/helm.svg` },
2323
{ key: ObservabilityIconType.HTTP, url: `${iconsRootPath}/http.svg` },
2424
{ key: ObservabilityIconType.JDBC, url: `${iconsRootPath}/jdbc.svg` },
25+
{ key: ObservabilityIconType.Kafka, url: `${iconsRootPath}/kafka.svg` },
2526
{ key: ObservabilityIconType.Kong, url: `${iconsRootPath}/kong.svg` },
2627
{ key: ObservabilityIconType.Kubernetes, url: `${iconsRootPath}/kubernetes.svg` },
2728
{ key: ObservabilityIconType.MicrosoftAzure, url: `${iconsRootPath}/microsoft-azure.svg` },
@@ -37,6 +38,7 @@ const iconsRootPath = 'assets/icons';
3738
{ key: ObservabilityIconType.Serverless, url: `${iconsRootPath}/serverless.svg` },
3839
{ key: ObservabilityIconType.Service, url: `${iconsRootPath}/service.svg` },
3940
{ key: ObservabilityIconType.ServicesList, url: `${iconsRootPath}/services_list.svg` },
41+
{ key: ObservabilityIconType.SQS, url: `${iconsRootPath}/amazon-sqs.svg` },
4042
{ key: ObservabilityIconType.Tyk, url: `${iconsRootPath}/tyk.svg` }
4143
])
4244
]

projects/observability/src/shared/icons/observability-icon-type.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export const enum ObservabilityIconType {
1414
Helm = 'svg:helm',
1515
HTTP = 'svg:http',
1616
JDBC = 'svg:jdbc',
17+
Kafka = 'svg:kafka',
1718
Kong = 'svg:kong',
1819
Kubernetes = 'svg:kubernetes',
1920
MicrosoftAzure = 'svg:microsoft-azure',
@@ -29,5 +30,6 @@ export const enum ObservabilityIconType {
2930
Serverless = 'svg:serverless',
3031
Service = 'svg:service',
3132
ServicesList = 'svg:services-list',
33+
SQS = 'svg:amazon-sqs',
3234
Tyk = 'svg:tyk'
3335
}

projects/observability/src/shared/services/entity/entity-icon-lookup.service.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ export class EntityIconLookupService {
3535
return this.forBackendType(entity[backendTypeKey] as string | undefined);
3636
}
3737

38+
// tslint:disable: cyclomatic-complexity
3839
public forBackendType(backendType?: string): string {
3940
switch (backendType) {
4041
case BackendType.AWS:
@@ -61,6 +62,9 @@ export class EntityIconLookupService {
6162
case BackendType.JDBC:
6263
return ObservabilityIconType.JDBC;
6364

65+
case BackendType.KAFKA:
66+
return ObservabilityIconType.Kafka;
67+
6468
case BackendType.Kong:
6569
return ObservabilityIconType.Kong;
6670

@@ -91,6 +95,9 @@ export class EntityIconLookupService {
9195
case BackendType.Redis:
9296
return ObservabilityIconType.Redis;
9397

98+
case BackendType.SQS:
99+
return ObservabilityIconType.SQS;
100+
94101
case BackendType.Tyk:
95102
return ObservabilityIconType.Tyk;
96103

0 commit comments

Comments
 (0)