Skip to content

Add support for a rate metric type in manage metric tags v2 endpoint #409

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 27, 2021
Merged
Show file tree
Hide file tree
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
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.4.1.dev6",
"regenerated": "2021-04-27 12:57:15.819910",
"spec_repo_commit": "6b0114c"
"regenerated": "2021-04-27 16:18:22.095168",
"spec_repo_commit": "088737f"
},
"v2": {
"apigentools_version": "1.4.1.dev6",
"regenerated": "2021-04-27 12:57:40.827458",
"spec_repo_commit": "6b0114c"
"regenerated": "2021-04-27 16:18:49.871721",
"spec_repo_commit": "088737f"
}
}
}
2 changes: 1 addition & 1 deletion docs/v2/MetricTagConfigurationMetricTypes.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ The metric's type.
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**value** | **str** | The metric's type. | defaults to "gauge", must be one of ["gauge", "count", "distribution", ]
**value** | **str** | The metric's type. | defaults to "gauge", must be one of ["gauge", "count", "rate", "distribution", ]

[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)

Expand Down
2 changes: 1 addition & 1 deletion docs/v2/MetricsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Method | HTTP request | Description

Create a tag configuration

Create and define a list of queryable tag keys for a count/gauge/rate/distribution metric. Optionally, include percentile aggregations on any distribution metric. Can only be used with application keys of users with the `Manage Tags for Metrics` permission.
Create and define a list of queryable tag keys for an existing count/gauge/rate/distribution metric. Optionally, include percentile aggregations on any distribution metric. Can only be used with application keys of users with the `Manage Tags for Metrics` permission.

### Example

Expand Down
2 changes: 1 addition & 1 deletion src/datadog_api_client/v2/api/metrics_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ def __init__(self, api_client=None):
def create_tag_configuration(self, metric_name, body, **kwargs):
"""Create a tag configuration # noqa: E501

Create and define a list of queryable tag keys for a count/gauge/rate/distribution metric. Optionally, include percentile aggregations on any distribution metric. Can only be used with application keys of users with the `Manage Tags for Metrics` permission. # noqa: E501
Create and define a list of queryable tag keys for an existing count/gauge/rate/distribution metric. Optionally, include percentile aggregations on any distribution metric. Can only be used with application keys of users with the `Manage Tags for Metrics` permission. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ class MetricTagConfigurationMetricTypes(ModelSimple):
("value",): {
"GAUGE": "gauge",
"COUNT": "count",
"RATE": "rate",
"DISTRIBUTION": "distribution",
},
}
Expand Down Expand Up @@ -96,10 +97,10 @@ def __init__(self, *args, **kwargs):
Note that value can be passed either in args or in kwargs, but not in both.

Args:
args[0] (str): The metric's type.. if omitted defaults to "gauge", must be one of ["gauge", "count", "distribution", ] # noqa: E501
args[0] (str): The metric's type.. if omitted defaults to "gauge", must be one of ["gauge", "count", "rate", "distribution", ] # noqa: E501

Keyword Args:
value (str): The metric's type.. if omitted defaults to "gauge", must be one of ["gauge", "count", "distribution", ] # noqa: E501
value (str): The metric's type.. if omitted defaults to "gauge", must be one of ["gauge", "count", "rate", "distribution", ] # noqa: E501
_check_type (bool): if True, values for parameters in openapi_types
will be type checked and a TypeError will be
raised if the wrong type is input.
Expand Down
7 changes: 5 additions & 2 deletions src/datadog_api_client/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3077,12 +3077,14 @@ components:
enum:
- gauge
- count
- rate
- distribution
example: count
type: string
x-enum-varnames:
- GAUGE
- COUNT
- RATE
- DISTRIBUTION
MetricTagConfigurationResponse:
description: Response object which includes a single metric's tag configuration.
Expand Down Expand Up @@ -6588,8 +6590,9 @@ paths:
\ you\u2019re interested in Metrics without Limits™, please contact\
\ your Customer Success Manager.**"
post:
description: 'Create and define a list of queryable tag keys for a count/gauge/rate/distribution
metric. Optionally, include percentile aggregations on any distribution metric.
description: 'Create and define a list of queryable tag keys for an existing
count/gauge/rate/distribution metric. Optionally, include percentile aggregations
on any distribution metric.

Can only be used with application keys of users with the `Manage Tags for
Metrics` permission.'
Expand Down