"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CustomAvailabilityWidget = void 0;
const availability_widget_1 = require("./availability-widget");
const custom_availability_metric_1 = require("./custom-availability-metric");
/**
 * Creates an availability widget using an API Gateway availability metric
 */
class CustomAvailabilityWidget extends availability_widget_1.AvailabilityWidget {
    constructor(props) {
        const availability = new custom_availability_metric_1.CustomAvailabilityMetric({
            namespace: props.namespace,
            errorsMetricName: props.errorsMetricName,
            countsMetricName: props.countsMetricName,
            sloWindow: props.sloWindow,
        });
        super({ availability, ...props });
    }
}
exports.CustomAvailabilityWidget = CustomAvailabilityWidget;
