Skip to content

Commit c7f9990

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 3aa1b866 of spec repo (#785)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 1de327a commit c7f9990

File tree

25 files changed

+944
-56
lines changed

25 files changed

+944
-56
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.6.4",
7-
"regenerated": "2022-09-01 20:59:41.473168",
8-
"spec_repo_commit": "db2c39ca"
7+
"regenerated": "2022-09-02 12:49:58.211262",
8+
"spec_repo_commit": "3aa1b866"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2022-09-01 20:59:41.485451",
13-
"spec_repo_commit": "db2c39ca"
12+
"regenerated": "2022-09-02 12:49:58.223954",
13+
"spec_repo_commit": "3aa1b866"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 127 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4156,6 +4156,15 @@ components:
41564156
type:
41574157
$ref: '#/components/schemas/MetricType'
41584158
type: object
4159+
MetricActiveConfigurationType:
4160+
default: actively_queried_configurations
4161+
description: The metric actively queried configuration resource type.
4162+
enum:
4163+
- actively_queried_configurations
4164+
example: actively_queried_configurations
4165+
type: string
4166+
x-enum-varnames:
4167+
- ACTIVELY_QUERIED_CONFIGURATIONS
41594168
MetricAllTags:
41604169
description: Object for a single metric's indexed tags.
41614170
properties:
@@ -4681,6 +4690,50 @@ components:
46814690
- metric
46824691
- points
46834692
type: object
4693+
MetricSuggestedAggregations:
4694+
description: List of aggregation combinations that have been actively queried.
4695+
example:
4696+
- space: sum
4697+
time: sum
4698+
- space: sum
4699+
time: count
4700+
items:
4701+
$ref: '#/components/schemas/MetricCustomAggregation'
4702+
type: array
4703+
MetricSuggestedTagsAndAggregations:
4704+
description: Object for a single metric's actively queried tags and aggregations.
4705+
properties:
4706+
attributes:
4707+
$ref: '#/components/schemas/MetricSuggestedTagsAttributes'
4708+
id:
4709+
$ref: '#/components/schemas/MetricName'
4710+
type:
4711+
$ref: '#/components/schemas/MetricActiveConfigurationType'
4712+
type: object
4713+
MetricSuggestedTagsAndAggregationsResponse:
4714+
description: Response object that includes a single metric's actively queried
4715+
tags and aggregations.
4716+
properties:
4717+
data:
4718+
$ref: '#/components/schemas/MetricSuggestedTagsAndAggregations'
4719+
readOnly: true
4720+
type: object
4721+
MetricSuggestedTagsAttributes:
4722+
description: Object containing the definition of a metric's actively queried
4723+
tags and aggregations.
4724+
properties:
4725+
active_aggregations:
4726+
$ref: '#/components/schemas/MetricSuggestedAggregations'
4727+
active_tags:
4728+
description: List of tag keys that have been actively queried.
4729+
example:
4730+
- app
4731+
- datacenter
4732+
items:
4733+
description: Actively queried tag keys.
4734+
type: string
4735+
type: array
4736+
type: object
46844737
MetricTagConfiguration:
46854738
description: Object for a single metric tag configuration.
46864739
example:
@@ -10615,12 +10668,10 @@ paths:
1061510668
resultsPath: data
1061610669
/api/v2/metrics:
1061710670
get:
10618-
description: 'Returns all configured count/gauge/rate/distribution metric names
10619-
10620-
(with additional filters if specified).'
10671+
description: Returns all metrics (matching additional filters if specified).
1062110672
operationId: ListTagConfigurations
1062210673
parameters:
10623-
- description: Filter metrics that have configured tags.
10674+
- description: Filter custom metrics that have configured tags.
1062410675
example: true
1062510676
in: query
1062610677
name: filter[configured]
@@ -10635,7 +10686,7 @@ paths:
1063510686
schema:
1063610687
description: Tag keys to filter by.
1063710688
type: string
10638-
- description: Filter tag configurations by metric type.
10689+
- description: Filter metrics by metric type.
1063910690
in: query
1064010691
name: filter[metric_type]
1064110692
required: false
@@ -10650,20 +10701,31 @@ paths:
1065010701
required: false
1065110702
schema:
1065210703
type: boolean
10704+
- description: 'Filter custom metrics that have or have not been queried in
10705+
the specified window[seconds].
10706+
10707+
If no window is provided or the window is less than 2 hours, a default of
10708+
2 hours will be applied.'
10709+
example: true
10710+
in: query
10711+
name: filter[queried]
10712+
required: false
10713+
schema:
10714+
type: boolean
1065310715
- description: 'Filter metrics that have been submitted with the given tags.
1065410716
Supports boolean and wildcard expressions.
1065510717
10656-
Cannot be combined with other filters.'
10718+
Can only be combined with the filter[queried] filter.'
1065710719
example: env IN (staging,test) AND service:web
1065810720
in: query
1065910721
name: filter[tags]
1066010722
required: false
1066110723
schema:
1066210724
type: string
1066310725
- description: 'The number of seconds of look back (from now) to apply to a
10664-
filter[tag] query.
10726+
filter[tag] or filter[queried] query.
1066510727
10666-
Defaults value is 3600 (1 hour), maximum value is 172,800 (2 days).'
10728+
Defaults value is 3600 (1 hour), maximum value is 1,209,600 (2 weeks).'
1066710729
example: 3600
1066810730
in: query
1066910731
name: window[seconds]
@@ -10701,7 +10763,7 @@ paths:
1070110763
appKeyAuth: []
1070210764
- AuthZ:
1070310765
- metrics_read
10704-
summary: List tag configurations
10766+
summary: Get a list of metrics
1070510767
tags:
1070610768
- Metrics
1070710769
/api/v2/metrics/config/bulk-tags:
@@ -10817,6 +10879,62 @@ paths:
1081710879
tags:
1081810880
- Metrics
1081910881
x-codegen-request-body-name: body
10882+
/api/v2/metrics/{metric_name}/active-configurations:
10883+
get:
10884+
description: List tags and aggregations that are actively queried on dashboards
10885+
and monitors for a given metric name.
10886+
operationId: ListActiveMetricConfigurations
10887+
parameters:
10888+
- $ref: '#/components/parameters/MetricName'
10889+
- description: 'The number of seconds of look back (from now).
10890+
10891+
Default value is 604,800 (1 week), minimum value is 7200 (2 hours), maximum
10892+
value is 2,630,000 (1 month).'
10893+
example: 7200
10894+
in: query
10895+
name: window[seconds]
10896+
required: false
10897+
schema:
10898+
format: int64
10899+
type: integer
10900+
responses:
10901+
'200':
10902+
content:
10903+
application/json:
10904+
schema:
10905+
$ref: '#/components/schemas/MetricSuggestedTagsAndAggregationsResponse'
10906+
description: Success
10907+
'400':
10908+
content:
10909+
application/json:
10910+
schema:
10911+
$ref: '#/components/schemas/APIErrorResponse'
10912+
description: Bad Request
10913+
'403':
10914+
content:
10915+
application/json:
10916+
schema:
10917+
$ref: '#/components/schemas/APIErrorResponse'
10918+
description: Forbidden
10919+
'404':
10920+
content:
10921+
application/json:
10922+
schema:
10923+
$ref: '#/components/schemas/APIErrorResponse'
10924+
description: Not Found
10925+
'429':
10926+
content:
10927+
application/json:
10928+
schema:
10929+
$ref: '#/components/schemas/APIErrorResponse'
10930+
description: Too Many Requests
10931+
security:
10932+
- apiKeyAuth: []
10933+
appKeyAuth: []
10934+
- AuthZ: []
10935+
summary: List active tags and aggregations
10936+
tags:
10937+
- Metrics
1082010938
/api/v2/metrics/{metric_name}/all-tags:
1082110939
get:
1082210940
description: View indexed tag key-value pairs for a given metric name.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2022-08-05T07:10:54.386Z"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
{
2+
"log": {
3+
"_recordingName": "Metrics/Get a list of Metrics with a tag filter returns \"Success\" response",
4+
"creator": {
5+
"comment": "persister:fs",
6+
"name": "Polly.JS",
7+
"version": "6.0.5"
8+
},
9+
"entries": [
10+
{
11+
"_id": "58cad22be78c362f8c820fd9232233aa",
12+
"_order": 0,
13+
"cache": {},
14+
"request": {
15+
"bodySize": 0,
16+
"cookies": [],
17+
"headers": [
18+
{
19+
"_fromType": "array",
20+
"name": "accept",
21+
"value": "application/json"
22+
}
23+
],
24+
"headersSize": 594,
25+
"httpVersion": "HTTP/1.1",
26+
"method": "GET",
27+
"queryString": [
28+
{
29+
"name": "filter",
30+
"value": {
31+
"tags": "TestGetalistofMetricswithatagfilterreturnsSuccessresponse1659683454"
32+
}
33+
}
34+
],
35+
"url": "https://api.datadoghq.com/api/v2/metrics?filter%5Btags%5D=TestGetalistofMetricswithatagfilterreturnsSuccessresponse1659683454"
36+
},
37+
"response": {
38+
"bodySize": 12,
39+
"content": {
40+
"mimeType": "application/json",
41+
"size": 12,
42+
"text": "{\"data\":[]}\n"
43+
},
44+
"cookies": [],
45+
"headers": [
46+
{
47+
"name": "content-type",
48+
"value": "application/json"
49+
}
50+
],
51+
"headersSize": 599,
52+
"httpVersion": "HTTP/1.1",
53+
"redirectURL": "",
54+
"status": 200,
55+
"statusText": "OK"
56+
},
57+
"startedDateTime": "2022-08-05T07:10:54.408Z",
58+
"time": 609
59+
}
60+
],
61+
"pages": [],
62+
"version": "1.2"
63+
}
64+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2022-08-05T07:10:55.036Z"

cassettes/v2/Metrics_2046978582/Get-a-list-of-Metrics-with-configured-filter-returns-Success-response_4211947499/recording.har

Lines changed: 64 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2022-09-01T11:59:10.865Z"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
{
2+
"log": {
3+
"_recordingName": "Metrics/Get a list of metrics with a tag filter returns \"Success\" response",
4+
"creator": {
5+
"comment": "persister:fs",
6+
"name": "Polly.JS",
7+
"version": "6.0.5"
8+
},
9+
"entries": [
10+
{
11+
"_id": "c37035a23cf90c4730799b6d7943735d",
12+
"_order": 0,
13+
"cache": {},
14+
"request": {
15+
"bodySize": 0,
16+
"cookies": [],
17+
"headers": [
18+
{
19+
"_fromType": "array",
20+
"name": "accept",
21+
"value": "application/json"
22+
}
23+
],
24+
"headersSize": 594,
25+
"httpVersion": "HTTP/1.1",
26+
"method": "GET",
27+
"queryString": [
28+
{
29+
"name": "filter",
30+
"value": {
31+
"tags": "TestGetalistofmetricswithatagfilterreturnsSuccessresponse1662033550"
32+
}
33+
}
34+
],
35+
"url": "https://api.datadoghq.com/api/v2/metrics?filter%5Btags%5D=TestGetalistofmetricswithatagfilterreturnsSuccessresponse1662033550"
36+
},
37+
"response": {
38+
"bodySize": 12,
39+
"content": {
40+
"mimeType": "application/json",
41+
"size": 12,
42+
"text": "{\"data\":[]}\n"
43+
},
44+
"cookies": [],
45+
"headers": [
46+
{
47+
"name": "content-type",
48+
"value": "application/json"
49+
}
50+
],
51+
"headersSize": 599,
52+
"httpVersion": "HTTP/1.1",
53+
"redirectURL": "",
54+
"status": 200,
55+
"statusText": "OK"
56+
},
57+
"startedDateTime": "2022-09-01T11:59:10.875Z",
58+
"time": 487
59+
}
60+
],
61+
"pages": [],
62+
"version": "1.2"
63+
}
64+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2022-09-01T11:59:49.583Z"

cassettes/v2/Metrics_2046978582/Get-a-list-of-metrics-with-configured-filter-returns-Success-response_2949073099/recording.har

Lines changed: 64 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)