Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/secops/chronicle/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.
#
"""Statistics functionality for Chronicle searches."""
from datetime import datetime
from datetime import datetime, UTC
from typing import Any

from secops.exceptions import APIError
Expand Down Expand Up @@ -127,6 +127,8 @@ def process_stats_results(stats: dict[str, Any]) -> dict[str, Any]:
values.append(float(val["doubleVal"]))
elif "stringVal" in val:
values.append(val["stringVal"])
elif "timestampVal" in val:
values.append(datetime.fromisoformat(val["timestampVal"].replace('Z', '+00:00')).replace(tzinfo=UTC))
else:
values.append(None)
# Handle list value cells (like those from array_distinct)
Expand Down
Loading