Skip to content

Commit 3b3eb96

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 9cbf6566 of spec repo
1 parent d3c9ff3 commit 3b3eb96

File tree

40 files changed

+868
-238
lines changed

40 files changed

+868
-238
lines changed

Diff for: .apigentools-info

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2024-01-04 15:18:01.735783",
8-
"spec_repo_commit": "e7cfa56f"
7+
"regenerated": "2024-01-05 15:09:35.404118",
8+
"spec_repo_commit": "9cbf6566"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-01-04 15:18:01.751959",
13-
"spec_repo_commit": "e7cfa56f"
12+
"regenerated": "2024-01-05 15:09:35.419656",
13+
"spec_repo_commit": "9cbf6566"
1414
}
1515
}
1616
}

Diff for: .generator/schemas/v1/openapi.yaml

+136
Original file line numberDiff line numberDiff line change
@@ -10244,6 +10244,13 @@ components:
1024410244
nullable: true
1024510245
type: string
1024610246
type: object
10247+
SLODataSourceQueryDefinition:
10248+
description: A formula and function query.
10249+
example:
10250+
data_source: metrics
10251+
query: sum:trace.servlet.request.hits{*} by {env}.as_count()
10252+
oneOf:
10253+
- $ref: '#/components/schemas/FormulaAndFunctionMetricQueryDefinition'
1024710254
SLODeleteResponse:
1024810255
description: A response list of all service level objective deleted.
1024910256
properties:
@@ -10287,6 +10294,20 @@ components:
1028710294
- THIRTY_DAYS
1028810295
- NINETY_DAYS
1028910296
- ALL
10297+
SLOFormula:
10298+
description: A formula that specifies how to combine the results of multiple
10299+
queries.
10300+
example:
10301+
formula: query1 - default_zero(query2)
10302+
properties:
10303+
formula:
10304+
description: The formula string, which is an expression involving named
10305+
queries.
10306+
example: query1 - default_zero(query2)
10307+
type: string
10308+
required:
10309+
- formula
10310+
type: object
1029010311
SLOHistoryMetrics:
1029110312
description: 'A `metric` based SLO history response.
1029210313

@@ -11016,6 +11037,8 @@ components:
1101611037
type: string
1101711038
query:
1101811039
$ref: '#/components/schemas/ServiceLevelObjectiveQuery'
11040+
sli_specification:
11041+
$ref: '#/components/schemas/SLOSliSpec'
1101911042
tags:
1102011043
description: 'A list of tags associated with this service level objective.
1102111044

@@ -11070,6 +11093,11 @@ components:
1107011093
format: double
1107111094
type: number
1107211095
type: object
11096+
SLOSliSpec:
11097+
description: A generic SLI specification. This is currently used for time-slice
11098+
SLOs only.
11099+
oneOf:
11100+
- $ref: '#/components/schemas/SLOTimeSliceSpec'
1107311101
SLOState:
1107411102
description: State of the SLO.
1107511103
enum:
@@ -11170,6 +11198,106 @@ components:
1117011198
- timeframe
1117111199
- target
1117211200
type: object
11201+
SLOTimeSliceComparator:
11202+
description: The comparator used to compare the SLI value to the threshold.
11203+
enum:
11204+
- '>'
11205+
- '>='
11206+
- <
11207+
- <=
11208+
example: '>'
11209+
type: string
11210+
x-enum-varnames:
11211+
- GREATER
11212+
- GREATER_EQUAL
11213+
- LESS
11214+
- LESS_EQUAL
11215+
SLOTimeSliceCondition:
11216+
description: 'The time-slice condition, composed of 3 parts: 1. the metric timeseries
11217+
query, 2. the comparator,
11218+
11219+
and 3. the threshold.'
11220+
example:
11221+
comparator: <
11222+
query:
11223+
formulas:
11224+
- formula: query2/query1
11225+
queries:
11226+
- data_source: metrics
11227+
name: query1
11228+
query: sum:trace.servlet.request.hits{*} by {env}.as_count()
11229+
- data_source: metrics
11230+
name: query1
11231+
query: sum:trace.servlet.request.errors{*} by {env}.as_count()
11232+
threshold: 5
11233+
properties:
11234+
comparator:
11235+
$ref: '#/components/schemas/SLOTimeSliceComparator'
11236+
query:
11237+
$ref: '#/components/schemas/SLOTimeSliceQuery'
11238+
threshold:
11239+
description: The threshold value to which each SLI value will be compared.
11240+
example: 5
11241+
format: double
11242+
type: number
11243+
required:
11244+
- comparator
11245+
- threshold
11246+
- query
11247+
type: object
11248+
SLOTimeSliceQuery:
11249+
description: The queries and formula used to calculate the SLI value.
11250+
example:
11251+
formulas:
11252+
- formula: query2/query1
11253+
queries:
11254+
- data_source: metrics
11255+
name: query1
11256+
query: sum:trace.servlet.request.hits{*} by {env}.as_count()
11257+
- data_source: metrics
11258+
name: query1
11259+
query: sum:trace.servlet.request.errors{*} by {env}.as_count()
11260+
properties:
11261+
formulas:
11262+
description: A list that contains exactly one formula, as only a single
11263+
formula may be used in a time-slice SLO.
11264+
items:
11265+
$ref: '#/components/schemas/SLOFormula'
11266+
maxItems: 1
11267+
minItems: 1
11268+
type: array
11269+
queries:
11270+
description: A list of queries that are used to calculate the SLI value.
11271+
items:
11272+
$ref: '#/components/schemas/SLODataSourceQueryDefinition'
11273+
type: array
11274+
required:
11275+
- formulas
11276+
- queries
11277+
type: object
11278+
SLOTimeSliceSpec:
11279+
additionalProperties: false
11280+
description: A time-slice SLI specification.
11281+
example:
11282+
time_slice:
11283+
comparator: <
11284+
query:
11285+
formulas:
11286+
- formula: query2/query1
11287+
queries:
11288+
- data_source: metrics
11289+
name: query1
11290+
query: sum:trace.servlet.request.hits{*} by {env}.as_count()
11291+
- data_source: metrics
11292+
name: query1
11293+
query: sum:trace.servlet.request.errors{*} by {env}.as_count()
11294+
threshold: 5
11295+
properties:
11296+
time_slice:
11297+
$ref: '#/components/schemas/SLOTimeSliceCondition'
11298+
required:
11299+
- time_slice
11300+
type: object
1117311301
SLOTimeframe:
1117411302
description: The SLO time window options.
1117511303
enum:
@@ -11189,11 +11317,13 @@ components:
1118911317
enum:
1119011318
- metric
1119111319
- monitor
11320+
- time_slice
1119211321
example: metric
1119311322
type: string
1119411323
x-enum-varnames:
1119511324
- METRIC
1119611325
- MONITOR
11326+
- TIME_SLICE
1119711327
SLOTypeNumeric:
1119811328
description: 'A numeric representation of the type of the service level objective
1119911329
(`0` for
@@ -11204,12 +11334,14 @@ components:
1120411334
enum:
1120511335
- 0
1120611336
- 1
11337+
- 2
1120711338
example: 0
1120811339
format: int32
1120911340
type: integer
1121011341
x-enum-varnames:
1121111342
- MONITOR
1121211343
- METRIC
11344+
- TIME_SLICE
1121311345
SLOWidgetDefinition:
1121411346
description: Use the SLO and uptime widget to track your SLOs (Service Level
1121511347
Objectives) and uptime on screenboards and timeboards.
@@ -12019,6 +12151,8 @@ components:
1201912151
type: string
1202012152
query:
1202112153
$ref: '#/components/schemas/ServiceLevelObjectiveQuery'
12154+
sli_specification:
12155+
$ref: '#/components/schemas/SLOSliSpec'
1202212156
tags:
1202312157
description: 'A list of tags associated with this service level objective.
1202412158

@@ -12148,6 +12282,8 @@ components:
1214812282
type: string
1214912283
query:
1215012284
$ref: '#/components/schemas/ServiceLevelObjectiveQuery'
12285+
sli_specification:
12286+
$ref: '#/components/schemas/SLOSliSpec'
1215112287
tags:
1215212288
description: 'A list of tags associated with this service level objective.
1215312289

Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2024-01-03T22:54:44.816Z"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
{
2+
"log": {
3+
"_recordingName": "Service Level Objectives/Create a time-slice SLO object returns \"OK\" response",
4+
"creator": {
5+
"comment": "persister:fs",
6+
"name": "Polly.JS",
7+
"version": "6.0.5"
8+
},
9+
"entries": [
10+
{
11+
"_id": "7a8c1da237f7afdb4d5848fd008284c2",
12+
"_order": 0,
13+
"cache": {},
14+
"request": {
15+
"bodySize": 518,
16+
"cookies": [],
17+
"headers": [
18+
{
19+
"_fromType": "array",
20+
"name": "accept",
21+
"value": "application/json"
22+
},
23+
{
24+
"_fromType": "array",
25+
"name": "content-type",
26+
"value": "application/json"
27+
}
28+
],
29+
"headersSize": 547,
30+
"httpVersion": "HTTP/1.1",
31+
"method": "POST",
32+
"postData": {
33+
"mimeType": "application/json",
34+
"params": [],
35+
"text": "{\"description\":\"string\",\"name\":\"Test-Create_a_time_slice_SLO_object_returns_OK_response-1704322484\",\"sli_specification\":{\"time_slice\":{\"comparator\":\">\",\"query\":{\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"trace.servlet.request{env:prod}\"}]},\"threshold\":5}},\"tags\":[\"env:prod\"],\"target_threshold\":97,\"thresholds\":[{\"target\":97,\"target_display\":\"97.0\",\"timeframe\":\"7d\",\"warning\":98,\"warning_display\":\"98.0\"}],\"timeframe\":\"7d\",\"type\":\"time_slice\",\"warning_threshold\":98}"
36+
},
37+
"queryString": [],
38+
"url": "https://api.datadoghq.com/api/v1/slo"
39+
},
40+
"response": {
41+
"bodySize": 776,
42+
"content": {
43+
"mimeType": "application/json",
44+
"size": 776,
45+
"text": "{\"data\":[{\"id\":\"776b80141eda520bbfae33e897849f61\",\"name\":\"Test-Create_a_time_slice_SLO_object_returns_OK_response-1704322484\",\"tags\":[\"env:prod\"],\"monitor_tags\":[],\"thresholds\":[{\"timeframe\":\"7d\",\"target\":97.0,\"target_display\":\"97.\",\"warning\":98.0,\"warning_display\":\"98.\"}],\"type\":\"time_slice\",\"type_id\":2,\"description\":\"string\",\"timeframe\":\"7d\",\"warning_threshold\":98,\"target_threshold\":97,\"creator\":{\"name\":null,\"handle\":\"frog@datadoghq.com\",\"email\":\"frog@datadoghq.com\"},\"created_at\":1704322485,\"modified_at\":1704322485,\"sli_specification\":{\"time_slice\":{\"comparator\":\">\",\"query\":{\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"trace.servlet.request{env:prod}\"}]},\"threshold\":5,\"query_interval_seconds\":300}}}],\"error\":null}\n"
46+
},
47+
"cookies": [],
48+
"headers": [
49+
{
50+
"name": "content-type",
51+
"value": "application/json"
52+
}
53+
],
54+
"headersSize": 646,
55+
"httpVersion": "HTTP/1.1",
56+
"redirectURL": "",
57+
"status": 200,
58+
"statusText": "OK"
59+
},
60+
"startedDateTime": "2024-01-03T22:54:44.827Z",
61+
"time": 271
62+
},
63+
{
64+
"_id": "b806cccf0ce584eb670857aacdecb193",
65+
"_order": 0,
66+
"cache": {},
67+
"request": {
68+
"bodySize": 0,
69+
"cookies": [],
70+
"headers": [
71+
{
72+
"_fromType": "array",
73+
"name": "accept",
74+
"value": "application/json"
75+
}
76+
],
77+
"headersSize": 529,
78+
"httpVersion": "HTTP/1.1",
79+
"method": "DELETE",
80+
"queryString": [],
81+
"url": "https://api.datadoghq.com/api/v1/slo/776b80141eda520bbfae33e897849f61"
82+
},
83+
"response": {
84+
"bodySize": 59,
85+
"content": {
86+
"mimeType": "application/json",
87+
"size": 59,
88+
"text": "{\"data\":[\"776b80141eda520bbfae33e897849f61\"],\"error\":null}\n"
89+
},
90+
"cookies": [],
91+
"headers": [
92+
{
93+
"name": "content-type",
94+
"value": "application/json"
95+
}
96+
],
97+
"headersSize": 643,
98+
"httpVersion": "HTTP/1.1",
99+
"redirectURL": "",
100+
"status": 200,
101+
"statusText": "OK"
102+
},
103+
"startedDateTime": "2024-01-03T22:54:45.109Z",
104+
"time": 192
105+
}
106+
],
107+
"pages": [],
108+
"version": "1.2"
109+
}
110+
}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2022-01-06T00:51:10.351Z"
1+
"2024-01-03T22:54:45.312Z"

Diff for: cassettes/v1/Service-Level-Objectives_139838558/Create-an-SLO-object-returns-Bad-Request-response_700291761/recording.har

+8-8
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"entries": [
1010
{
11-
"_id": "184184954b3d40c7a149c2aff7a88def",
11+
"_id": "a37088f3db7180a233197ffa1c957885",
1212
"_order": 0,
1313
"cache": {},
1414
"request": {
@@ -26,22 +26,22 @@
2626
"value": "application/json"
2727
}
2828
],
29-
"headersSize": 462,
29+
"headersSize": 547,
3030
"httpVersion": "HTTP/1.1",
3131
"method": "POST",
3232
"postData": {
3333
"mimeType": "application/json",
3434
"params": [],
35-
"text": "{\"name\":\"Test-Create_an_SLO_object_returns_Bad_Request_response-1641430270\",\"thresholds\":[{\"target\":95,\"target_display\":\"95.0\",\"timeframe\":\"7d\",\"warning\":98,\"warning_display\":\"98.0\"}],\"type\":\"monitor\"}"
35+
"text": "{\"name\":\"Test-Create_an_SLO_object_returns_Bad_Request_response-1704322485\",\"thresholds\":[{\"target\":95,\"target_display\":\"95.0\",\"timeframe\":\"7d\",\"warning\":98,\"warning_display\":\"98.0\"}],\"type\":\"monitor\"}"
3636
},
3737
"queryString": [],
3838
"url": "https://api.datadoghq.com/api/v1/slo"
3939
},
4040
"response": {
41-
"bodySize": 57,
41+
"bodySize": 56,
4242
"content": {
4343
"mimeType": "application/json",
44-
"size": 57,
44+
"size": 56,
4545
"text": "{\"errors\":[\"Invalid payload: must specify monitor_ids\"]}"
4646
},
4747
"cookies": [],
@@ -51,14 +51,14 @@
5151
"value": "application/json"
5252
}
5353
],
54-
"headersSize": 511,
54+
"headersSize": 645,
5555
"httpVersion": "HTTP/1.1",
5656
"redirectURL": "",
5757
"status": 400,
5858
"statusText": "Bad Request"
5959
},
60-
"startedDateTime": "2022-01-06T00:51:10.354Z",
61-
"time": 195
60+
"startedDateTime": "2024-01-03T22:54:45.317Z",
61+
"time": 98
6262
}
6363
],
6464
"pages": [],

0 commit comments

Comments
 (0)