Skip to content

Commit 0415126

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-specjirikuncar
authored
Regenerate client from commit 7d1e126 of spec repo (#919)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com> Co-authored-by: Jiri Kuncar <jiri.kuncar@datadoghq.com>
1 parent f495218 commit 0415126

File tree

5 files changed

+26
-26
lines changed

5 files changed

+26
-26
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.4.1.dev11",
7-
"regenerated": "2021-07-30 16:58:08.560905",
8-
"spec_repo_commit": "daf910e"
7+
"regenerated": "2021-08-02 07:14:56.222498",
8+
"spec_repo_commit": "7d1e126"
99
},
1010
"v2": {
1111
"apigentools_version": "1.4.1.dev11",
12-
"regenerated": "2021-07-30 16:58:45.724888",
13-
"spec_repo_commit": "daf910e"
12+
"regenerated": "2021-08-02 07:15:39.475985",
13+
"spec_repo_commit": "7d1e126"
1414
}
1515
}
1616
}

api_docs/v1/LogsExclusionFilter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Exclusion filter is defined by a query, a sampling rule, and a active/inactive t
99
Name | Type | Description | Notes
1010
------------ | ------------- | ------------- | -------------
1111
**query** | **String** | Default query is &#x60;*&#x60;, meaning all logs flowing in the index would be excluded. Scope down exclusion filter to only a subset of logs with a log query. | [optional]
12-
**sampleRate** | **Double** | Sample rate to apply to logs going through this exclusion filter, a value of 1 will exclude all logs matching the query. |
12+
**sampleRate** | **Double** | Sample rate to apply to logs going through this exclusion filter, a value of 1.0 excludes all logs matching the query. |
1313

1414

1515

src/main/java/com/datadog/api/v1/client/model/LogsExclusionFilter.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,17 +75,17 @@ public LogsExclusionFilter sampleRate(Double sampleRate) {
7575
}
7676

7777
/**
78-
* Sample rate to apply to logs going through this exclusion filter, a value of 1 will exclude all
78+
* Sample rate to apply to logs going through this exclusion filter, a value of 1.0 excludes all
7979
* logs matching the query.
8080
*
8181
* @return sampleRate
8282
*/
8383
@ApiModelProperty(
84-
example = "1",
84+
example = "1.0",
8585
required = true,
8686
value =
87-
"Sample rate to apply to logs going through this exclusion filter, a value of 1 will"
88-
+ " exclude all logs matching the query.")
87+
"Sample rate to apply to logs going through this exclusion filter, a value of 1.0"
88+
+ " excludes all logs matching the query.")
8989
@JsonProperty(JSON_PROPERTY_SAMPLE_RATE)
9090
@JsonInclude(value = JsonInclude.Include.ALWAYS)
9191
public Double getSampleRate() {

src/main/java/com/datadog/api/v1/openapi.yaml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14411,7 +14411,7 @@ components:
1441114411
API.
1441214412
example:
1441314413
filter:
14414-
sample_rate: 1
14414+
sample_rate: 1.0
1441514415
query: '*'
1441614416
is_enabled: true
1441714417
name: payment
@@ -14432,7 +14432,7 @@ components:
1443214432
description: Exclusion filter is defined by a query, a sampling rule, and a
1443314433
active/inactive toggle.
1443414434
example:
14435-
sample_rate: 1
14435+
sample_rate: 1.0
1443614436
query: '*'
1443714437
properties:
1443814438
query:
@@ -14444,8 +14444,8 @@ components:
1444414444
sample_rate:
1444514445
description: |-
1444614446
Sample rate to apply to logs going through this exclusion filter,
14447-
a value of 1 will exclude all logs matching the query.
14448-
example: 1
14447+
a value of 1.0 excludes all logs matching the query.
14448+
example: 1.0
1444914449
format: double
1445014450
type: number
1445114451
required:
@@ -14576,12 +14576,12 @@ components:
1457614576
query: source:python
1457714577
exclusion_filters:
1457814578
- filter:
14579-
sample_rate: 1
14579+
sample_rate: 1.0
1458014580
query: '*'
1458114581
is_enabled: true
1458214582
name: payment
1458314583
- filter:
14584-
sample_rate: 1
14584+
sample_rate: 1.0
1458514585
query: '*'
1458614586
is_enabled: true
1458714587
name: payment
@@ -14636,12 +14636,12 @@ components:
1463614636
query: source:python
1463714637
exclusion_filters:
1463814638
- filter:
14639-
sample_rate: 1
14639+
sample_rate: 1.0
1464014640
query: '*'
1464114641
is_enabled: true
1464214642
name: payment
1464314643
- filter:
14644-
sample_rate: 1
14644+
sample_rate: 1.0
1464514645
query: '*'
1464614646
is_enabled: true
1464714647
name: payment
@@ -14653,12 +14653,12 @@ components:
1465314653
query: source:python
1465414654
exclusion_filters:
1465514655
- filter:
14656-
sample_rate: 1
14656+
sample_rate: 1.0
1465714657
query: '*'
1465814658
is_enabled: true
1465914659
name: payment
1466014660
- filter:
14661-
sample_rate: 1
14661+
sample_rate: 1.0
1466214662
query: '*'
1466314663
is_enabled: true
1466414664
name: payment
@@ -14680,12 +14680,12 @@ components:
1468014680
query: source:python
1468114681
exclusion_filters:
1468214682
- filter:
14683-
sample_rate: 1
14683+
sample_rate: 1.0
1468414684
query: '*'
1468514685
is_enabled: true
1468614686
name: payment
1468714687
- filter:
14688-
sample_rate: 1
14688+
sample_rate: 1.0
1468914689
query: '*'
1469014690
is_enabled: true
1469114691
name: payment

src/test/resources/com/datadog/api/v1/client/api/logs_indexes.feature

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ Feature: Logs Indexes
1212
@generated @skip
1313
Scenario: Create an index returns "Invalid Parameter Error" response
1414
Given new "CreateLogsIndex" request
15-
And body with value {"daily_limit": 300000000, "exclusion_filters": [{"filter": {"query": "*", "sample_rate": 1}, "is_enabled": null, "name": "payment"}], "filter": {"query": "source:python"}, "name": "main", "num_retention_days": 15}
15+
And body with value {"daily_limit": 300000000, "exclusion_filters": [{"filter": {"query": "*", "sample_rate": 1.0}, "is_enabled": null, "name": "payment"}], "filter": {"query": "source:python"}, "name": "main", "num_retention_days": 15}
1616
When the request is sent
1717
Then the response status is 400 Invalid Parameter Error
1818

1919
@generated @skip
2020
Scenario: Create an index returns "OK" response
2121
Given new "CreateLogsIndex" request
22-
And body with value {"daily_limit": 300000000, "exclusion_filters": [{"filter": {"query": "*", "sample_rate": 1}, "is_enabled": null, "name": "payment"}], "filter": {"query": "source:python"}, "name": "main", "num_retention_days": 15}
22+
And body with value {"daily_limit": 300000000, "exclusion_filters": [{"filter": {"query": "*", "sample_rate": 1.0}, "is_enabled": null, "name": "payment"}], "filter": {"query": "source:python"}, "name": "main", "num_retention_days": 15}
2323
When the request is sent
2424
Then the response status is 200 OK
2525

@@ -53,23 +53,23 @@ 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 "<PATH>"
56-
And body with value {"daily_limit": null, "disable_daily_limit": null, "exclusion_filters": [{"filter": {"query": "*", "sample_rate": 1}, "is_enabled": null, "name": "payment"}], "filter": {"query": "source:python"}, "num_retention_days": null}
56+
And body with value {"daily_limit": null, "disable_daily_limit": null, "exclusion_filters": [{"filter": {"query": "*", "sample_rate": 1.0}, "is_enabled": null, "name": "payment"}], "filter": {"query": "source:python"}, "num_retention_days": null}
5757
When the request is sent
5858
Then the response status is 400 Invalid Parameter Error
5959

6060
@generated @skip
6161
Scenario: Update an index returns "OK" response
6262
Given new "UpdateLogsIndex" request
6363
And request contains "name" parameter from "<PATH>"
64-
And body with value {"daily_limit": null, "disable_daily_limit": null, "exclusion_filters": [{"filter": {"query": "*", "sample_rate": 1}, "is_enabled": null, "name": "payment"}], "filter": {"query": "source:python"}, "num_retention_days": null}
64+
And body with value {"daily_limit": null, "disable_daily_limit": null, "exclusion_filters": [{"filter": {"query": "*", "sample_rate": 1.0}, "is_enabled": null, "name": "payment"}], "filter": {"query": "source:python"}, "num_retention_days": null}
6565
When the request is sent
6666
Then the response status is 200 OK
6767

6868
@generated @skip
6969
Scenario: Update an index returns "Too Many Requests" response
7070
Given new "UpdateLogsIndex" request
7171
And request contains "name" parameter from "<PATH>"
72-
And body with value {"daily_limit": null, "disable_daily_limit": null, "exclusion_filters": [{"filter": {"query": "*", "sample_rate": 1}, "is_enabled": null, "name": "payment"}], "filter": {"query": "source:python"}, "num_retention_days": null}
72+
And body with value {"daily_limit": null, "disable_daily_limit": null, "exclusion_filters": [{"filter": {"query": "*", "sample_rate": 1.0}, "is_enabled": null, "name": "payment"}], "filter": {"query": "source:python"}, "num_retention_days": null}
7373
When the request is sent
7474
Then the response status is 429 Too Many Requests
7575

0 commit comments

Comments
 (0)