"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ApiAvailabilityWidget = void 0;
const api_availability_metric_1 = require("./api-availability-metric");
const availability_widget_1 = require("./availability-widget");
/**
 * Creates an availability widget using an API Gateway availability metric
 */
class ApiAvailabilityWidget extends availability_widget_1.AvailabilityWidget {
    constructor(props) {
        const availability = new api_availability_metric_1.ApiAvailabilityMetric({ apiName: props.apiName, sloWindow: props.sloWindow });
        super({ availability, ...props });
    }
}
exports.ApiAvailabilityWidget = ApiAvailabilityWidget;
