UNPKG

cdk-monitoring-constructs

Version:

[![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/cdklabs/cdk-monitoring-constructs) [![NPM version](https://badge.fury.io/js/cdk-monitoring-constructs.svg)](https://badge

38 lines (37 loc) 1.15 kB
import { IWidget } from "aws-cdk-lib/aws-cloudwatch"; import { BaseMonitoringProps, Monitoring, MonitoringScope } from "../../common"; export interface LogMonitoringProps extends BaseMonitoringProps { /** * name of the log group to analyze for the given pattern */ readonly logGroupName: string; /** * pattern to show, e.g. "ERROR" */ readonly pattern: string; /** * widget title * * @default - auto-generated title based on the pattern and limit */ readonly title?: string; /** * number of log messages to search for * * @default - 10 */ readonly limit?: number; } /** * Monitors a CloudWatch log group for various patterns. */ export declare class LogMonitoring extends Monitoring { protected readonly pattern: string; protected readonly logGroupName: string; protected readonly logGroupUrl?: string; protected readonly title?: string; protected readonly limit: number; constructor(scope: MonitoringScope, props: LogMonitoringProps); widgets(): IWidget[]; protected resolveRecommendedHeight(numRows: number): number; }