Skip to content

Commit 2d9b54b

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Update examples and menu orders for logs indexes (#1235)
Co-authored-by: ci.datadog-api-spec <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
1 parent b331d75 commit 2d9b54b

File tree

4 files changed

+12
-6
lines changed

4 files changed

+12
-6
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-11-14 19:04:01.903894",
8-
"spec_repo_commit": "aaa18608"
7+
"regenerated": "2022-11-14 21:41:46.426303",
8+
"spec_repo_commit": "df75b65d"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2022-11-14 19:04:01.916873",
13-
"spec_repo_commit": "aaa18608"
12+
"regenerated": "2022-11-14 21:41:46.440042",
13+
"spec_repo_commit": "df75b65d"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4841,6 +4841,7 @@ components:
48414841
daily_limit:
48424842
description: The number of log events you can send in this index per day
48434843
before you are rate-limited.
4844+
example: 300000000
48444845
format: int64
48454846
type: integer
48464847
disable_daily_limit:
@@ -4851,6 +4852,7 @@ components:
48514852
omitted, the index''s current
48524853

48534854
`daily_limit` is maintained.'
4855+
example: false
48544856
type: boolean
48554857
exclusion_filters:
48564858
description: 'An array of exclusion objects. The logs are tested against
@@ -4876,6 +4878,7 @@ components:
48764878
for all logs
48774879

48784880
already in this index. It may also affect billing.'
4881+
example: 15
48794882
format: int64
48804883
type: integer
48814884
required:

examples/v1/logs-indexes/UpdateLogsIndex.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
from datadog_api_client.v1.model.logs_index_update_request import LogsIndexUpdateRequest
1111

1212
body = LogsIndexUpdateRequest(
13+
daily_limit=300000000,
14+
disable_daily_limit=False,
1315
exclusion_filters=[
1416
LogsExclusion(
1517
filter=LogsExclusionFilter(
@@ -22,6 +24,7 @@
2224
filter=LogsFilter(
2325
query="source:python",
2426
),
27+
num_retention_days=15,
2528
)
2629

2730
configuration = Configuration()

tests/v1/features/logs_indexes.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@ Feature: Logs Indexes
5353
Scenario: Update an index returns "Invalid Parameter Error" response
5454
Given new "UpdateLogsIndex" request
5555
And request contains "name" parameter from "REPLACE.ME"
56-
And body with value {"exclusion_filters": [{"filter": {"query": "*", "sample_rate": 1.0}, "name": "payment"}], "filter": {"query": "source:python"}}
56+
And body with value {"daily_limit": 300000000, "disable_daily_limit": false, "exclusion_filters": [{"filter": {"query": "*", "sample_rate": 1.0}, "name": "payment"}], "filter": {"query": "source:python"}, "num_retention_days": 15}
5757
When the request is sent
5858
Then the response status is 400 Invalid Parameter Error
5959

6060
@generated @skip @team:DataDog/logs-backend
6161
Scenario: Update an index returns "OK" response
6262
Given new "UpdateLogsIndex" request
6363
And request contains "name" parameter from "REPLACE.ME"
64-
And body with value {"exclusion_filters": [{"filter": {"query": "*", "sample_rate": 1.0}, "name": "payment"}], "filter": {"query": "source:python"}}
64+
And body with value {"daily_limit": 300000000, "disable_daily_limit": false, "exclusion_filters": [{"filter": {"query": "*", "sample_rate": 1.0}, "name": "payment"}], "filter": {"query": "source:python"}, "num_retention_days": 15}
6565
When the request is sent
6666
Then the response status is 200 OK
6767

0 commit comments

Comments
 (0)