"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ElasticSearchAvailabilityWidget = void 0;
const availability_widget_1 = require("./availability-widget");
const elasticsearch_availability_metric_1 = require("./elasticsearch-availability-metric");
/**
 * Creates an availability widget using an ElasticSearch availability metric
 */
class ElasticSearchAvailabilityWidget extends availability_widget_1.AvailabilityWidget {
    constructor(props) {
        const availability = new elasticsearch_availability_metric_1.ElasticSearchAvailabilityMetric({
            accountId: props.accountId,
            domainName: props.domainName,
            sloWindow: props.sloWindow,
        });
        super({ availability, ...props });
    }
}
exports.ElasticSearchAvailabilityWidget = ElasticSearchAvailabilityWidget;
