fix: docs should use datetime too

This commit is contained in:
nhnn 2024-07-15 17:20:05 +03:00
parent 3bddfb15c4
commit 092b8deb9c

View file

@ -55,9 +55,9 @@ class PrometheusQueries:
Get CPU information. Get CPU information.
Args: 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. 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. Defaults to current time if not provided.
step (int): Interval in seconds for querying disk usage data. step (int): Interval in seconds for querying disk usage data.
""" """
@ -82,9 +82,9 @@ class PrometheusQueries:
Get memory usage. Get memory usage.
Args: 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. 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. Defaults to current time if not provided.
step (int): Interval in seconds for querying memory usage data. step (int): Interval in seconds for querying memory usage data.
""" """
@ -109,9 +109,9 @@ class PrometheusQueries:
Get disk usage information. Get disk usage information.
Args: 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. 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. Defaults to current time if not provided.
step (int): Interval in seconds for querying disk usage data. step (int): Interval in seconds for querying disk usage data.
""" """