34 lines
765 B
TypeScript
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;
|
|
}
|