Skip to content

Commit 4395802

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 088737f of spec repo (#108)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 5eb0d2c commit 4395802

File tree

8 files changed

+14
-13
lines changed

8 files changed

+14
-13
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.4.1.dev6",
7-
"regenerated": "2021-04-27 12:57:07.253107",
8-
"spec_repo_commit": "6b0114c"
7+
"regenerated": "2021-04-27 16:17:40.419665",
8+
"spec_repo_commit": "088737f"
99
},
1010
"v2": {
1111
"apigentools_version": "1.4.1.dev6",
12-
"regenerated": "2021-04-27 12:57:12.979092",
13-
"spec_repo_commit": "6b0114c"
12+
"regenerated": "2021-04-27 16:17:45.739221",
13+
"spec_repo_commit": "088737f"
1414
}
1515
}
1616
}

packages/datadog-api-client-v2/apis/MetricsApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import { MetricsAndMetricTagConfigurationsResponse } from '../models/MetricsAndM
2222
export class MetricsApiRequestFactory extends BaseAPIRequestFactory {
2323

2424
/**
25-
* 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.
25+
* 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.
2626
* Create a tag configuration
2727
* @param metricName The name of the metric.
2828
* @param body

packages/datadog-api-client-v2/models/MetricTagConfigurationAttributes.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export class MetricTagConfigurationAttributes {
7575

7676
res.includePercentiles = ObjectSerializer.deserialize(data.include_percentiles, "boolean", "")
7777

78-
if (['gauge', 'count', 'distribution', undefined].includes(data.metric_type)) {
78+
if (['gauge', 'count', 'rate', 'distribution', undefined].includes(data.metric_type)) {
7979
res.metricType = data.metric_type;
8080
} else {
8181
throw TypeError(`invalid enum value ${ data.metric_type } for metric_type`);
@@ -101,7 +101,7 @@ export class MetricTagConfigurationAttributes {
101101

102102
res.include_percentiles = ObjectSerializer.serialize(data.includePercentiles, "boolean", "")
103103

104-
if (['gauge', 'count', 'distribution', undefined].includes(data.metricType)) {
104+
if (['gauge', 'count', 'rate', 'distribution', undefined].includes(data.metricType)) {
105105
res.metric_type = data.metricType;
106106
} else {
107107
throw TypeError(`invalid enum value ${ data.metricType } for metricType`);

packages/datadog-api-client-v2/models/MetricTagConfigurationCreateAttributes.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export class MetricTagConfigurationCreateAttributes {
5858
if (data.metric_type === undefined) {
5959
throw new TypeError("missing required attribute 'metric_type' on 'MetricTagConfigurationCreateAttributes' object");
6060
}
61-
if (['gauge', 'count', 'distribution', undefined].includes(data.metric_type)) {
61+
if (['gauge', 'count', 'rate', 'distribution', undefined].includes(data.metric_type)) {
6262
res.metricType = data.metric_type;
6363
} else {
6464
throw TypeError(`invalid enum value ${ data.metric_type } for metric_type`);
@@ -86,7 +86,7 @@ export class MetricTagConfigurationCreateAttributes {
8686
if (data.metricType === undefined) {
8787
throw new TypeError("missing required attribute 'metric_type' on 'MetricTagConfigurationCreateAttributes' object");
8888
}
89-
if (['gauge', 'count', 'distribution', undefined].includes(data.metricType)) {
89+
if (['gauge', 'count', 'rate', 'distribution', undefined].includes(data.metricType)) {
9090
res.metric_type = data.metricType;
9191
} else {
9292
throw TypeError(`invalid enum value ${ data.metricType } for metricType`);

packages/datadog-api-client-v2/models/MetricTagConfigurationMetricTypes.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ import { ObjectSerializer } from './ObjectSerializer';
1515
* The metric's type.
1616
*/
1717

18-
export type MetricTagConfigurationMetricTypes = typeof GAUGE | typeof COUNT | typeof DISTRIBUTION ;
18+
export type MetricTagConfigurationMetricTypes = typeof GAUGE | typeof COUNT | typeof RATE | typeof DISTRIBUTION ;
1919
export const GAUGE = 'gauge';
2020
export const COUNT = 'count';
21+
export const RATE = 'rate';
2122
export const DISTRIBUTION = 'distribution';
2223

2324

packages/datadog-api-client-v2/types/ObjectParamAPI.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1694,7 +1694,7 @@ export class ObjectMetricsApi {
16941694
}
16951695

16961696
/**
1697-
* 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.
1697+
* 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.
16981698
* Create a tag configuration
16991699
* @param param the request object
17001700
*/

packages/datadog-api-client-v2/types/ObservableAPI.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1714,7 +1714,7 @@ export class ObservableMetricsApi {
17141714
}
17151715

17161716
/**
1717-
* 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.
1717+
* 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.
17181718
* Create a tag configuration
17191719
* @param metricName The name of the metric.
17201720
* @param body

packages/datadog-api-client-v2/types/PromiseAPI.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1018,7 +1018,7 @@ export class PromiseMetricsApi {
10181018
}
10191019

10201020
/**
1021-
* 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.
1021+
* 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.
10221022
* Create a tag configuration
10231023
* @param metricName The name of the metric.
10241024
* @param body

0 commit comments

Comments
 (0)