Skip to content

Commit e8c8462

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Update examples and menu orders for logs indexes (#909)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 174513f commit e8c8462

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:03:59.473851",
8-
"spec_repo_commit": "aaa18608"
7+
"regenerated": "2022-11-14 21:41:42.642223",
8+
"spec_repo_commit": "df75b65d"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2022-11-14 19:03:59.486021",
13-
"spec_repo_commit": "aaa18608"
12+
"regenerated": "2022-11-14 21:41:42.653634",
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.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ const apiInstance = new v1.LogsIndexesApi(configuration);
99

1010
const params: v1.LogsIndexesApiUpdateLogsIndexRequest = {
1111
body: {
12+
dailyLimit: 300000000,
13+
disableDailyLimit: false,
1214
exclusionFilters: [
1315
{
1416
filter: {
@@ -21,6 +23,7 @@ const params: v1.LogsIndexesApiUpdateLogsIndexRequest = {
2123
filter: {
2224
query: "source:python",
2325
},
26+
numRetentionDays: 15,
2427
},
2528
name: "name",
2629
};

features/v1/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)