Files
Alberto-Audrix 32a36cceff
CI / lint-and-test (push) Canceled after 0s
first commit
2026-07-28 08:55:05 +07:00

34 lines
765 B
TypeScript

export interface BehaviorMetrics {
activityIndex: number;
stressLevel: { value: number; status: 'ok' | 'warning' | 'critical' };
eatingPattern: { value: number; status: 'ok' | 'warning' | 'critical' };
drinkingPattern: { value: number; status: 'ok' | 'warning' | 'critical' };
}
export interface BehaviorDataPoint {
timestamp: Date;
activity: number;
stress: number;
}
export enum AnomalyType {
AGGRESSION = 'Agresi',
ISOLATION = 'Isolasi',
PANIC = 'Panik',
REDUCED_MOBILITY = 'Mobilitas Rendah',
}
export enum AnomalySeverity {
WARNING = 'Peringatan',
CRITICAL = 'Kritis',
}
export interface BehaviorAnomaly {
id: string;
type: AnomalyType;
severity: AnomalySeverity;
location: string;
timestamp: Date;
details: string;
}