GradientEdge CDK Utils
    Preparing search index...
    interface LogQueryWidgetProps {
        accountId?: string;
        height?: number;
        logGroupNames: string[];
        positionX: number;
        positionY: number;
        queryLanguage?: LogQueryLanguage;
        queryLines?: string[];
        queryString?: string;
        region?: string;
        title?: string;
        type: string;
        view?: LogQueryVisualizationType;
        width?: number;
    }

    Hierarchy

    • LogQueryWidgetProps
      • LogQueryWidgetProps
    Index

    Properties

    accountId?: string

    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

    - Current account
    
    height?: number

    Height of the widget

    6
    
    logGroupNames: string[]

    Names of log groups to query

    positionX: number
    positionY: number
    queryLanguage?: LogQueryLanguage

    The query language to use for the query.

    LogQueryLanguage.LOGS_INSIGHTS
    
    queryLines?: string[]

    A sequence of lines to use to build the query

    The query will be built by joining the lines together using \n|.

    • Exactly one of queryString, queryLines is required.
    queryString?: string

    Full query string for log insights

    Be sure to prepend every new line with a newline and pipe character (\n|).

    • Exactly one of queryString, queryLines is required.
    region?: string

    The region the metrics of this widget should be taken from

    Current region
    
    title?: string

    Title for the widget

    No title
    
    type: string
    view?: LogQueryVisualizationType

    The type of view to use

    LogQueryVisualizationType.TABLE
    
    width?: number

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

    6