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
Original file line number Diff line number Diff line change
Expand Up @@ -4487,6 +4487,7 @@ def list_metrics(
self,
project_id: Annotated[StrictStr, Field(description="The UUID of the project.")],
instance_id: Annotated[StrictStr, Field(description="The UUID of the instance.")],
region: Annotated[StrictStr, Field(description="The region which should be addressed")],
metric: Annotated[
StrictStr,
Field(
Expand Down Expand Up @@ -4530,6 +4531,8 @@ def list_metrics(
:type project_id: str
:param instance_id: The UUID of the instance. (required)
:type instance_id: str
:param region: The region which should be addressed (required)
:type region: str
:param metric: The name of the metric. Valid metrics are 'cpu', 'memory', 'data-disk-size', 'data-disk-use','log-disk-size', 'log-disk-use', 'life-expectancy' and 'connections'. (required)
:type metric: str
:param granularity: The granularity in ISO8601 e.g. 5 minutes are 'PT5M'. (required)
Expand Down Expand Up @@ -4565,6 +4568,7 @@ def list_metrics(
_param = self._list_metrics_serialize(
project_id=project_id,
instance_id=instance_id,
region=region,
metric=metric,
granularity=granularity,
period=period,
Expand Down Expand Up @@ -4594,6 +4598,7 @@ def list_metrics_with_http_info(
self,
project_id: Annotated[StrictStr, Field(description="The UUID of the project.")],
instance_id: Annotated[StrictStr, Field(description="The UUID of the instance.")],
region: Annotated[StrictStr, Field(description="The region which should be addressed")],
metric: Annotated[
StrictStr,
Field(
Expand Down Expand Up @@ -4637,6 +4642,8 @@ def list_metrics_with_http_info(
:type project_id: str
:param instance_id: The UUID of the instance. (required)
:type instance_id: str
:param region: The region which should be addressed (required)
:type region: str
:param metric: The name of the metric. Valid metrics are 'cpu', 'memory', 'data-disk-size', 'data-disk-use','log-disk-size', 'log-disk-use', 'life-expectancy' and 'connections'. (required)
:type metric: str
:param granularity: The granularity in ISO8601 e.g. 5 minutes are 'PT5M'. (required)
Expand Down Expand Up @@ -4672,6 +4679,7 @@ def list_metrics_with_http_info(
_param = self._list_metrics_serialize(
project_id=project_id,
instance_id=instance_id,
region=region,
metric=metric,
granularity=granularity,
period=period,
Expand Down Expand Up @@ -4701,6 +4709,7 @@ def list_metrics_without_preload_content(
self,
project_id: Annotated[StrictStr, Field(description="The UUID of the project.")],
instance_id: Annotated[StrictStr, Field(description="The UUID of the instance.")],
region: Annotated[StrictStr, Field(description="The region which should be addressed")],
metric: Annotated[
StrictStr,
Field(
Expand Down Expand Up @@ -4744,6 +4753,8 @@ def list_metrics_without_preload_content(
:type project_id: str
:param instance_id: The UUID of the instance. (required)
:type instance_id: str
:param region: The region which should be addressed (required)
:type region: str
:param metric: The name of the metric. Valid metrics are 'cpu', 'memory', 'data-disk-size', 'data-disk-use','log-disk-size', 'log-disk-use', 'life-expectancy' and 'connections'. (required)
:type metric: str
:param granularity: The granularity in ISO8601 e.g. 5 minutes are 'PT5M'. (required)
Expand Down Expand Up @@ -4779,6 +4790,7 @@ def list_metrics_without_preload_content(
_param = self._list_metrics_serialize(
project_id=project_id,
instance_id=instance_id,
region=region,
metric=metric,
granularity=granularity,
period=period,
Expand All @@ -4803,6 +4815,7 @@ def _list_metrics_serialize(
self,
project_id,
instance_id,
region,
metric,
granularity,
period,
Expand Down Expand Up @@ -4830,6 +4843,8 @@ def _list_metrics_serialize(
_path_params["projectId"] = project_id
if instance_id is not None:
_path_params["instanceId"] = instance_id
if region is not None:
_path_params["region"] = region
if metric is not None:
_path_params["metric"] = metric
# process the query parameters
Expand Down Expand Up @@ -4862,7 +4877,7 @@ def _list_metrics_serialize(

return self.api_client.param_serialize(
method="GET",
resource_path="/v2/projects/{projectId}/instances/{instanceId}/metrics/{metric}",
resource_path="/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/metrics/{metric}",
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
Expand Down