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

18 lines (17 loc) 919 B
import { DimensionsMap } from "aws-cdk-lib/aws-cloudwatch"; import { ISecret } from "aws-cdk-lib/aws-secretsmanager"; import { MetricFactory } from "../../common"; export interface SecretsManagerSecretMetricFactoryProps { readonly secret: ISecret; } export declare class SecretsManagerSecretMetricFactory { static readonly Namespace = "SecretsManager"; static readonly MetricNameDaysSinceLastChange = "DaysSinceLastChange"; static readonly MetricNameDaysSinceLastRotation = "DaysSinceLastRotation"; protected readonly metricFactory: MetricFactory; protected readonly dimensionsMap: DimensionsMap; protected readonly secret: ISecret; constructor(metricFactory: MetricFactory, props: SecretsManagerSecretMetricFactoryProps); metricDaysSinceLastChange(): import("../../common").MetricWithAlarmSupport; metricDaysSinceLastRotation(): import("../../common").MetricWithAlarmSupport; }