Skip to content

Commit

Permalink
Regenerate client from commit 01bdf206 of spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Sep 27, 2024
1 parent d251001 commit ee75793
Show file tree
Hide file tree
Showing 10 changed files with 77 additions and 15 deletions.
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2024-09-25 18:52:40.246446",
"spec_repo_commit": "1fa8186c"
"regenerated": "2024-09-27 14:09:37.722291",
"spec_repo_commit": "01bdf206"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-09-25 18:52:40.260078",
"spec_repo_commit": "1fa8186c"
"regenerated": "2024-09-27 14:09:37.736185",
"spec_repo_commit": "01bdf206"
}
}
}
17 changes: 14 additions & 3 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13939,8 +13939,8 @@ components:
- time: sum, space: sum


Can only be applied to metrics that have a `metric_type` of `count`, `rate`,
or `gauge`.'
Can only be applied to non_distribution metrics that have a `metric_type`
of `count`, `rate`, or `gauge`.'
example:
- space: sum
time: sum
Expand Down Expand Up @@ -14548,6 +14548,17 @@ components:
required:
- data
type: object
MetricTagConfigurationMetricTypeCategory:
default: distribution
description: The metric's type category.
enum:
- non_distribution
- distribution
example: distribution
type: string
x-enum-varnames:
- NON_DISTRIBUTION
- DISTRIBUTION
MetricTagConfigurationMetricTypes:
default: gauge
description: The metric's type.
Expand Down Expand Up @@ -32405,7 +32416,7 @@ paths:
name: filter[metric_type]
required: false
schema:
$ref: '#/components/schemas/MetricTagConfigurationMetricTypes'
$ref: '#/components/schemas/MetricTagConfigurationMetricTypeCategory'
- description: 'Filter distributions with additional percentile

aggregations enabled or disabled.'
Expand Down
7 changes: 7 additions & 0 deletions docs/datadog_api_client.v2.model.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6248,6 +6248,13 @@ datadog\_api\_client.v2.model.metric\_tag\_configuration\_create\_request module
:members:
:show-inheritance:

datadog\_api\_client.v2.model.metric\_tag\_configuration\_metric\_type\_category module
---------------------------------------------------------------------------------------

.. automodule:: datadog_api_client.v2.model.metric_tag_configuration_metric_type_category
:members:
:show-inheritance:

datadog\_api\_client.v2.model.metric\_tag\_configuration\_metric\_types module
------------------------------------------------------------------------------

Expand Down
10 changes: 6 additions & 4 deletions src/datadog_api_client/v2/api/metrics_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
from datadog_api_client.v2.model.metrics_and_metric_tag_configurations_response import (
MetricsAndMetricTagConfigurationsResponse,
)
from datadog_api_client.v2.model.metric_tag_configuration_metric_types import MetricTagConfigurationMetricTypes
from datadog_api_client.v2.model.metric_tag_configuration_metric_type_category import (
MetricTagConfigurationMetricTypeCategory,
)
from datadog_api_client.v2.model.metric_bulk_tag_config_response import MetricBulkTagConfigResponse
from datadog_api_client.v2.model.metric_bulk_tag_config_delete_request import MetricBulkTagConfigDeleteRequest
from datadog_api_client.v2.model.metric_bulk_tag_config_create_request import MetricBulkTagConfigCreateRequest
Expand Down Expand Up @@ -303,7 +305,7 @@ def __init__(self, api_client=None):
"location": "query",
},
"filter_metric_type": {
"openapi_types": (MetricTagConfigurationMetricTypes,),
"openapi_types": (MetricTagConfigurationMetricTypeCategory,),
"attribute": "filter[metric_type]",
"location": "query",
},
Expand Down Expand Up @@ -667,7 +669,7 @@ def list_tag_configurations(
*,
filter_configured: Union[bool, UnsetType] = unset,
filter_tags_configured: Union[str, UnsetType] = unset,
filter_metric_type: Union[MetricTagConfigurationMetricTypes, UnsetType] = unset,
filter_metric_type: Union[MetricTagConfigurationMetricTypeCategory, UnsetType] = unset,
filter_include_percentiles: Union[bool, UnsetType] = unset,
filter_queried: Union[bool, UnsetType] = unset,
filter_tags: Union[str, UnsetType] = unset,
Expand All @@ -682,7 +684,7 @@ def list_tag_configurations(
:param filter_tags_configured: Filter tag configurations by configured tags.
:type filter_tags_configured: str, optional
:param filter_metric_type: Filter metrics by metric type.
:type filter_metric_type: MetricTagConfigurationMetricTypes, optional
:type filter_metric_type: MetricTagConfigurationMetricTypeCategory, optional
:param filter_include_percentiles: Filter distributions with additional percentile
aggregations enabled or disabled.
:type filter_include_percentiles: bool, optional
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class MetricCustomAggregations(ModelSimple):
* time: sum, space: avg
* time: sum, space: sum
Can only be applied to metrics that have a ``metric_type`` of ``count`` , ``rate`` , or ``gauge``.
Can only be applied to non_distribution metrics that have a ``metric_type`` of ``count`` , ``rate`` , or ``gauge``.
:type value: [MetricCustomAggregation]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def __init__(
* time: sum, space: avg
* time: sum, space: sum
Can only be applied to metrics that have a ``metric_type`` of ``count`` , ``rate`` , or ``gauge``.
Can only be applied to non_distribution metrics that have a ``metric_type`` of ``count`` , ``rate`` , or ``gauge``.
:type aggregations: MetricCustomAggregations, optional
:param created_at: Timestamp when the tag configuration was created.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def __init__(
* time: sum, space: avg
* time: sum, space: sum
Can only be applied to metrics that have a ``metric_type`` of ``count`` , ``rate`` , or ``gauge``.
Can only be applied to non_distribution metrics that have a ``metric_type`` of ``count`` , ``rate`` , or ``gauge``.
:type aggregations: MetricCustomAggregations, optional
:param exclude_tags_mode: When set to true, the configuration will exclude the configured tags and include any other submitted tags.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
# This product includes software developed at Datadog (https://www.datadoghq.com/).
# Copyright 2019-Present Datadog, Inc.
from __future__ import annotations


from datadog_api_client.model_utils import (
ModelSimple,
cached_property,
)

from typing import ClassVar


class MetricTagConfigurationMetricTypeCategory(ModelSimple):
"""
The metric's type category.
:param value: If omitted defaults to "distribution". Must be one of ["non_distribution", "distribution"].
:type value: str
"""

allowed_values = {
"non_distribution",
"distribution",
}
NON_DISTRIBUTION: ClassVar["MetricTagConfigurationMetricTypeCategory"]
DISTRIBUTION: ClassVar["MetricTagConfigurationMetricTypeCategory"]

@cached_property
def openapi_types(_):
return {
"value": (str,),
}


MetricTagConfigurationMetricTypeCategory.NON_DISTRIBUTION = MetricTagConfigurationMetricTypeCategory("non_distribution")
MetricTagConfigurationMetricTypeCategory.DISTRIBUTION = MetricTagConfigurationMetricTypeCategory("distribution")
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def __init__(
* time: sum, space: avg
* time: sum, space: sum
Can only be applied to metrics that have a ``metric_type`` of ``count`` , ``rate`` , or ``gauge``.
Can only be applied to non_distribution metrics that have a ``metric_type`` of ``count`` , ``rate`` , or ``gauge``.
:type aggregations: MetricCustomAggregations, optional
:param exclude_tags_mode: When set to true, the configuration will exclude the configured tags and include any other submitted tags.
Expand Down
4 changes: 4 additions & 0 deletions src/datadog_api_client/v2/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1063,6 +1063,9 @@
)
from datadog_api_client.v2.model.metric_tag_configuration_create_data import MetricTagConfigurationCreateData
from datadog_api_client.v2.model.metric_tag_configuration_create_request import MetricTagConfigurationCreateRequest
from datadog_api_client.v2.model.metric_tag_configuration_metric_type_category import (
MetricTagConfigurationMetricTypeCategory,
)
from datadog_api_client.v2.model.metric_tag_configuration_metric_types import MetricTagConfigurationMetricTypes
from datadog_api_client.v2.model.metric_tag_configuration_response import MetricTagConfigurationResponse
from datadog_api_client.v2.model.metric_tag_configuration_type import MetricTagConfigurationType
Expand Down Expand Up @@ -2849,6 +2852,7 @@
"MetricTagConfigurationCreateAttributes",
"MetricTagConfigurationCreateData",
"MetricTagConfigurationCreateRequest",
"MetricTagConfigurationMetricTypeCategory",
"MetricTagConfigurationMetricTypes",
"MetricTagConfigurationResponse",
"MetricTagConfigurationType",
Expand Down

0 comments on commit ee75793

Please sign in to comment.