"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ElasticSearchLatencyWidget = void 0;
const elasticsearch_latency_metric_1 = require("./elasticsearch-latency-metric");
const latency_widget_1 = require("./latency-widget");
/**
 * Creates a dashboard widget for an ElasticSearch domain
 * Latency SLO
 */
class ElasticSearchLatencyWidget extends latency_widget_1.LatencyWidget {
    constructor(props) {
        const latency = new elasticsearch_latency_metric_1.ElasticSearchLatencyMetric({
            accountId: props.accountId,
            domainName: props.domainName,
            sloThreshold: props.sloThreshold,
            sloWindow: props.sloWindow,
        });
        super({ latency, ...props });
    }
}
exports.ElasticSearchLatencyWidget = ElasticSearchLatencyWidget;
