Skip to content

Commit fa03484

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 06c7795 of spec repo (#977)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
1 parent 04ad143 commit fa03484

File tree

7 files changed

+72
-15
lines changed

7 files changed

+72
-15
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.5.1.dev2",
7-
"regenerated": "2021-10-08 15:41:44.665859",
8-
"spec_repo_commit": "9a4b94d"
7+
"regenerated": "2021-10-12 09:01:47.461136",
8+
"spec_repo_commit": "06c7795"
99
},
1010
"v2": {
1111
"apigentools_version": "1.5.1.dev2",
12-
"regenerated": "2021-10-08 15:42:32.460789",
13-
"spec_repo_commit": "9a4b94d"
12+
"regenerated": "2021-10-12 09:02:44.562949",
13+
"spec_repo_commit": "06c7795"
1414
}
1515
}
1616
}

api_docs/v1/Event.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Name | Type | Description | Notes
1919
**sourceTypeName** | **String** | The type of event being posted. Option examples include nagios, hudson, jenkins, my_apps, chef, puppet, git, bitbucket, etc. A complete list of source attribute values [available here](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value). | [optional]
2020
**tags** | **List&lt;String&gt;** | A list of tags to apply to the event. | [optional]
2121
**text** | **String** | The body of the event. Limited to 4000 characters. The text supports markdown. To use markdown in the event text, start the text block with &#x60;%%% \\n&#x60; and end the text block with &#x60;\\n %%%&#x60;. Use &#x60;msg_text&#x60; with the Datadog Ruby library. | [optional]
22-
**title** | **String** | The event title. Limited to 100 characters. Use &#x60;msg_title&#x60; with the Datadog Ruby library. | [optional]
22+
**title** | **String** | The event title. | [optional]
2323
**url** | **String** | URL of the event. | [optional] [readonly]
2424

2525

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

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -346,17 +346,12 @@ public Event title(String title) {
346346
}
347347

348348
/**
349-
* The event title. Limited to 100 characters. Use &#x60;msg_title&#x60; with the Datadog Ruby
350-
* library.
349+
* The event title.
351350
*
352351
* @return title
353352
*/
354353
@javax.annotation.Nullable
355-
@ApiModelProperty(
356-
example = "Did you hear the news today?",
357-
value =
358-
"The event title. Limited to 100 characters. Use `msg_title` with the Datadog Ruby"
359-
+ " library.")
354+
@ApiModelProperty(example = "Did you hear the news today?", value = "The event title.")
360355
@JsonProperty(JSON_PROPERTY_TITLE)
361356
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
362357
public String getTitle() {

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12962,10 +12962,8 @@ components:
1296212962
maxLength: 4000
1296312963
type: string
1296412964
title:
12965-
description: The event title. Limited to 100 characters. Use `msg_title`
12966-
with the Datadog Ruby library.
12965+
description: The event title.
1296712966
example: Did you hear the news today?
12968-
maxLength: 100
1296912967
type: string
1297012968
url:
1297112969
description: URL of the event.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2021-09-28T08:13:10.613Z
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
[
2+
{
3+
"httpRequest": {
4+
"body": {
5+
"type": "JSON",
6+
"json": "{\"tags\":[\"test:TestPostaneventwithalongtitlereturnsOKresponse1632816790\"],\"text\":\"A text message.\",\"title\":\"Test-Post_an_event_with_a_long_title_returns_OK_response-1632816790 very very very looooooooong looooooooooooong loooooooooooooooooooooong looooooooooooooooooooooooooong title with 100+ characters\"}"
7+
},
8+
"headers": {
9+
"JAVA-TEST-NAME": [
10+
"Post_an_event_with_a_long_title_returns_OK_response"
11+
]
12+
},
13+
"method": "POST",
14+
"path": "/api/v1/events",
15+
"keepAlive": false,
16+
"secure": true
17+
},
18+
"httpResponse": {
19+
"body": "{\"status\":\"ok\",\"event\":{\"id\":6183308802141975575,\"id_str\":\"6183308802141975575\",\"title\":\"Test-Post_an_event_with_a_long_title_returns_OK_response-1632816790 very very very looooooooong looooooooooooong loooooooooooooooooooooong looooooooooooooooooooooooooong title with 100+ characters\",\"text\":\"A text message.\",\"date_happened\":1632816790,\"handle\":null,\"priority\":null,\"related_event_id\":null,\"tags\":[\"test:TestPostaneventwithalongtitlereturnsOKresponse1632816790\"],\"url\":\"https://app.datadoghq.com/event/event?id=6183308802141975575\"}}",
20+
"headers": {
21+
"Date": [
22+
"Tue, 28 Sep 2021 08:13:10 GMT"
23+
],
24+
"Content-Type": [
25+
"application/json"
26+
],
27+
"Content-Length": [
28+
"536"
29+
],
30+
"Connection": [
31+
"close"
32+
],
33+
"X-Content-Type-Options": [
34+
"nosniff"
35+
],
36+
"Strict-Transport-Security": [
37+
"max-age=15724800;"
38+
],
39+
"Content-Security-Policy": [
40+
"frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report"
41+
],
42+
"X-Frame-Options": [
43+
"SAMEORIGIN"
44+
]
45+
},
46+
"statusCode": 202,
47+
"reasonPhrase": "Accepted"
48+
},
49+
"times": {
50+
"remainingTimes": 1
51+
},
52+
"timeToLive": {
53+
"unlimited": true
54+
},
55+
"id": "e5770f96-3a31-9038-5692-cd3e9d64f334"
56+
}
57+
]

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ Feature: Events
3838
When the request is sent
3939
Then the response status is 202 OK
4040

41+
Scenario: Post an event with a long title returns "OK" response
42+
Given new "CreateEvent" request
43+
And body with value {"title": "{{ unique }} very very very looooooooong looooooooooooong loooooooooooooooooooooong looooooooooooooooooooooooooong title with 100+ characters", "text": "A text message.", "tags": ["test:{{ unique_alnum }}"]}
44+
When the request is sent
45+
Then the response status is 202 OK
46+
4147
@generated @skip
4248
Scenario: Query the event stream returns "Bad Request" response
4349
Given a valid "appKeyAuth" key in the system

0 commit comments

Comments
 (0)