mirror of
https://github.com/scylladb/scylladb.git
synced 2026-06-05 06:23:03 +00:00
Drop the AGPL license in favor of a source-available license. See the blog post [1] for details. [1] https://www.scylladb.com/2024/12/18/why-were-moving-to-a-source-available-license/
43 lines
722 B
Python
43 lines
722 B
Python
#
|
|
# Copyright (C) 2024-present ScyllaDB
|
|
#
|
|
# SPDX-License-Identifier: LicenseRef-ScyllaDB-Source-Available-1.0
|
|
#
|
|
from datetime import datetime
|
|
|
|
from attr import define
|
|
|
|
|
|
@define
|
|
class CgroupMetric:
|
|
memory: int
|
|
test_id: int
|
|
timestamp: datetime
|
|
|
|
|
|
@define
|
|
class Metric:
|
|
test_id: int
|
|
memory_peak: int = None
|
|
success: bool = None
|
|
system_sec: float = None
|
|
time_end: float = None
|
|
time_start: float = None
|
|
time_taken: float = None
|
|
usage_sec: float = None
|
|
user_sec: float = None
|
|
|
|
@define
|
|
class SystemResourceMetric:
|
|
cpu: float
|
|
memory: float
|
|
timestamp: datetime
|
|
|
|
@define
|
|
class Test:
|
|
architecture: str
|
|
directory: str
|
|
mode: str
|
|
run_id: int
|
|
test_name: str
|