Class: DatadogAPIClient::V1::EventCreateRequest
- Inherits:
-
Object
- Object
- DatadogAPIClient::V1::EventCreateRequest
- Includes:
- BaseGenericModel
- Defined in:
- lib/datadog_api_client/v1/models/event_create_request.rb
Overview
Object representing an event.
Instance Attribute Summary collapse
-
#additional_properties ⇒ Object
Returns the value of attribute additional_properties.
-
#aggregation_key ⇒ Object
readonly
An arbitrary string to use for aggregation.
-
#alert_type ⇒ Object
If an alert event is enabled, set its type.
-
#date_happened ⇒ Object
POSIX timestamp of the event.
-
#device_name ⇒ Object
A device name.
-
#host ⇒ Object
Host name to associate with the event.
-
#priority ⇒ Object
The priority of the event.
-
#related_event_id ⇒ Object
ID of the parent event.
-
#source_type_name ⇒ Object
The type of event being posted.
-
#tags ⇒ Object
A list of tags to apply to the event.
-
#text ⇒ Object
readonly
The body of the event.
-
#title ⇒ Object
readonly
The event title.
Method Summary
Methods included from BaseGenericModel
Instance Attribute Details
#additional_properties ⇒ Object
Returns the value of attribute additional_properties.
65 66 67 |
# File 'lib/datadog_api_client/v1/models/event_create_request.rb', line 65 def additional_properties @additional_properties end |
#aggregation_key ⇒ Object
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.
26 27 28 |
# File 'lib/datadog_api_client/v1/models/event_create_request.rb', line 26 def aggregation_key @aggregation_key end |
#alert_type ⇒ Object
If an alert event is enabled, set its type. For example, ‘error`, `warning`, `info`, `success`, `user_update`, `recommendation`, and `snapshot`.
31 32 33 |
# File 'lib/datadog_api_client/v1/models/event_create_request.rb', line 31 def alert_type @alert_type end |
#date_happened ⇒ Object
POSIX timestamp of the event. Must be sent as an integer (that is no quotes). Limited to events no older than 18 hours
35 36 37 |
# File 'lib/datadog_api_client/v1/models/event_create_request.rb', line 35 def date_happened @date_happened end |
#device_name ⇒ Object
A device name.
38 39 40 |
# File 'lib/datadog_api_client/v1/models/event_create_request.rb', line 38 def device_name @device_name end |
#host ⇒ Object
Host name to associate with the event. Any tags associated with the host are also applied to this event.
42 43 44 |
# File 'lib/datadog_api_client/v1/models/event_create_request.rb', line 42 def host @host end |
#priority ⇒ Object
The priority of the event. For example, ‘normal` or `low`.
45 46 47 |
# File 'lib/datadog_api_client/v1/models/event_create_request.rb', line 45 def priority @priority end |
#related_event_id ⇒ Object
ID of the parent event. Must be sent as an integer (that is no quotes).
48 49 50 |
# File 'lib/datadog_api_client/v1/models/event_create_request.rb', line 48 def @related_event_id end |
#source_type_name ⇒ Object
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](docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value).
52 53 54 |
# File 'lib/datadog_api_client/v1/models/event_create_request.rb', line 52 def source_type_name @source_type_name end |
#tags ⇒ Object
A list of tags to apply to the event.
55 56 57 |
# File 'lib/datadog_api_client/v1/models/event_create_request.rb', line 55 def @tags end |
#text ⇒ Object
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 ‘%%% n` and end the text block with `n %%%`. Use `msg_text` with the Datadog Ruby library.
60 61 62 |
# File 'lib/datadog_api_client/v1/models/event_create_request.rb', line 60 def text @text end |
#title ⇒ Object
The event title.
63 64 65 |
# File 'lib/datadog_api_client/v1/models/event_create_request.rb', line 63 def title @title end |