@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:37.260Z") @Stability(value=Stable) public interface LogQueryWidgetProps extends software.amazon.jsii.JsiiSerializable
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());
| Modifier and Type | Interface and Description |
|---|---|
static class |
LogQueryWidgetProps.Builder
A builder for
LogQueryWidgetProps |
static class |
LogQueryWidgetProps.Jsii$Proxy
An implementation for
LogQueryWidgetProps |
| Modifier and Type | Method and Description |
|---|---|
static LogQueryWidgetProps.Builder |
builder() |
default Number |
getHeight()
Height of the widget.
|
List<String> |
getLogGroupNames()
Names of log groups to query.
|
default List<String> |
getQueryLines()
A sequence of lines to use to build the query.
|
default String |
getQueryString()
Full query string for log insights.
|
default String |
getRegion()
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.
|
@Stability(value=Stable) @NotNull List<String> getLogGroupNames()
@Stability(value=Stable) @Nullable default Number getHeight()
Default: 6
@Stability(value=Stable) @Nullable default List<String> getQueryLines()
The query will be built by joining the lines together using \n|.
Default: - Exactly one of `queryString`, `queryLines` is required.
@Stability(value=Stable) @Nullable default String getQueryString()
Be sure to prepend every new line with a newline and pipe character
(\n|).
Default: - Exactly one of `queryString`, `queryLines` is required.
@Stability(value=Stable) @Nullable default String getRegion()
Default: Current region
@Stability(value=Stable) @Nullable default String getTitle()
Default: No title
@Stability(value=Stable) @Nullable default LogQueryVisualizationType getView()
Default: LogQueryVisualizationType.TABLE
@Stability(value=Stable) @Nullable default Number getWidth()
Default: 6
@Stability(value=Stable) static LogQueryWidgetProps.Builder builder()
LogQueryWidgetProps.Builder of LogQueryWidgetPropsCopyright © 2022. All rights reserved.