Interface LogQueryWidgetProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
LogQueryWidgetProps.Jsii$Proxy
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 ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forLogQueryWidgetPropsstatic final classAn implementation forLogQueryWidgetProps -
Method Summary
Modifier and TypeMethodDescriptionstatic LogQueryWidgetProps.Builderbuilder()default StringThe AWS account ID where the log groups are located.default NumberHeight of the widget.Names of log groups to query.default LogQueryLanguageThe query language to use for the query.A sequence of lines to use to build the query.default StringFull query string for log insights.default StringThe region the metrics of this widget should be taken from.default StringgetTitle()Title for the widget.default LogQueryVisualizationTypegetView()The type of view to use.default NumbergetWidth()Width of the widget, in a grid of 24 units wide.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getLogGroupNames
Names of log groups to query. -
getAccountId
The AWS account ID where the log groups are located.This enables cross-account functionality for CloudWatch dashboards. Before using this feature, ensure that proper cross-account sharing is configured between the monitoring account and source account.
For more information, see: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html
Default: - Current account
-
getHeight
Height of the widget.Default: 6
-
getQueryLanguage
The query language to use for the query.Default: LogQueryLanguage.LOGS_INSIGHTS
-
getQueryLines
A sequence of lines to use to build the query.The query will be built by joining the lines together using
\n|.Default: - Exactly one of `queryString`, `queryLines` is required.
-
getQueryString
Full query string for log insights.Be sure to prepend every new line with a newline and pipe character (
\n|).Default: - Exactly one of `queryString`, `queryLines` is required.
-
getRegion
The region the metrics of this widget should be taken from.Default: Current region
-
getTitle
Title for the widget.Default: No title
-
getView
The type of view to use.Default: LogQueryVisualizationType.TABLE
-
getWidth
Width of the widget, in a grid of 24 units wide.Default: 6
-
builder
- Returns:
- a
LogQueryWidgetProps.BuilderofLogQueryWidgetProps
-