Interface LogQueryWidgetProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
LogQueryWidgetProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-22T02:23:58.525Z")
@Stability(Stable)
public interface LogQueryWidgetProps
extends software.amazon.jsii.JsiiSerializable
Properties for a Query widget.
Example:
Dashboard dashboard; dashboard.addWidgets(LogQueryWidget.Builder.create() .logGroupNames(List.of("my-log-group")) .view(LogQueryVisualizationType.TABLE) // The lines will be automatically combined using '\n|'. .queryLines(List.of("fields @message", "filter @message like /Error/")) .build());
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forLogQueryWidgetProps
static final class
An implementation forLogQueryWidgetProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic LogQueryWidgetProps.Builder
builder()
default Number
Height of the widget.Names of log groups to query.A sequence of lines to use to build the query.default String
Full query string for log insights.default String
The region the metrics of this widget should be taken from.default String
getTitle()
Title for the widget.default LogQueryVisualizationType
getView()
The type of view to use.default Number
getWidth()
Width of the widget, in a grid of 24 units wide.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getLogGroupNames
Names of log groups to query. -
getHeight
Height of the widget.Default: 6
-
getQueryLines
A sequence of lines to use to build the query.The query will be built by joining the lines together using
\n|
.Default: - Exactly one of `queryString`, `queryLines` is required.
-
getQueryString
Full query string for log insights.Be sure to prepend every new line with a newline and pipe character (
\n|
).Default: - Exactly one of `queryString`, `queryLines` is required.
-
getRegion
The region the metrics of this widget should be taken from.Default: Current region
-
getTitle
Title for the widget.Default: No title
-
getView
The type of view to use.Default: LogQueryVisualizationType.TABLE
-
getWidth
Width of the widget, in a grid of 24 units wide.Default: 6
-
builder
- Returns:
- a
LogQueryWidgetProps.Builder
ofLogQueryWidgetProps
-