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());
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.cloudwatch.IWidget
IWidget.Jsii$Default
-
Constructor Summary
ModifierConstructorDescriptionprotected
LogQueryWidget
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
LogQueryWidget
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Methods inherited from class software.amazon.awscdk.services.cloudwatch.ConcreteWidget
copyMetricWarnings, getHeight, getWarnings, getWidth, getX, getY, position, setX, setY
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
LogQueryWidget
protected LogQueryWidget(software.amazon.jsii.JsiiObjectRef objRef) -
LogQueryWidget
protected LogQueryWidget(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
LogQueryWidget
- Parameters:
props
- This parameter is required.
-
-
Method Details
-
toJson
Return the widget JSON for use in the dashboard.- Specified by:
toJson
in interfaceIWidget
- Specified by:
toJson
in classConcreteWidget
-