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.99.0 (build 8f757e4)", date="2024-06-13T18:49:15.862Z") @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