Commit a5f9ab73 authored by Waleed Akbar's avatar Waleed Akbar
Browse files

feat: Update default timestamp retrieval to use current UTC time in InfluxDBFetcher

parent 5d476683
Loading
Loading
Loading
Loading
+1 −1
Changes for src/tests/mwc26-f5ga/AI_analytics_engine/clients/influxdb_fetcher.py: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -256,7 +256,7 @@ class InfluxDBFetcher:
            Exception: If InfluxDB is unavailable after all retries.
        """
        status = notification_data.get('status')
        timestamp = notification_data.get('timestamp', 'N/A')
        timestamp = notification_data.get('timestamp',  datetime.now(timezone.utc).isoformat())

        # Validate status value
        if status not in {'UPGRADE', 'DOWNGRADE'}: