Skip to content

Commit

Permalink
Remove unused aggregation_key and related_event_id properties fro…
Browse files Browse the repository at this point in the history
…m events responses (#480)

* Fix ptr

* Regenerate client from commit aead216 of spec repo

Co-authored-by: Hippolyte HENRY <hippolyte.henry@datadoghq.com>
Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
  • Loading branch information
3 people authored Sep 24, 2020
1 parent 81704eb commit c0d7d6f
Show file tree
Hide file tree
Showing 5 changed files with 78 additions and 202 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.2.0",
"regenerated": "2020-09-23 13:48:53.078681",
"spec_repo_commit": "c6c8f47"
"regenerated": "2020-09-24 08:35:14.530909",
"spec_repo_commit": "aead216"
},
"v2": {
"apigentools_version": "1.2.0",
"regenerated": "2020-09-23 13:48:58.673841",
"spec_repo_commit": "c6c8f47"
"regenerated": "2020-09-24 08:35:19.940305",
"spec_repo_commit": "aead216"
}
}
}
62 changes: 20 additions & 42 deletions api/v1/datadog/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7983,28 +7983,20 @@ components:
Event:
description: Object representing an event.
example:
aggregation_key: aggregation_key
related_event_id: 1
device_name: device_name
payload: '{}'
host: host
id: 6
text: Oh boy!
priority: normal
source_type_name: source_type_name
title: Did you hear the news today?
alert_type: info
url: url
date_happened: 0
tags:
- environment:test
device_name: device_name
payload: '{}'
host: host
id: 6
text: Oh boy!
date_happened: 0
properties:
aggregation_key:
description: |-
An arbitrary string to use for aggregation. Limited to 100 characters.
If you specify a key, all events using that key are grouped together in the Event Stream.
maxLength: 100
type: string
alert_type:
$ref: '#/components/schemas/EventAlertType'
date_happened:
Expand Down Expand Up @@ -8033,11 +8025,6 @@ components:
type: string
priority:
$ref: '#/components/schemas/EventPriority'
related_event_id:
description: ID of the parent event. Must be sent as an integer (i.e. no
quotes).
format: int64
type: integer
source_type_name:
description: |-
The type of event being posted. Option examples include nagios, hudson, jenkins, my_apps, chef, puppet, git, bitbucket, etc.
Expand Down Expand Up @@ -8068,9 +8055,6 @@ components:
description: URL of the event.
readOnly: true
type: string
required:
- text
- title
type: object
EventAlertType:
description: |-
Expand All @@ -8092,36 +8076,32 @@ components:
description: An event list response.
example:
events:
- aggregation_key: aggregation_key
related_event_id: 1
- device_name: device_name
payload: '{}'
host: host
id: 6
text: Oh boy!
priority: normal
source_type_name: source_type_name
title: Did you hear the news today?
alert_type: info
url: url
date_happened: 0
tags:
- environment:test
device_name: device_name
- device_name: device_name
payload: '{}'
host: host
id: 6
text: Oh boy!
date_happened: 0
- aggregation_key: aggregation_key
related_event_id: 1
priority: normal
source_type_name: source_type_name
title: Did you hear the news today?
alert_type: info
url: url
date_happened: 0
tags:
- environment:test
device_name: device_name
payload: '{}'
host: host
id: 6
text: Oh boy!
date_happened: 0
status: status
properties:
events:
Expand Down Expand Up @@ -8161,21 +8141,19 @@ components:
description: Object containing an event response.
example:
event:
aggregation_key: aggregation_key
related_event_id: 1
device_name: device_name
payload: '{}'
host: host
id: 6
text: Oh boy!
priority: normal
source_type_name: source_type_name
title: Did you hear the news today?
alert_type: info
url: url
date_happened: 0
tags:
- environment:test
device_name: device_name
payload: '{}'
host: host
id: 6
text: Oh boy!
date_happened: 0
status: status
properties:
event:
Expand Down
68 changes: 13 additions & 55 deletions api/v1/datadog/docs/Event.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,24 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**AggregationKey** | Pointer to **string** | An arbitrary string to use for aggregation. Limited to 100 characters. If you specify a key, all events using that key are grouped together in the Event Stream. | [optional]
**AlertType** | Pointer to [**EventAlertType**](EventAlertType.md) | | [optional]
**DateHappened** | Pointer to **int64** | POSIX timestamp of the event. Must be sent as an integer (i.e. no quotes). Limited to events no older than 7 days. | [optional]
**DeviceName** | Pointer to **string** | A device name. | [optional]
**Host** | Pointer to **string** | Host name to associate with the event. Any tags associated with the host are also applied to this event. | [optional]
**Id** | Pointer to **int64** | Integer ID of the event. | [optional] [readonly]
**Payload** | Pointer to **string** | Payload of the event. | [optional] [readonly]
**Priority** | Pointer to [**EventPriority**](EventPriority.md) | | [optional]
**RelatedEventId** | Pointer to **int64** | ID of the parent event. Must be sent as an integer (i.e. no quotes). | [optional]
**SourceTypeName** | Pointer to **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** | Pointer to **[]string** | 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. Use &#x60;msg_text&#x60; with the Datadog Ruby library. |
**Title** | **string** | The event title. Limited to 100 characters. Use &#x60;msg_title&#x60; with the Datadog Ruby library. |
**Text** | Pointer to **string** | The body of the event. Limited to 4000 characters. The text supports markdown. Use &#x60;msg_text&#x60; with the Datadog Ruby library. | [optional]
**Title** | Pointer to **string** | The event title. Limited to 100 characters. Use &#x60;msg_title&#x60; with the Datadog Ruby library. | [optional]
**Url** | Pointer to **string** | URL of the event. | [optional] [readonly]

## Methods

### NewEvent

`func NewEvent(text string, title string, ) *Event`
`func NewEvent() *Event`

NewEvent instantiates a new Event object
This constructor will assign default values to properties that have it defined,
Expand All @@ -38,31 +36,6 @@ NewEventWithDefaults instantiates a new Event object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set

### GetAggregationKey

`func (o *Event) GetAggregationKey() string`

GetAggregationKey returns the AggregationKey field if non-nil, zero value otherwise.

### GetAggregationKeyOk

`func (o *Event) GetAggregationKeyOk() (*string, bool)`

GetAggregationKeyOk returns a tuple with the AggregationKey field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetAggregationKey

`func (o *Event) SetAggregationKey(v string)`

SetAggregationKey sets AggregationKey field to given value.

### HasAggregationKey

`func (o *Event) HasAggregationKey() bool`

HasAggregationKey returns a boolean if a field has been set.

### GetAlertType

`func (o *Event) GetAlertType() EventAlertType`
Expand Down Expand Up @@ -238,31 +211,6 @@ SetPriority sets Priority field to given value.

HasPriority returns a boolean if a field has been set.

### GetRelatedEventId

`func (o *Event) GetRelatedEventId() int64`

GetRelatedEventId returns the RelatedEventId field if non-nil, zero value otherwise.

### GetRelatedEventIdOk

`func (o *Event) GetRelatedEventIdOk() (*int64, bool)`

GetRelatedEventIdOk returns a tuple with the RelatedEventId field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetRelatedEventId

`func (o *Event) SetRelatedEventId(v int64)`

SetRelatedEventId sets RelatedEventId field to given value.

### HasRelatedEventId

`func (o *Event) HasRelatedEventId() bool`

HasRelatedEventId returns a boolean if a field has been set.

### GetSourceTypeName

`func (o *Event) GetSourceTypeName() string`
Expand Down Expand Up @@ -332,6 +280,11 @@ and a boolean to check if the value has been set.

SetText sets Text field to given value.

### HasText

`func (o *Event) HasText() bool`

HasText returns a boolean if a field has been set.

### GetTitle

Expand All @@ -352,6 +305,11 @@ and a boolean to check if the value has been set.

SetTitle sets Title field to given value.

### HasTitle

`func (o *Event) HasTitle() bool`

HasTitle returns a boolean if a field has been set.

### GetUrl

Expand Down
Loading

0 comments on commit c0d7d6f

Please sign in to comment.