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.

Parameters
  • log_group_names (List[str]) – Names of log groups to query.

  • height (Union[int, float, None]) – Height of the widget. Default: 6

  • query_lines (Optional[List[str]]) – 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 (Optional[str]) – 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 (Optional[str]) – The region the metrics of this widget should be taken from. Default: Current region

  • title (Optional[str]) – Title for the widget. Default: No title

  • view (Optional[LogQueryVisualizationType]) – The type of view to use. Default: LogQueryVisualizationType.TABLE

  • width (Union[int, float, None]) – Width of the widget, in a grid of 24 units wide. Default: 6

Attributes

height

Height of the widget.

Default

6

Return type

Union[int, float, None]

log_group_names

Names of log groups to query.

Return type

List[str]

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.

Return type

Optional[List[str]]

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.

Return type

Optional[str]

region

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

Default

Current region

Return type

Optional[str]

title

Title for the widget.

Default

No title

Return type

Optional[str]

view

The type of view to use.

Default

LogQueryVisualizationType.TABLE

Return type

Optional[LogQueryVisualizationType]

width

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

Default

6

Return type

Union[int, float, None]