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.103.1 (build bef2dea)", date="2024-10-05T03:43:40.209Z") @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