Skip to content

Commit

Permalink
Regenerate client from commit 06c7795 of spec repo (#977)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
api-clients-generation-pipeline[bot] and ci.datadog-api-spec authored Oct 12, 2021
1 parent 04ad143 commit fa03484
Show file tree
Hide file tree
Showing 7 changed files with 72 additions and 15 deletions.
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.5.1.dev2",
"regenerated": "2021-10-08 15:41:44.665859",
"spec_repo_commit": "9a4b94d"
"regenerated": "2021-10-12 09:01:47.461136",
"spec_repo_commit": "06c7795"
},
"v2": {
"apigentools_version": "1.5.1.dev2",
"regenerated": "2021-10-08 15:42:32.460789",
"spec_repo_commit": "9a4b94d"
"regenerated": "2021-10-12 09:02:44.562949",
"spec_repo_commit": "06c7795"
}
}
}
2 changes: 1 addition & 1 deletion api_docs/v1/Event.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Name | Type | Description | Notes
**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]
**tags** | **List&lt;String&gt;** | A list of tags to apply to the event. | [optional]
**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]
**title** | **String** | The event title. Limited to 100 characters. Use &#x60;msg_title&#x60; with the Datadog Ruby library. | [optional]
**title** | **String** | The event title. | [optional]
**url** | **String** | URL of the event. | [optional] [readonly]


Expand Down
9 changes: 2 additions & 7 deletions src/main/java/com/datadog/api/v1/client/model/Event.java
Original file line number Diff line number Diff line change
Expand Up @@ -346,17 +346,12 @@ public Event title(String title) {
}

/**
* The event title. Limited to 100 characters. Use &#x60;msg_title&#x60; with the Datadog Ruby
* library.
* The event title.
*
* @return title
*/
@javax.annotation.Nullable
@ApiModelProperty(
example = "Did you hear the news today?",
value =
"The event title. Limited to 100 characters. Use `msg_title` with the Datadog Ruby"
+ " library.")
@ApiModelProperty(example = "Did you hear the news today?", value = "The event title.")
@JsonProperty(JSON_PROPERTY_TITLE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getTitle() {
Expand Down
4 changes: 1 addition & 3 deletions src/main/java/com/datadog/api/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12962,10 +12962,8 @@ components:
maxLength: 4000
type: string
title:
description: The event title. Limited to 100 characters. Use `msg_title`
with the Datadog Ruby library.
description: The event title.
example: Did you hear the news today?
maxLength: 100
type: string
url:
description: URL of the event.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2021-09-28T08:13:10.613Z
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
[
{
"httpRequest": {
"body": {
"type": "JSON",
"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\"}"
},
"headers": {
"JAVA-TEST-NAME": [
"Post_an_event_with_a_long_title_returns_OK_response"
]
},
"method": "POST",
"path": "/api/v1/events",
"keepAlive": false,
"secure": true
},
"httpResponse": {
"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\"}}",
"headers": {
"Date": [
"Tue, 28 Sep 2021 08:13:10 GMT"
],
"Content-Type": [
"application/json"
],
"Content-Length": [
"536"
],
"Connection": [
"close"
],
"X-Content-Type-Options": [
"nosniff"
],
"Strict-Transport-Security": [
"max-age=15724800;"
],
"Content-Security-Policy": [
"frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report"
],
"X-Frame-Options": [
"SAMEORIGIN"
]
},
"statusCode": 202,
"reasonPhrase": "Accepted"
},
"times": {
"remainingTimes": 1
},
"timeToLive": {
"unlimited": true
},
"id": "e5770f96-3a31-9038-5692-cd3e9d64f334"
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ Feature: Events
When the request is sent
Then the response status is 202 OK

Scenario: Post an event with a long title returns "OK" response
Given new "CreateEvent" request
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 }}"]}
When the request is sent
Then the response status is 202 OK

@generated @skip
Scenario: Query the event stream returns "Bad Request" response
Given a valid "appKeyAuth" key in the system
Expand Down

0 comments on commit fa03484

Please sign in to comment.