From 092b8deb9c4191028c4915ccd8ee60e1a9680c2b Mon Sep 17 00:00:00 2001 From: nhnn Date: Mon, 15 Jul 2024 17:20:05 +0300 Subject: [PATCH] fix: docs should use datetime too --- selfprivacy_api/utils/prometheus.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/selfprivacy_api/utils/prometheus.py b/selfprivacy_api/utils/prometheus.py index 279511b..118171e 100644 --- a/selfprivacy_api/utils/prometheus.py +++ b/selfprivacy_api/utils/prometheus.py @@ -55,9 +55,9 @@ class PrometheusQueries: Get CPU information. Args: - start (int, optional): Unix timestamp (in seconds) indicating the start time. + start (datetime, optional): timestamp indicating the start time of metrics to fetch Defaults to 20 minutes ago if not provided. - end (int, optional): Unix timestamp (in seconds) indicating the end time. + end (datetime, optional): timestamp indicating the end time of metrics to fetch Defaults to current time if not provided. step (int): Interval in seconds for querying disk usage data. """ @@ -82,9 +82,9 @@ class PrometheusQueries: Get memory usage. Args: - start (int, optional): Unix timestamp indicating the start time. + start (datetime, optional): timestamp indicating the start time of metrics to fetch Defaults to 20 minutes ago if not provided. - end (int, optional): Unix timestamp indicating the end time. + end (datetime, optional): timestamp indicating the end time of metrics to fetch Defaults to current time if not provided. step (int): Interval in seconds for querying memory usage data. """ @@ -109,9 +109,9 @@ class PrometheusQueries: Get disk usage information. Args: - start (int, optional): Unix timestamp indicating the start time. + start (datetime, optional): timestamp indicating the start time of metrics to fetch Defaults to 20 minutes ago if not provided. - end (int, optional): Unix timestamp indicating the end time. + end (datetime, optional): timestamp indicating the end time of metrics to fetch Defaults to current time if not provided. step (int): Interval in seconds for querying disk usage data. """