Skip to content

Commit 2a8c321

Browse files
Merge master into datadog-api-spec/test/bruce.tu/DBNBK-116-Extend-Widget.TIME-schema
2 parents 062cfd2 + baebe4d commit 2a8c321

File tree

54 files changed

+382
-168
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+382
-168
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.6",
7-
"regenerated": "2024-08-19 19:42:32.224891",
8-
"spec_repo_commit": "e0cd2a66"
7+
"regenerated": "2024-08-27 12:12:27.969266",
8+
"spec_repo_commit": "09daef2e"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-08-19 19:42:32.242391",
13-
"spec_repo_commit": "e0cd2a66"
12+
"regenerated": "2024-08-27 12:12:27.987178",
13+
"spec_repo_commit": "09daef2e"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 71 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ components:
3939
properties:
4040
errors:
4141
description: Array of errors returned by the API.
42+
example:
43+
- Bad Request
4244
items:
4345
description: Error description.
4446
example: Bad Request
@@ -1683,6 +1685,10 @@ components:
16831685
description: Points relating to the distribution point metric. All points
16841686
must be tuples with timestamp and a list of values (cannot be a string).
16851687
Timestamps should be in POSIX time in seconds.
1688+
example:
1689+
- - 1575317847.0
1690+
- - 0.5
1691+
- 1.0
16861692
items:
16871693
$ref: '#/components/schemas/DistributionPoint'
16881694
type: array
@@ -4730,11 +4736,11 @@ components:
47304736
$ref: '#/components/schemas/WidgetEventSize'
47314737
group_by:
47324738
description: Group by configuration for the List Stream Widget. Group by
4733-
can be used only with logs_pattern_stream (up to 3 items) or logs_transaction_stream
4739+
can be used only with logs_pattern_stream (up to 4 items) or logs_transaction_stream
47344740
(one group by item is required) list stream source.
47354741
items:
47364742
$ref: '#/components/schemas/ListStreamGroupByItems'
4737-
maxItems: 3
4743+
maxItems: 4
47384744
type: array
47394745
indexes:
47404746
description: List of indexes.
@@ -5570,11 +5576,27 @@ components:
55705576
description: The name of the index.
55715577
example: main
55725578
type: string
5579+
num_flex_logs_retention_days:
5580+
description: 'The total number of days logs are stored in Standard and Flex
5581+
Tier before being deleted from the index.
5582+
5583+
If Standard Tier is enabled on this index, logs are first retained in
5584+
Standard Tier for the number of days specified through `num_retention_days`,
5585+
5586+
and then stored in Flex Tier until the number of days specified in `num_flex_logs_retention_days`
5587+
is reached.
5588+
5589+
The available values depend on retention plans specified in your organization''s
5590+
contract/subscriptions.'
5591+
example: 360
5592+
format: int64
5593+
type: integer
55735594
num_retention_days:
5574-
description: 'The number of days before logs are deleted from this index.
5575-
Available values depend on
5595+
description: 'The number of days logs are stored in Standard Tier before
5596+
aging into the Flex Tier or being deleted from the index.
55765597

5577-
retention plans specified in your organization''s contract/subscriptions.'
5598+
The available values depend on retention plans specified in your organization''s
5599+
contract/subscriptions.'
55785600
example: 15
55795601
format: int64
55805602
type: integer
@@ -5633,17 +5655,35 @@ components:
56335655
type: array
56345656
filter:
56355657
$ref: '#/components/schemas/LogsFilter'
5636-
num_retention_days:
5637-
description: 'The number of days before logs are deleted from this index.
5638-
Available values depend on
5658+
num_flex_logs_retention_days:
5659+
description: 'The total number of days logs are stored in Standard and Flex
5660+
Tier before being deleted from the index.
56395661

5640-
retention plans specified in your organization''s contract/subscriptions.
5662+
If Standard Tier is enabled on this index, logs are first retained in
5663+
Standard Tier for the number of days specified through `num_retention_days`,
56415664

5665+
and then stored in Flex Tier until the number of days specified in `num_flex_logs_retention_days`
5666+
is reached.
56425667

5643-
**Note:** Changing the retention for an index adjusts the length of retention
5644-
for all logs
5668+
The available values depend on retention plans specified in your organization''s
5669+
contract/subscriptions.
56455670

5646-
already in this index. It may also affect billing.'
5671+
5672+
**Note**: Changing this value affects all logs already in this index.
5673+
It may also affect billing.'
5674+
example: 360
5675+
format: int64
5676+
type: integer
5677+
num_retention_days:
5678+
description: 'The number of days logs are stored in Standard Tier before
5679+
aging into the Flex Tier or being deleted from the index.
5680+
5681+
The available values depend on retention plans specified in your organization''s
5682+
contract/subscriptions.
5683+
5684+
5685+
**Note**: Changing this value affects all logs already in this index.
5686+
It may also affect billing.'
56475687
example: 15
56485688
format: int64
56495689
type: integer
@@ -9313,13 +9353,17 @@ components:
93139353
properties:
93149354
keys:
93159355
description: Keys to split on.
9356+
example:
9357+
- environment
93169358
items:
93179359
description: A key to split on.
93189360
example: environment
93199361
type: string
93209362
type: array
93219363
tags:
93229364
description: Tags to split on.
9365+
example:
9366+
- environment:staging
93239367
items:
93249368
description: A tag to split on.
93259369
example: environment:staging
@@ -10532,6 +10576,7 @@ components:
1053210576
description: A formula and function query.
1053310577
example:
1053410578
data_source: metrics
10579+
name: query1
1053510580
query: sum:trace.servlet.request.hits{*} by {env}.as_count()
1053610581
oneOf:
1053710582
- $ref: '#/components/schemas/FormulaAndFunctionMetricQueryDefinition'
@@ -11596,13 +11641,19 @@ components:
1159611641
formulas:
1159711642
description: A list that contains exactly one formula, as only a single
1159811643
formula may be used in a time-slice SLO.
11644+
example:
11645+
- formula: query1 - default_zero(query2)
1159911646
items:
1160011647
$ref: '#/components/schemas/SLOFormula'
1160111648
maxItems: 1
1160211649
minItems: 1
1160311650
type: array
1160411651
queries:
1160511652
description: A list of queries that are used to calculate the SLI value.
11653+
example:
11654+
- data_source: metrics
11655+
name: query1
11656+
query: sum:trace.servlet.request.hits{*} by {env}.as_count()
1160611657
items:
1160711658
$ref: '#/components/schemas/SLODataSourceQueryDefinition'
1160811659
type: array
@@ -12317,6 +12368,9 @@ components:
1231712368
timestamp and a scalar value (cannot be a string). Timestamps should be
1231812369
in POSIX time in seconds, and cannot be more than ten minutes in the future
1231912370
or more than one hour in the past.
12371+
example:
12372+
- - 1575317847.0
12373+
- 0.5
1232012374
items:
1232112375
$ref: '#/components/schemas/Point'
1232212376
type: array
@@ -12843,7 +12897,6 @@ components:
1284312897
items:
1284412898
description: Email address that can receive an invitation to access the
1284512899
shared dashboard.
12846-
format: email
1284712900
type: string
1284812901
nullable: true
1284912902
type: array
@@ -13028,7 +13081,6 @@ components:
1302813081
items:
1302913082
description: Email address that can receive an invitation to access the
1303013083
shared dashboard.
13031-
format: email
1303213084
type: string
1303313085
nullable: true
1303413086
type: array
@@ -13164,6 +13216,8 @@ components:
1316413216
$ref: '#/components/schemas/SplitSort'
1316513217
split_dimensions:
1316613218
description: The dimension(s) on which to split the graph
13219+
example:
13220+
- one_graph_per: service
1316713221
items:
1316813222
$ref: '#/components/schemas/SplitDimension'
1316913223
maxItems: 1
@@ -16217,10 +16271,7 @@ components:
1621716271
type: string
1621816272
dnsServerPort:
1621916273
description: DNS server port to use for DNS tests.
16220-
format: int32
16221-
maximum: 65535
16222-
minimum: 1
16223-
type: integer
16274+
type: string
1622416275
files:
1622516276
description: Files to be used as part of the request in the test.
1622616277
items:
@@ -16260,8 +16311,7 @@ components:
1626016311
type: boolean
1626116312
port:
1626216313
description: Port to use when performing the test.
16263-
format: int64
16264-
type: integer
16314+
type: string
1626516315
proxy:
1626616316
$ref: '#/components/schemas/SyntheticsTestRequestProxy'
1626716317
query:
@@ -21162,12 +21212,10 @@ components:
2116221212
email:
2116321213
description: The new email of the user.
2116421214
21165-
format: email
2116621215
type: string
2116721216
handle:
2116821217
description: The user handle, must be a valid email.
2116921218
21170-
format: email
2117121219
type: string
2117221220
icon:
2117321221
description: Gravatar icon associated to the user.
@@ -24356,6 +24404,7 @@ paths:
2435624404
name: metric_query
2435724405
schema:
2435824406
type: string
24407+
x-docs-curl-required: true
2435924408
- description: The POSIX timestamp of the start of the query in seconds.
2436024409
in: query
2436124410
name: start
@@ -33854,7 +33903,6 @@ paths:
3385433903
required: true
3385533904
schema:
3385633905
33857-
format: email
3385833906
type: string
3385933907
responses:
3386033908
'200':
@@ -33896,7 +33944,6 @@ paths:
3389633944
required: true
3389733945
schema:
3389833946
33899-
format: email
3390033947
type: string
3390133948
responses:
3390233949
'200':
@@ -33935,7 +33982,6 @@ paths:
3393533982
required: true
3393633983
schema:
3393733984
33938-
format: email
3393933985
type: string
3394033986
requestBody:
3394133987
content:

0 commit comments

Comments
 (0)