-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5653a34
commit 6e9fbe7
Showing
32 changed files
with
124 additions
and
226 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -1,53 +1,17 @@ | ||
import { ACTION_TYPE, SIGNAL_TYPE, type Condition, type FetchedCondition } from '@odigos/ui-utils' | ||
|
||
interface Spec { | ||
actionName?: string | ||
notes?: string | ||
signals: SIGNAL_TYPE[] | ||
disabled?: boolean | ||
|
||
clusterAttributes?: | ||
| { | ||
attributeName: string | ||
attributeStringValue: string | ||
}[] | ||
| null | ||
renames?: { | ||
[oldKey: string]: string | ||
} | null | ||
attributeNamesToDelete?: string[] | null | ||
piiCategories?: string[] | null | ||
fallbackSamplingRatio?: number | null | ||
samplingPercentage?: string | null | ||
endpointsFilters?: | ||
| { | ||
serviceName: string | ||
httpRoute: string | ||
minimumLatencyThreshold: number | ||
fallbackSamplingRatio: number | ||
}[] | ||
| null | ||
} | ||
|
||
export interface Action { | ||
id: string | ||
type: ACTION_TYPE | ||
conditions: FetchedCondition[] | Condition[] | null | ||
spec: Spec | ||
} | ||
import type { Action } from '@odigos/ui-utils' | ||
|
||
export interface ActionFormData { | ||
type: Action['type'] | ||
name: Spec['actionName'] | ||
notes: Spec['notes'] | ||
signals: Spec['signals'] | ||
disabled: Spec['disabled'] | ||
name: Action['spec']['actionName'] | ||
notes: Action['spec']['notes'] | ||
signals: Action['spec']['signals'] | ||
disabled: Action['spec']['disabled'] | ||
|
||
clusterAttributes: Spec['clusterAttributes'] | ||
renames: Spec['renames'] | ||
attributeNamesToDelete: Spec['attributeNamesToDelete'] | ||
piiCategories: Spec['piiCategories'] | ||
fallbackSamplingRatio: Spec['fallbackSamplingRatio'] | ||
samplingPercentage: Spec['samplingPercentage'] | ||
endpointsFilters: Spec['endpointsFilters'] | ||
clusterAttributes: Action['spec']['clusterAttributes'] | ||
attributeNamesToDelete: Action['spec']['attributeNamesToDelete'] | ||
renames: Action['spec']['renames'] | ||
piiCategories: Action['spec']['piiCategories'] | ||
fallbackSamplingRatio: Action['spec']['fallbackSamplingRatio'] | ||
samplingPercentage: Action['spec']['samplingPercentage'] | ||
endpointsFilters: Action['spec']['endpointsFilters'] | ||
} |
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
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 |
---|---|---|
@@ -1,31 +1 @@ | ||
import { type Condition, type FetchedCondition } from '@odigos/ui-utils' | ||
|
||
interface SupportedSignals { | ||
logs: { | ||
supported: boolean | ||
} | ||
metrics: { | ||
supported: boolean | ||
} | ||
traces: { | ||
supported: boolean | ||
} | ||
} | ||
|
||
export interface Destination { | ||
id: string | ||
name: string | ||
exportedSignals: { | ||
traces: boolean | ||
metrics: boolean | ||
logs: boolean | ||
} | ||
fields: string | ||
conditions: FetchedCondition[] | Condition[] | null | ||
destinationType: { | ||
type: string | ||
displayName: string | ||
imageUrl: string | ||
supportedSignals: SupportedSignals | ||
} | ||
} | ||
export interface DestinationFormData {} |
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 |
---|---|---|
@@ -1,67 +1,3 @@ | ||
import { INSTRUMENTATION_RULE_TYPE, type WorkloadId } from '@odigos/ui-utils' | ||
|
||
interface InstrumentationLibraryGlobalId { | ||
language: string | ||
library: string | ||
} | ||
export interface InstrumentationRule { | ||
ruleId: string | ||
ruleName: string | ||
type: INSTRUMENTATION_RULE_TYPE // does not come from backend, it's derived during GET | ||
notes: string | ||
disabled: boolean | ||
mutable: boolean | ||
profileName: string | ||
workloads?: WorkloadId[] | null | ||
instrumentationLibraries?: InstrumentationLibraryGlobalId[] | null | ||
payloadCollection?: PayloadCollection | null | ||
codeAttributes?: CodeAttributes | null | ||
} | ||
|
||
// Payload Collection for Instrumentation Rules | ||
interface HttpPayloadCollection { | ||
mimeTypes?: string[] | null | ||
maxPayloadLength?: number | null | ||
dropPartialPayloads?: boolean | null | ||
} | ||
interface DbQueryPayloadCollection { | ||
maxPayloadLength?: number | null | ||
dropPartialPayloads?: boolean | null | ||
} | ||
interface MessagingPayloadCollection { | ||
maxPayloadLength?: number | null | ||
dropPartialPayloads?: boolean | null | ||
} | ||
|
||
export enum PAYLOAD_COLLECTION_KEY_TYPES { | ||
HTTP_REQUEST = 'httpRequest', | ||
HTTP_RESPONSE = 'httpResponse', | ||
DB_QUERY = 'dbQuery', | ||
MESSAGING = 'messaging', | ||
} | ||
export interface PayloadCollection { | ||
[PAYLOAD_COLLECTION_KEY_TYPES.HTTP_REQUEST]?: HttpPayloadCollection | null | ||
[PAYLOAD_COLLECTION_KEY_TYPES.HTTP_RESPONSE]?: HttpPayloadCollection | null | ||
[PAYLOAD_COLLECTION_KEY_TYPES.DB_QUERY]?: DbQueryPayloadCollection | null | ||
[PAYLOAD_COLLECTION_KEY_TYPES.MESSAGING]?: MessagingPayloadCollection | null | ||
} | ||
|
||
// Code Attributes for Instrumentation Rules | ||
export enum CODE_ATTRIBUTES_KEY_TYPES { | ||
COLUMN = 'column', | ||
FILE_PATH = 'filePath', | ||
FUNCTION = 'function', | ||
LINE_NUMBER = 'lineNumber', | ||
NAMESPACE = 'namespace', | ||
STACKTRACE = 'stacktrace', | ||
} | ||
export interface CodeAttributes { | ||
[CODE_ATTRIBUTES_KEY_TYPES.COLUMN]?: boolean | null | ||
[CODE_ATTRIBUTES_KEY_TYPES.FILE_PATH]?: boolean | null | ||
[CODE_ATTRIBUTES_KEY_TYPES.FUNCTION]?: boolean | null | ||
[CODE_ATTRIBUTES_KEY_TYPES.LINE_NUMBER]?: boolean | null | ||
[CODE_ATTRIBUTES_KEY_TYPES.NAMESPACE]?: boolean | null | ||
[CODE_ATTRIBUTES_KEY_TYPES.STACKTRACE]?: boolean | null | ||
} | ||
import type { InstrumentationRule } from '@odigos/ui-utils' | ||
|
||
export type InstrumentationRuleFormData = Omit<InstrumentationRule, 'ruleId' | 'type' | 'mutable' | 'profileName'> |
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 |
---|---|---|
@@ -1,18 +1 @@ | ||
import { type Condition, type FetchedCondition, PROGRAMMING_LANGUAGES, type WorkloadId } from '@odigos/ui-utils' | ||
|
||
interface Container { | ||
containerName: string | ||
language: PROGRAMMING_LANGUAGES | ||
runtimeVersion: string | ||
instrumented: boolean | ||
instrumentationMessage: string | ||
otelDistroName: string | null | ||
} | ||
|
||
export interface Source extends WorkloadId { | ||
selected: boolean | ||
otelServiceName: string | ||
numberOfInstances?: number | ||
containers: Container[] | null | ||
conditions: FetchedCondition[] | Condition[] | null | ||
} | ||
export interface SourceFormData {} |
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
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
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
13 changes: 11 additions & 2 deletions
13
src/containers/data-flow-actions-menu/data-flow.stories.tsx
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
3 changes: 1 addition & 2 deletions
3
src/containers/data-flow-actions-menu/filters/dropdowns/error-dropdown/index.tsx
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
2 changes: 1 addition & 1 deletion
2
src/containers/data-flow-actions-menu/filters/dropdowns/language-dropdown/index.tsx
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
2 changes: 1 addition & 1 deletion
2
src/containers/data-flow-actions-menu/filters/dropdowns/type-dropdown/index.tsx
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
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
4 changes: 2 additions & 2 deletions
4
src/containers/data-flow-actions-menu/search/search-results/builder.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
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
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
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
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
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
Oops, something went wrong.