-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(logs): add dbaas/logs missing types
ref: MANAGER-15918 Signed-off-by: Romain Jamet <[email protected]>
- Loading branch information
Romain Jamet
committed
Dec 19, 2024
1 parent
6d73c16
commit 58f01f9
Showing
10 changed files
with
163 additions
and
0 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
packages/manager/modules/logs-to-customer/src/data/types/dbaas/logs/Service.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { ServicePlanEnum } from './ServicePlanEnum'; | ||
import { ServiceStateEnum } from './ServiceStateEnum'; | ||
|
||
/** Service */ | ||
export interface Service { | ||
/** Service creation */ | ||
createdAt: string; | ||
/** Service custom name */ | ||
displayName?: string; | ||
/** If set, can perform extra action on cluster */ | ||
isClusterOwner: boolean; | ||
/** Is IAM enabled for this service? */ | ||
isIamEnabled: boolean; | ||
/** Service plan */ | ||
plan: ServicePlanEnum; | ||
/** Service name */ | ||
serviceName: string; | ||
/** Service state */ | ||
state: ServiceStateEnum; | ||
/** Service last update */ | ||
updatedAt?: string; | ||
/** Username on DBaaS Logs */ | ||
username: string; | ||
} |
5 changes: 5 additions & 0 deletions
5
packages/manager/modules/logs-to-customer/src/data/types/dbaas/logs/ServicePlanEnum.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/** Possible values for ServicePlanEnum */ | ||
export enum ServicePlanEnum { | ||
'ENTERPRISE' = 'ENTERPRISE', | ||
'STANDARD' = 'STANDARD', | ||
} |
7 changes: 7 additions & 0 deletions
7
packages/manager/modules/logs-to-customer/src/data/types/dbaas/logs/ServiceStateEnum.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/** Possible values for ServiceStateEnum */ | ||
export enum ServiceStateEnum { | ||
'DISABLED' = 'DISABLED', | ||
'ENABLED' = 'ENABLED', | ||
'INIT' = 'INIT', | ||
'TO_CONFIG' = 'TO_CONFIG', | ||
} |
59 changes: 59 additions & 0 deletions
59
packages/manager/modules/logs-to-customer/src/data/types/dbaas/logs/Stream.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
import { StreamColdStorageCompressionEnum } from './StreamColdStorageCompressionEnum'; | ||
import { StreamColdStorageContentEnum } from './StreamColdStorageContentEnum'; | ||
import { StreamColdStorageTargetEnum } from './StreamColdStorageTargetEnum'; | ||
|
||
/** Graylog stream */ | ||
export interface Stream { | ||
/** Indicates if the current user can create alert on the stream */ | ||
canAlert: boolean; | ||
/** Cluster ID */ | ||
clusterId: string; | ||
/** Cold storage compression method */ | ||
coldStorageCompression?: StreamColdStorageCompressionEnum; | ||
/** ColdStorage content */ | ||
coldStorageContent?: StreamColdStorageContentEnum; | ||
/** Is Cold storage enabled? */ | ||
coldStorageEnabled?: boolean; | ||
/** Notify on new Cold storage archive */ | ||
coldStorageNotifyEnabled?: boolean; | ||
/** Cold storage retention in year */ | ||
coldStorageRetention?: number; | ||
/** ColdStorage destination */ | ||
coldStorageTarget?: StreamColdStorageTargetEnum; | ||
/** Stream creation */ | ||
createdAt: string; | ||
/** Stream description */ | ||
description: string; | ||
/** Encryption keys used to encrypt stream archives */ | ||
encryptionKeysIds?: string[]; | ||
/** Indexing current size (in bytes) */ | ||
indexingCurrentSize?: number; | ||
/** Enable ES indexing */ | ||
indexingEnabled?: boolean; | ||
/** Maximum indexing size (in GB) */ | ||
indexingMaxSize?: number; | ||
/** If set, notify when size is near 80, 90 or 100 % of the maximum configured setting */ | ||
indexingNotifyEnabled?: boolean; | ||
/** Indicates if you are allowed to edit entry */ | ||
isEditable: boolean; | ||
/** Number of alert condition */ | ||
nbAlertCondition: number; | ||
/** Number of coldstored archives */ | ||
nbArchive: number; | ||
/** Number of subscriptions targeting this stream */ | ||
nbSubscription: number; | ||
/** Parent stream ID */ | ||
parentStreamId?: string; | ||
/** If set, pause indexing when maximum size is reach */ | ||
pauseIndexingOnMaxSize?: boolean; | ||
/** Retention ID */ | ||
retentionId: string; | ||
/** Stream ID */ | ||
streamId: string; | ||
/** Stream description */ | ||
title: string; | ||
/** Stream last update */ | ||
updatedAt?: string; | ||
/** Enable Websocket */ | ||
webSocketEnabled?: boolean; | ||
} |
7 changes: 7 additions & 0 deletions
7
...er/modules/logs-to-customer/src/data/types/dbaas/logs/StreamColdStorageCompressionEnum.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/** Possible values for StreamColdStorageCompressionEnum */ | ||
export enum StreamColdStorageCompressionEnum { | ||
'DEFLATED' = 'DEFLATED', | ||
'GZIP' = 'GZIP', | ||
'LZMA' = 'LZMA', | ||
'ZSTD' = 'ZSTD', | ||
} |
6 changes: 6 additions & 0 deletions
6
...anager/modules/logs-to-customer/src/data/types/dbaas/logs/StreamColdStorageContentEnum.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/** Possible values for StreamColdStorageContentEnum */ | ||
export enum StreamColdStorageContentEnum { | ||
'ALL' = 'ALL', | ||
'GELF' = 'GELF', | ||
'PLAIN' = 'PLAIN', | ||
} |
6 changes: 6 additions & 0 deletions
6
...manager/modules/logs-to-customer/src/data/types/dbaas/logs/StreamColdStorageTargetEnum.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/** Possible values for StreamColdStorageTargetEnum */ | ||
export enum StreamColdStorageTargetEnum { | ||
'PCA' = 'PCA', | ||
'PCI_DSS' = 'PCI_DSS', | ||
'PCS' = 'PCS', | ||
} |
9 changes: 9 additions & 0 deletions
9
packages/manager/modules/logs-to-customer/src/data/types/dbaas/logs/Url.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { UrlTypeEnum } from './UrlTypeEnum'; | ||
|
||
/** Web address */ | ||
export interface Url { | ||
/** Web URI */ | ||
address: string; | ||
/** Service type */ | ||
type: UrlTypeEnum; | ||
} |
31 changes: 31 additions & 0 deletions
31
packages/manager/modules/logs-to-customer/src/data/types/dbaas/logs/UrlTypeEnum.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/** Possible values for UrlTypeEnum */ | ||
export enum UrlTypeEnum { | ||
'CONSOLE' = 'CONSOLE', | ||
'ELASTICSEARCH_API' = 'ELASTICSEARCH_API', | ||
'GRAYLOG_API' = 'GRAYLOG_API', | ||
'GRAYLOG_WEBUI' = 'GRAYLOG_WEBUI', | ||
'HTTP_GELF' = 'HTTP_GELF', | ||
'HTTP_TLS_GELF' = 'HTTP_TLS_GELF', | ||
'KIBANA_WEBUI' = 'KIBANA_WEBUI', | ||
'OPENSEARCH_API' = 'OPENSEARCH_API', | ||
'OSD_WEBUI' = 'OSD_WEBUI', | ||
'SERVICE_DOMAIN' = 'SERVICE_DOMAIN', | ||
'TCP_BEATS' = 'TCP_BEATS', | ||
'TCP_CAP_N_PROTO' = 'TCP_CAP_N_PROTO', | ||
'TCP_GELF' = 'TCP_GELF', | ||
'TCP_LTSV_LINE' = 'TCP_LTSV_LINE', | ||
'TCP_LTSV_NUL' = 'TCP_LTSV_NUL', | ||
'TCP_RFC5424' = 'TCP_RFC5424', | ||
'TCP_TLS_BEATS' = 'TCP_TLS_BEATS', | ||
'TCP_TLS_CAP_N_PROTO' = 'TCP_TLS_CAP_N_PROTO', | ||
'TCP_TLS_GELF' = 'TCP_TLS_GELF', | ||
'TCP_TLS_LTSV_LINE' = 'TCP_TLS_LTSV_LINE', | ||
'TCP_TLS_LTSV_NUL' = 'TCP_TLS_LTSV_NUL', | ||
'TCP_TLS_RFC5424' = 'TCP_TLS_RFC5424', | ||
'UDP_CAP_N_PROTO' = 'UDP_CAP_N_PROTO', | ||
'UDP_GELF' = 'UDP_GELF', | ||
'UDP_LTSV_LINE' = 'UDP_LTSV_LINE', | ||
'UDP_LTSV_NUL' = 'UDP_LTSV_NUL', | ||
'UDP_RFC5424' = 'UDP_RFC5424', | ||
'WEB_SOCKET' = 'WEB_SOCKET', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters