Skip to content

Commit cde4123

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 26eb8e8a of spec repo (#856)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 0a88f64 commit cde4123

File tree

13 files changed

+335
-190
lines changed

13 files changed

+335
-190
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-28 16:41:33.701189",
8-
"spec_repo_commit": "5c013ee5"
7+
"regenerated": "2022-09-29 08:29:28.561387",
8+
"spec_repo_commit": "26eb8e8a"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2022-09-28 16:41:33.713516",
13-
"spec_repo_commit": "5c013ee5"
12+
"regenerated": "2022-09-29 08:29:28.573375",
13+
"spec_repo_commit": "26eb8e8a"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 48 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -8755,7 +8755,8 @@ components:
87558755
type: string
87568756
id:
87578757
description: User ID of the creator.
8758-
type: string
8758+
format: int64
8759+
type: integer
87598760
name:
87608761
description: Name of the creator.
87618762
type: string
@@ -9882,7 +9883,7 @@ components:
98829883
properties:
98839884
facets:
98849885
$ref: '#/components/schemas/SearchSLOResponseDataAttributesFacets'
9885-
slo:
9886+
slos:
98869887
description: SLOs
98879888
items:
98889889
$ref: '#/components/schemas/SearchServiceLevelObjective'
@@ -9963,12 +9964,14 @@ components:
99639964
type: string
99649965
last:
99659966
description: Link to first page.
9967+
nullable: true
99669968
type: string
99679969
next:
99689970
description: Link to the next page.
99699971
type: string
99709972
prev:
99719973
description: Link to previous page.
9974+
nullable: true
99729975
type: string
99739976
self:
99749977
description: Link to current page.
@@ -10077,22 +10080,25 @@ components:
1007710080
- THIRTY_DAYS
1007810081
- NINETY_DAYS
1007910082
SearchServiceLevelObjective:
10083+
description: A service level objective data container.
10084+
properties:
10085+
data:
10086+
$ref: '#/components/schemas/SearchServiceLevelObjectiveData'
10087+
type: object
10088+
SearchServiceLevelObjectiveAttributes:
1008010089
description: 'A service level objective object includes a service level indicator,
1008110090
thresholds
1008210091

10083-
for one or more timeframes, and metadata (`name`, `description`, `tags`, etc.).'
10092+
for one or more timeframes, and metadata (`name`, `description`, and `tags`).'
1008410093
properties:
1008510094
all_tags:
1008610095
description: 'A list of tags associated with this service level objective.
1008710096

10088-
Always included in service level objective responses (but may be empty).
10089-
10090-
Optional in create/update requests.'
10097+
Always included in service level objective responses (but may be empty).'
1009110098
example:
1009210099
- env:prod
1009310100
- app:core
1009410101
items:
10095-
description: A tag to apply to your SLO.
1009610102
type: string
1009710103
type: array
1009810104
created_at:
@@ -10114,18 +10120,16 @@ components:
1011410120
Optional in create/update requests.'
1011510121
nullable: true
1011610122
type: string
10123+
env_tags:
10124+
description: Tags with the `env` tag key.
10125+
items:
10126+
type: string
10127+
type: array
1011710128
groups:
1011810129
description: 'A list of (up to 100) monitor groups that narrow the scope
1011910130
of a monitor service level objective.
1012010131

10121-
10122-
Included in service level objective responses if it is not empty. Optional
10123-
in
10124-
10125-
create/update requests for monitor service level objectives, but may only
10126-
be
10127-
10128-
used when then length of the `monitor_ids` field is one.'
10132+
Included in service level objective responses if it is not empty.'
1012910133
example:
1013010134
- env:prod
1013110135
- role:mysql
@@ -10134,13 +10138,6 @@ components:
1013410138
type: string
1013510139
nullable: true
1013610140
type: array
10137-
id:
10138-
description: 'A unique identifier for the service level objective object.
10139-
10140-
10141-
Always included in service level objective responses.'
10142-
readOnly: true
10143-
type: string
1014410141
modified_at:
1014510142
description: 'Modification timestamp (UNIX time in seconds)
1014610143

@@ -10153,7 +10150,7 @@ components:
1015310150
description: 'A list of monitor ids that defines the scope of a monitor
1015410151
service level
1015510152

10156-
objective. **Required if type is `monitor`**.'
10153+
objective.'
1015710154
items:
1015810155
description: A monitor ID.
1015910156
format: int64
@@ -10171,6 +10168,18 @@ components:
1017110168
type: array
1017210169
query:
1017310170
$ref: '#/components/schemas/SearchSLOQuery'
10171+
service_tags:
10172+
description: Tags with the `service` tag key.
10173+
items:
10174+
type: string
10175+
type: array
10176+
slo_type:
10177+
$ref: '#/components/schemas/SLOType'
10178+
team_tags:
10179+
description: Tags with the `team` tag key.
10180+
items:
10181+
type: string
10182+
type: array
1017410183
thresholds:
1017510184
description: 'The thresholds (timeframes and associated targets) for this
1017610185
service level
@@ -10188,8 +10197,23 @@ components:
1018810197
items:
1018910198
$ref: '#/components/schemas/SearchSLOThreshold'
1019010199
type: array
10200+
type: object
10201+
SearchServiceLevelObjectiveData:
10202+
description: A service level objective ID and attributes.
10203+
properties:
10204+
attributes:
10205+
$ref: '#/components/schemas/SearchServiceLevelObjectiveAttributes'
10206+
id:
10207+
description: 'A unique identifier for the service level objective object.
10208+
10209+
10210+
Always included in service level objective responses.'
10211+
readOnly: true
10212+
type: string
1019110213
type:
10192-
$ref: '#/components/schemas/SLOType'
10214+
description: The type of the object, must be `slo`.
10215+
type: string
10216+
type: object
1019310217
Series:
1019410218
description: 'A metric to submit to Datadog.
1019510219

Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2022-05-18T09:37:24.480Z"
1+
"2022-09-28T09:39:18.171Z"

cassettes/v1/Service-Level-Objectives_139838558/Search-for-SLOs-returns-OK-response_1012169361/recording.har

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"entries": [
1010
{
11-
"_id": "ce1b99125afd22b2b6385ee4470ba88b",
11+
"_id": "c4e48f7ef9a1e661ef7257e9a1929026",
1212
"_order": 0,
1313
"cache": {},
1414
"request": {
@@ -32,17 +32,17 @@
3232
"postData": {
3333
"mimeType": "application/json",
3434
"params": [],
35-
"text": "{\"name\":\"Test-Search_for_SLOs_returns_OK_response-1652866644\",\"query\":{\"denominator\":\"sum:httpservice.hits{!code:3xx}.as_count()\",\"numerator\":\"sum:httpservice.hits{code:2xx}.as_count()\"},\"thresholds\":[{\"target\":95,\"timeframe\":\"7d\",\"warning\":98}],\"type\":\"metric\"}"
35+
"text": "{\"name\":\"Test-Search_for_SLOs_returns_OK_response-1664357958\",\"query\":{\"denominator\":\"sum:httpservice.hits{!code:3xx}.as_count()\",\"numerator\":\"sum:httpservice.hits{code:2xx}.as_count()\"},\"thresholds\":[{\"target\":95,\"timeframe\":\"7d\",\"warning\":98}],\"type\":\"metric\"}"
3636
},
3737
"queryString": [],
3838
"url": "https://api.datadoghq.com/api/v1/slo"
3939
},
4040
"response": {
41-
"bodySize": 566,
41+
"bodySize": 567,
4242
"content": {
4343
"mimeType": "application/json",
44-
"size": 566,
45-
"text": "{\"data\":[{\"description\":\"\",\"monitor_tags\":[],\"creator\":{\"handle\":\"[email protected]\",\"name\":null,\"email\":\"[email protected]\"},\"thresholds\":[{\"warning\":98.0,\"warning_display\":\"98.\",\"target\":95.0,\"target_display\":\"95.\",\"timeframe\":\"7d\"}],\"type_id\":1,\"query\":{\"denominator\":\"sum:httpservice.hits{!code:3xx}.as_count()\",\"numerator\":\"sum:httpservice.hits{code:2xx}.as_count()\"},\"id\":\"5ad30e05604756829cb664b58371aa9c\",\"name\":\"Test-Search_for_SLOs_returns_OK_response-1652866644\",\"created_at\":1652866645,\"tags\":[],\"modified_at\":1652866645,\"type\":\"metric\"}],\"error\":null}"
44+
"size": 567,
45+
"text": "{\"data\":[{\"description\":\"\",\"monitor_tags\":[],\"creator\":{\"handle\":\"[email protected]\",\"name\":null,\"email\":\"[email protected]\"},\"thresholds\":[{\"warning\":98.0,\"warning_display\":\"98.\",\"target\":95.0,\"target_display\":\"95.\",\"timeframe\":\"7d\"}],\"type_id\":1,\"query\":{\"denominator\":\"sum:httpservice.hits{!code:3xx}.as_count()\",\"numerator\":\"sum:httpservice.hits{code:2xx}.as_count()\"},\"id\":\"3e0865c5301c5271a3b4345eb4f14074\",\"name\":\"Test-Search_for_SLOs_returns_OK_response-1664357958\",\"created_at\":1664357958,\"tags\":[],\"modified_at\":1664357958,\"type\":\"metric\"}],\"error\":null}\n"
4646
},
4747
"cookies": [],
4848
"headers": [
@@ -51,17 +51,17 @@
5151
"value": "application/json"
5252
}
5353
],
54-
"headersSize": 662,
54+
"headersSize": 618,
5555
"httpVersion": "HTTP/1.1",
5656
"redirectURL": "",
5757
"status": 200,
5858
"statusText": "OK"
5959
},
60-
"startedDateTime": "2022-05-18T09:37:24.494Z",
61-
"time": 561
60+
"startedDateTime": "2022-09-28T09:39:18.181Z",
61+
"time": 611
6262
},
6363
{
64-
"_id": "68e37d4525d05ac2e5b409f9158488bb",
64+
"_id": "d51df83c1bd72348f0fc1154dbe20f8d",
6565
"_order": 0,
6666
"cache": {},
6767
"request": {
@@ -80,7 +80,7 @@
8080
"queryString": [
8181
{
8282
"name": "query",
83-
"value": "Test-Search_for_SLOs_returns_OK_response-1652866644"
83+
"value": "Test-Search_for_SLOs_returns_OK_response-1664357958"
8484
},
8585
{
8686
"name": "page",
@@ -90,14 +90,14 @@
9090
}
9191
}
9292
],
93-
"url": "https://api.datadoghq.com/api/v1/slo/search?query=Test-Search_for_SLOs_returns_OK_response-1652866644&page%5Bsize%5D=20&page%5Bnumber%5D=0"
93+
"url": "https://api.datadoghq.com/api/v1/slo/search?query=Test-Search_for_SLOs_returns_OK_response-1664357958&page%5Bsize%5D=20&page%5Bnumber%5D=0"
9494
},
9595
"response": {
96-
"bodySize": 1379,
96+
"bodySize": 1323,
9797
"content": {
9898
"mimeType": "application/json",
99-
"size": 1379,
100-
"text": "{\"meta\":{\"pagination\":{\"prev_number\":0,\"number\":0,\"last_number\":0,\"next_number\":1,\"first_number\":0,\"total\":1,\"type\":\"number_size\",\"size\":20}},\"data\":{\"attributes\":{\"facets\":{\"timeframe\":[{\"count\":1,\"name\":\"7d\"}],\"target\":[{\"count\":1,\"name\":95.0}],\"slo_type\":[{\"count\":1,\"name\":1}]},\"slos\":[{\"data\":{\"attributes\":{\"team_tags\":[],\"description\":null,\"creator\":{\"id\":1445416,\"email\":\"[email protected]\",\"name\":null},\"created_at\":1652866645024787,\"env_tags\":[],\"modified_at\":1652866645024787,\"name\":\"Test-Search_for_SLOs_returns_OK_response-1652866644\",\"service_tags\":[],\"groups\":null,\"all_tags\":[],\"thresholds\":[{\"warning\":98.0,\"warning_display\":\"95\",\"target\":95.0,\"target_display\":\"95\",\"timeframe\":\"7d\"}],\"monitor_ids\":null,\"slo_type\":1},\"type\":\"slo\",\"id\":\"5ad30e05604756829cb664b58371aa9c\"}}]},\"type\":\"service_level_objective_search_results\"},\"links\":{\"next\":\"https://api.datadoghq.com/api/v1/slo/search?query=Test-Search_for_SLOs_returns_OK_response-1652866644&page%5Bsize%5D=20&page%5Bnumber%5D=0&page[number]=1&page[size]=20\",\"self\":\"https://api.datadoghq.com/api/v1/slo/search?query=Test-Search_for_SLOs_returns_OK_response-1652866644&page%5Bsize%5D=20&page%5Bnumber%5D=0\",\"prev\":null,\"last\":null,\"first\":\"https://api.datadoghq.com/api/v1/slo/search?query=Test-Search_for_SLOs_returns_OK_response-1652866644&page%5Bsize%5D=20&page%5Bnumber%5D=0&page[number]=0&page[size]=20\"}}"
99+
"size": 1323,
100+
"text": "{\"meta\":{\"pagination\":{\"prev_number\":0,\"number\":0,\"last_number\":0,\"next_number\":1,\"first_number\":0,\"total\":1,\"type\":\"number_size\",\"size\":20}},\"data\":{\"attributes\":{\"slos\":[{\"data\":{\"attributes\":{\"team_tags\":[],\"description\":null,\"creator\":{\"id\":1445416,\"email\":\"[email protected]\",\"name\":null},\"created_at\":1664357958,\"env_tags\":[],\"modified_at\":1664357958,\"name\":\"Test-Search_for_SLOs_returns_OK_response-1664357958\",\"service_tags\":[],\"groups\":null,\"all_tags\":[],\"query\":{\"metrics\":null,\"denominator\":\"sum:httpservice.hits{!code:3xx}.as_count()\",\"numerator\":\"sum:httpservice.hits{code:2xx}.as_count()\"},\"thresholds\":[{\"warning\":98.0,\"warning_display\":\"95\",\"target\":95.0,\"target_display\":\"95\",\"timeframe\":\"7d\"}],\"monitor_ids\":null,\"slo_type\":\"metric\"},\"type\":\"slo\",\"id\":\"3e0865c5301c5271a3b4345eb4f14074\"}}]},\"type\":\"service_level_objective_search_results\"},\"links\":{\"next\":\"https://api.datadoghq.com/api/v1/slo/search?query=Test-Search_for_SLOs_returns_OK_response-1664357958&page[number]=1&page[size]=20\",\"self\":\"https://api.datadoghq.com/api/v1/slo/search?query=Test-Search_for_SLOs_returns_OK_response-1664357958&page%5Bsize%5D=20&page%5Bnumber%5D=0\",\"prev\":null,\"last\":null,\"first\":\"https://api.datadoghq.com/api/v1/slo/search?query=Test-Search_for_SLOs_returns_OK_response-1664357958&page[number]=0&page[size]=20\"}}\n"
101101
},
102102
"cookies": [],
103103
"headers": [
@@ -106,17 +106,17 @@
106106
"value": "application/json"
107107
}
108108
],
109-
"headersSize": 667,
109+
"headersSize": 620,
110110
"httpVersion": "HTTP/1.1",
111111
"redirectURL": "",
112112
"status": 200,
113113
"statusText": "OK"
114114
},
115-
"startedDateTime": "2022-05-18T09:37:25.069Z",
116-
"time": 1198
115+
"startedDateTime": "2022-09-28T09:39:20.823Z",
116+
"time": 480
117117
},
118118
{
119-
"_id": "d76bb8ca433a659b11ca805eb5f6a256",
119+
"_id": "3f20ae90186fea9f9ca374fa44d311a9",
120120
"_order": 0,
121121
"cache": {},
122122
"request": {
@@ -133,14 +133,14 @@
133133
"httpVersion": "HTTP/1.1",
134134
"method": "DELETE",
135135
"queryString": [],
136-
"url": "https://api.datadoghq.com/api/v1/slo/5ad30e05604756829cb664b58371aa9c"
136+
"url": "https://api.datadoghq.com/api/v1/slo/3e0865c5301c5271a3b4345eb4f14074"
137137
},
138138
"response": {
139-
"bodySize": 58,
139+
"bodySize": 59,
140140
"content": {
141141
"mimeType": "application/json",
142-
"size": 58,
143-
"text": "{\"data\":[\"5ad30e05604756829cb664b58371aa9c\"],\"error\":null}"
142+
"size": 59,
143+
"text": "{\"data\":[\"3e0865c5301c5271a3b4345eb4f14074\"],\"error\":null}\n"
144144
},
145145
"cookies": [],
146146
"headers": [
@@ -149,14 +149,14 @@
149149
"value": "application/json"
150150
}
151151
],
152-
"headersSize": 662,
152+
"headersSize": 616,
153153
"httpVersion": "HTTP/1.1",
154154
"redirectURL": "",
155155
"status": 200,
156156
"statusText": "OK"
157157
},
158-
"startedDateTime": "2022-05-18T09:37:26.277Z",
159-
"time": 612
158+
"startedDateTime": "2022-09-28T09:39:21.320Z",
159+
"time": 568
160160
}
161161
],
162162
"pages": [],

features/v1/given.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@
195195
"parameters": [
196196
{
197197
"name": "body",
198-
"value": "{\n \"description\": \"\",\n \"name\": \"GLOBAL_VARIABLE_PAYLOAD\",\n \"tags\": [],\n \"value\": {\n \"secure\": false,\n \"value\": \"\"\n },\n \"parse_test_public_id\": \"{{ synthetics_api_test_multi_step.public_id }}\",\n \"parse_test_options\": {\n \"type\": \"local_variable\",\n \"localVariableName\": \"EXTRACTED_VALUE\"\n }\n}\n"
198+
"value": "{\n \"description\": \"\",\n \"name\": \"GLOBAL_VARIABLE_PAYLOAD_{{ unique_upper_alnum }}\",\n \"tags\": [],\n \"value\": {\n \"secure\": false,\n \"value\": \"\"\n },\n \"parse_test_public_id\": \"{{ synthetics_api_test_multi_step.public_id }}\",\n \"parse_test_options\": {\n \"type\": \"local_variable\",\n \"localVariableName\": \"EXTRACTED_VALUE\"\n }\n}\n"
199199
}
200200
],
201201
"step": "there is a valid \"synthetics_global_variable\" in the system",

features/v1/service_level_objectives.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ Feature: Service Level Objectives
195195
And request contains "page[number]" parameter with value 0
196196
When the request is sent
197197
Then the response status is 200 OK
198+
And the response "data.attributes.slos[0].data.attributes.name" is equal to "{{ slo.data[0].name }}"
198199

199200
@team:DataDog/slo-app
200201
Scenario: Update an SLO returns "Bad Request" response

packages/datadog-api-client-v1/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -679,6 +679,8 @@ export { ScatterPlotWidgetDefinitionRequests } from "./models/ScatterPlotWidgetD
679679
export { ScatterPlotWidgetDefinitionType } from "./models/ScatterPlotWidgetDefinitionType";
680680
export { ScatterplotWidgetFormula } from "./models/ScatterplotWidgetFormula";
681681
export { SearchServiceLevelObjective } from "./models/SearchServiceLevelObjective";
682+
export { SearchServiceLevelObjectiveAttributes } from "./models/SearchServiceLevelObjectiveAttributes";
683+
export { SearchServiceLevelObjectiveData } from "./models/SearchServiceLevelObjectiveData";
682684
export { SearchSLOQuery } from "./models/SearchSLOQuery";
683685
export { SearchSLOResponse } from "./models/SearchSLOResponse";
684686
export { SearchSLOResponseData } from "./models/SearchSLOResponseData";

packages/datadog-api-client-v1/models/ObjectSerializer.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,8 @@ import { SearchSLOResponseMeta } from "./SearchSLOResponseMeta";
315315
import { SearchSLOResponseMetaPage } from "./SearchSLOResponseMetaPage";
316316
import { SearchSLOThreshold } from "./SearchSLOThreshold";
317317
import { SearchServiceLevelObjective } from "./SearchServiceLevelObjective";
318+
import { SearchServiceLevelObjectiveAttributes } from "./SearchServiceLevelObjectiveAttributes";
319+
import { SearchServiceLevelObjectiveData } from "./SearchServiceLevelObjectiveData";
318320
import { Series } from "./Series";
319321
import { ServiceCheck } from "./ServiceCheck";
320322
import { ServiceLevelObjective } from "./ServiceLevelObjective";
@@ -1636,6 +1638,8 @@ const typeMap: { [index: string]: any } = {
16361638
SearchSLOResponseMetaPage: SearchSLOResponseMetaPage,
16371639
SearchSLOThreshold: SearchSLOThreshold,
16381640
SearchServiceLevelObjective: SearchServiceLevelObjective,
1641+
SearchServiceLevelObjectiveAttributes: SearchServiceLevelObjectiveAttributes,
1642+
SearchServiceLevelObjectiveData: SearchServiceLevelObjectiveData,
16391643
Series: Series,
16401644
ServiceCheck: ServiceCheck,
16411645
ServiceLevelObjective: ServiceLevelObjective,

packages/datadog-api-client-v1/models/SLOCreator.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export class SLOCreator {
1717
/**
1818
* User ID of the creator.
1919
*/
20-
"id"?: string;
20+
"id"?: number;
2121
/**
2222
* Name of the creator.
2323
*/
@@ -38,7 +38,8 @@ export class SLOCreator {
3838
},
3939
id: {
4040
baseName: "id",
41-
type: "string",
41+
type: "number",
42+
format: "int64",
4243
},
4344
name: {
4445
baseName: "name",

0 commit comments

Comments
 (0)