LogQueryWidgetProps

class aws_cdk.aws_cloudwatch.LogQueryWidgetProps(*, log_group_names, height=None, query_lines=None, query_string=None, region=None, title=None, view=None, width=None)

Bases: object

Properties for a Query widget.

|’.

query_lines=[“fields @message”, “filter @message like /Error/” ]

))

Attributes

height

Height of the widget.

Default:

6

log_group_names

Names of log groups to query.

query_lines

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.

query_string

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.

region

The region the metrics of this widget should be taken from.

Default:

Current region

title

Title for the widget.

Default:

No title

view

The type of view to use.

Default:

LogQueryVisualizationType.TABLE

width

Width of the widget, in a grid of 24 units wide.

Default:

6