You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

23 lines
432 B

import { AnalyticUnit, DetectorType } from './analytic_unit';
import _ from 'lodash';
const DEFAULTS = {
detectorType: DetectorType.PATTERN,
type: 'GENERAL'
};
export class PatternAnalyticUnit extends AnalyticUnit {
constructor(_serverObject?: any) {
super(_serverObject);
_.defaults(this._serverObject, DEFAULTS);
}
toJSON() {
const baseJSON = super.toJSON();
return {
...baseJSON
};
}
}