Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support more properties for Log Sink/Action Kamelets #1148

Merged
merged 1 commit into from
Nov 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 67 additions & 1 deletion kamelets/log-action.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ spec:
Logs all data that flows between source and sink, useful for debugging purposes.
type: object
properties:
loggerName:
title: Logger Name
description: Name of the logging category to use
type: string
default: "log-action"
level:
title: Log Level
description: Logging level to use
Expand All @@ -45,13 +50,66 @@ spec:
- 'urn:alm:descriptor:com.tectonic.ui:select:WARN'
- 'urn:alm:descriptor:com.tectonic.ui:select:ERROR'
- 'urn:alm:descriptor:com.tectonic.ui:select:OFF'
logMask:
title: Log Mask
description: Mask sensitive information like password or passphrase in the log
type: boolean
default: false
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
marker:
title: Marker
description: An optional Marker name to use
type: string
multiline:
title: Multiline
description: If enabled then each information is outputted on a newline
type: boolean
default: false
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
showAllProperties:
title: Show All Properties
description: Show all of the exchange properties (both internal and custom)
type: boolean
default: false
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
showBody:
title: Show Body
description: Show the message body
type: boolean
default: true
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
showBodyType:
title: Show Body Type
description: Show the body Java type
type: boolean
default: true
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
showExchangePattern:
title: Show Exchange Pattern
description: Shows the Message Exchange Pattern (or MEP for short)
type: boolean
default: true
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
showHeaders:
title: Show Headers
description: Show the headers received
type: boolean
default: false
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
showProperties:
title: Show Properties
description: Show the exchange properties (only custom). Use showAllProperties to show both internal and custom properties.
type: boolean
default: false
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
showStreams:
title: Show Streams
description: Show the stream bodies (they may not be available in following steps)
Expand All @@ -67,8 +125,16 @@ spec:
uri: "kamelet:source"
steps:
- to:
uri: "log:log-action"
uri: "log:{{loggerName}}"
parameters:
level: "{{?level}}"
logMask: "{{?logMask}}"
marker: "{{?marker}}"
multiline: "{{?multiline}}"
showAllProperties: "{{?showAllProperties}}"
showBody: "{{?showBody}}"
showBodyType: "{{?showBodyType}}"
showExchangePattern: "{{?showExchangePattern}}"
showHeaders: "{{?showHeaders}}"
showProperties: "{{?showProperties}}"
showStreams: "{{?showStreams}}"
68 changes: 67 additions & 1 deletion kamelets/log-sink.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ spec:
A sink that logs all data that it receives, useful for debugging purposes.
type: object
properties:
loggerName:
title: Logger Name
description: Name of the logging category to use
type: string
default: "log-sink"
level:
title: Log Level
description: Logging level to use
Expand All @@ -45,13 +50,66 @@ spec:
- 'urn:alm:descriptor:com.tectonic.ui:select:WARN'
- 'urn:alm:descriptor:com.tectonic.ui:select:ERROR'
- 'urn:alm:descriptor:com.tectonic.ui:select:OFF'
logMask:
title: Log Mask
description: Mask sensitive information like password or passphrase in the log
type: boolean
default: false
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
marker:
title: Marker
description: An optional Marker name to use
type: string
multiline:
title: Multiline
description: If enabled then each information is outputted on a newline
type: boolean
default: false
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
showAllProperties:
title: Show All Properties
description: Show all of the exchange properties (both internal and custom)
type: boolean
default: false
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
showBody:
title: Show Body
description: Show the message body
type: boolean
default: true
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
showBodyType:
title: Show Body Type
description: Show the body Java type
type: boolean
default: true
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
showExchangePattern:
title: Show Exchange Pattern
description: Shows the Message Exchange Pattern (or MEP for short)
type: boolean
default: true
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
showHeaders:
title: Show Headers
description: Show the headers received
type: boolean
default: false
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
showProperties:
title: Show Properties
description: Show the exchange properties (only custom). Use showAllProperties to show both internal and custom properties.
type: boolean
default: false
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
showStreams:
title: Show Streams
description: Show the stream bodies (they may not be available in following steps)
Expand All @@ -67,8 +125,16 @@ spec:
uri: "kamelet:source"
steps:
- to:
uri: "log:log-sink"
uri: "log:{{loggerName}}"
parameters:
level: "{{?level}}"
logMask: "{{?logMask}}"
marker: "{{?marker}}"
multiline: "{{?multiline}}"
showAllProperties: "{{?showAllProperties}}"
showBody: "{{?showBody}}"
showBodyType: "{{?showBodyType}}"
showExchangePattern: "{{?showExchangePattern}}"
showHeaders: "{{?showHeaders}}"
showProperties: "{{?showProperties}}"
showStreams: "{{?showStreams}}"
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ spec:
Logs all data that flows between source and sink, useful for debugging purposes.
type: object
properties:
loggerName:
title: Logger Name
description: Name of the logging category to use
type: string
default: "log-action"
level:
title: Log Level
description: Logging level to use
Expand All @@ -45,13 +50,66 @@ spec:
- 'urn:alm:descriptor:com.tectonic.ui:select:WARN'
- 'urn:alm:descriptor:com.tectonic.ui:select:ERROR'
- 'urn:alm:descriptor:com.tectonic.ui:select:OFF'
logMask:
title: Log Mask
description: Mask sensitive information like password or passphrase in the log
type: boolean
default: false
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
marker:
title: Marker
description: An optional Marker name to use
type: string
multiline:
title: Multiline
description: If enabled then each information is outputted on a newline
type: boolean
default: false
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
showAllProperties:
title: Show All Properties
description: Show all of the exchange properties (both internal and custom)
type: boolean
default: false
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
showBody:
title: Show Body
description: Show the message body
type: boolean
default: true
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
showBodyType:
title: Show Body Type
description: Show the body Java type
type: boolean
default: true
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
showExchangePattern:
title: Show Exchange Pattern
description: Shows the Message Exchange Pattern (or MEP for short)
type: boolean
default: true
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
showHeaders:
title: Show Headers
description: Show the headers received
type: boolean
default: false
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
showProperties:
title: Show Properties
description: Show the exchange properties (only custom). Use showAllProperties to show both internal and custom properties.
type: boolean
default: false
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
showStreams:
title: Show Streams
description: Show the stream bodies (they may not be available in following steps)
Expand All @@ -67,8 +125,16 @@ spec:
uri: "kamelet:source"
steps:
- to:
uri: "log:log-action"
uri: "log:{{loggerName}}"
parameters:
level: "{{?level}}"
logMask: "{{?logMask}}"
marker: "{{?marker}}"
multiline: "{{?multiline}}"
showAllProperties: "{{?showAllProperties}}"
showBody: "{{?showBody}}"
showBodyType: "{{?showBodyType}}"
showExchangePattern: "{{?showExchangePattern}}"
showHeaders: "{{?showHeaders}}"
showProperties: "{{?showProperties}}"
showStreams: "{{?showStreams}}"
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ spec:
A sink that logs all data that it receives, useful for debugging purposes.
type: object
properties:
loggerName:
title: Logger Name
description: Name of the logging category to use
type: string
default: "log-sink"
level:
title: Log Level
description: Logging level to use
Expand All @@ -45,13 +50,66 @@ spec:
- 'urn:alm:descriptor:com.tectonic.ui:select:WARN'
- 'urn:alm:descriptor:com.tectonic.ui:select:ERROR'
- 'urn:alm:descriptor:com.tectonic.ui:select:OFF'
logMask:
title: Log Mask
description: Mask sensitive information like password or passphrase in the log
type: boolean
default: false
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
marker:
title: Marker
description: An optional Marker name to use
type: string
multiline:
title: Multiline
description: If enabled then each information is outputted on a newline
type: boolean
default: false
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
showAllProperties:
title: Show All Properties
description: Show all of the exchange properties (both internal and custom)
type: boolean
default: false
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
showBody:
title: Show Body
description: Show the message body
type: boolean
default: true
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
showBodyType:
title: Show Body Type
description: Show the body Java type
type: boolean
default: true
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
showExchangePattern:
title: Show Exchange Pattern
description: Shows the Message Exchange Pattern (or MEP for short)
type: boolean
default: true
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
showHeaders:
title: Show Headers
description: Show the headers received
type: boolean
default: false
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
showProperties:
title: Show Properties
description: Show the exchange properties (only custom). Use showAllProperties to show both internal and custom properties.
type: boolean
default: false
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
showStreams:
title: Show Streams
description: Show the stream bodies (they may not be available in following steps)
Expand All @@ -67,8 +125,16 @@ spec:
uri: "kamelet:source"
steps:
- to:
uri: "log:log-sink"
uri: "log:{{loggerName}}"
parameters:
level: "{{?level}}"
logMask: "{{?logMask}}"
marker: "{{?marker}}"
multiline: "{{?multiline}}"
showAllProperties: "{{?showAllProperties}}"
showBody: "{{?showBody}}"
showBodyType: "{{?showBodyType}}"
showExchangePattern: "{{?showExchangePattern}}"
showHeaders: "{{?showHeaders}}"
showProperties: "{{?showProperties}}"
showStreams: "{{?showStreams}}"