Class LogQueryWidget

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.cloudwatch.ConcreteWidget
software.amazon.awscdk.services.cloudwatch.LogQueryWidget
All Implemented Interfaces:
IWidget, software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:36.868Z") @Stability(Stable) public class LogQueryWidget extends ConcreteWidget
Display query results from Logs Insights.

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());
 
  • Constructor Details

    • LogQueryWidget

      protected LogQueryWidget(software.amazon.jsii.JsiiObjectRef objRef)
    • LogQueryWidget

      protected LogQueryWidget(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • LogQueryWidget

      @Stability(Stable) public LogQueryWidget(@NotNull LogQueryWidgetProps props)
      Parameters:
      props - This parameter is required.
  • Method Details