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.104.0 (build e79254c)", date="2024-11-22T02:23:58.524Z") @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