data property

  1. @override
Map<String, dynamic> get data
override

Implementation

@override
Map<String, dynamic> get data => {
      // UI data for enrichment
      'position': {
        'x': position.dx,
        'y': position.dy,
      },
      'route': route,
      'texts': texts,

      // Metric data for enrichment
      'metrics': {
        'name': behaviorType, // 'rage_click' or 'empty_click'
        'value': 1, // Count = 1
        'behaviorType': behaviorType,
        'clickCount': clickCount,
        'timeWindowMs': timeWindow.inMilliseconds,
        'dimensions': {
          'fbl': '',
          'operation': '',
          'view': route ?? '',
          'state': 'active',
        }
      }
    };