Skip to content

Commit da2c8b0

Browse files
authored
feat(rdb): deprecate GetInstanceMetrics endpoint (#1342)
1 parent b14d240 commit da2c8b0

File tree

2 files changed

+6
-4
lines changed
  • scaleway-async/scaleway_async/rdb/v1
  • scaleway/scaleway/rdb/v1

2 files changed

+6
-4
lines changed

scaleway-async/scaleway_async/rdb/v1/api.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1326,14 +1326,15 @@ async def get_instance_metrics(
13261326
metric_name: Optional[str] = None,
13271327
) -> InstanceMetrics:
13281328
"""
1329-
Get Database Instance metrics.
1330-
Retrieve the time series metrics of a given Database Instance. You can define the period from which to retrieve metrics by specifying the `start_date` and `end_date`.
1329+
[deprecated] Get Database Instance metrics.
1330+
Retrieve the time series metrics of a given Database Instance. You can define the period from which to retrieve metrics by specifying the `start_date` and `end_date`. This method is deprecated and will be removed in a future version.
13311331
:param instance_id: UUID of the Database Instance.
13321332
:param region: Region to target. If none is passed will use default region from the config.
13331333
:param start_date: Start date to gather metrics from.
13341334
:param end_date: End date to gather metrics from.
13351335
:param metric_name: Name of the metric to gather.
13361336
:return: :class:`InstanceMetrics <InstanceMetrics>`
1337+
:deprecated
13371338
13381339
Usage:
13391340
::

scaleway/scaleway/rdb/v1/api.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1322,14 +1322,15 @@ def get_instance_metrics(
13221322
metric_name: Optional[str] = None,
13231323
) -> InstanceMetrics:
13241324
"""
1325-
Get Database Instance metrics.
1326-
Retrieve the time series metrics of a given Database Instance. You can define the period from which to retrieve metrics by specifying the `start_date` and `end_date`.
1325+
[deprecated] Get Database Instance metrics.
1326+
Retrieve the time series metrics of a given Database Instance. You can define the period from which to retrieve metrics by specifying the `start_date` and `end_date`. This method is deprecated and will be removed in a future version.
13271327
:param instance_id: UUID of the Database Instance.
13281328
:param region: Region to target. If none is passed will use default region from the config.
13291329
:param start_date: Start date to gather metrics from.
13301330
:param end_date: End date to gather metrics from.
13311331
:param metric_name: Name of the metric to gather.
13321332
:return: :class:`InstanceMetrics <InstanceMetrics>`
1333+
:deprecated
13331334
13341335
Usage:
13351336
::

0 commit comments

Comments
 (0)