"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CustomLatencyWidget = void 0;
const custom_latency_metric_1 = require("./custom-latency-metric");
const latency_widget_1 = require("./latency-widget");
/**
 * Creates a latency widget using a Custom latency metric
 */
class CustomLatencyWidget extends latency_widget_1.LatencyWidget {
    constructor(props) {
        const latency = new custom_latency_metric_1.CustomLatencyMetric({
            namespace: props.namespace,
            latencyMetricName: props.latencyMetricName,
            sloThreshold: props.sloThreshold,
            sloWindow: props.sloWindow,
        });
        super({ latency, ...props });
    }
}
exports.CustomLatencyWidget = CustomLatencyWidget;
