/**
 * @fileoverview added by tsickle
 * Generated from: lib/tap-monitoring-settings/monitoring-settings.service.ts
 * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
 */
import { Injectable } from '@angular/core';
import { BehaviorSubject } from 'rxjs';
import * as i0 from "@angular/core";
/**
 * @record
 */
export function MonitoringSettings() { }
if (false) {
    /** @type {?} */
    MonitoringSettings.prototype.period;
}
var MonitoringSettingsService = /** @class */ (function () {
    function MonitoringSettingsService() {
        this.subject = new BehaviorSubject({
            period: 1000
        });
    }
    Object.defineProperty(MonitoringSettingsService.prototype, "settings", {
        get: /**
         * @return {?}
         */
        function () {
            return this.subject.value;
        },
        set: /**
         * @param {?} value
         * @return {?}
         */
        function (value) {
            this.subject.next(value);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MonitoringSettingsService.prototype, "settings$", {
        get: /**
         * @return {?}
         */
        function () {
            return this.subject;
        },
        enumerable: true,
        configurable: true
    });
    MonitoringSettingsService.decorators = [
        { type: Injectable, args: [{
                    providedIn: 'root'
                },] }
    ];
    /** @nocollapse */
    MonitoringSettingsService.ctorParameters = function () { return []; };
    /** @nocollapse */ MonitoringSettingsService.ɵprov = i0.ɵɵdefineInjectable({ factory: function MonitoringSettingsService_Factory() { return new MonitoringSettingsService(); }, token: MonitoringSettingsService, providedIn: "root" });
    return MonitoringSettingsService;
}());
export { MonitoringSettingsService };
if (false) {
    /**
     * @type {?}
     * @private
     */
    MonitoringSettingsService.prototype.subject;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9uaXRvcmluZy1zZXR0aW5ncy5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGlvdGl6ZS9pb25pYy9tb25pdG9yaW5nLyIsInNvdXJjZXMiOlsibGliL3RhcC1tb25pdG9yaW5nLXNldHRpbmdzL21vbml0b3Jpbmctc2V0dGluZ3Muc2VydmljZS50cyJ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