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.
24 lines
432 B
24 lines
432 B
5 years ago
|
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
|
||
|
};
|
||
|
}
|
||
|
}
|