Interface LogQueryWidgetProps

All Superinterfaces:
All Known Implementing Classes:

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:36.869Z") @Stability(Stable) public interface LogQueryWidgetProps extends
Properties for a Query widget.


 Dashboard dashboard;
         // The lines will be automatically combined using '\n|'.
         .queryLines(List.of("fields @message", "filter @message like /Error/"))
  • Method Details

    • getLogGroupNames

      @Stability(Stable) @NotNull List<String> getLogGroupNames()
      Names of log groups to query.
    • getHeight

      @Stability(Stable) @Nullable default Number getHeight()
      Height of the widget.

      Default: 6

    • getQueryLines

      @Stability(Stable) @Nullable default List<String> 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

      @Stability(Stable) @Nullable default String 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

      @Stability(Stable) @Nullable default String getRegion()
      The region the metrics of this widget should be taken from.

      Default: Current region

    • getTitle

      @Stability(Stable) @Nullable default String getTitle()
      Title for the widget.

      Default: No title

    • getView

      @Stability(Stable) @Nullable default LogQueryVisualizationType getView()
      The type of view to use.

      Default: LogQueryVisualizationType.TABLE

    • getWidth

      @Stability(Stable) @Nullable default Number getWidth()
      Width of the widget, in a grid of 24 units wide.

      Default: 6

    • builder

      @Stability(Stable) static LogQueryWidgetProps.Builder builder()
      a LogQueryWidgetProps.Builder of LogQueryWidgetProps