Class: DatadogAPIClient::V1::EventCreateRequest

Inherits:
Object
  • Object
show all
Includes:
BaseGenericModel
Defined in:
lib/datadog_api_client/v1/models/event_create_request.rb

Overview

Object representing an event.

Instance Attribute Summary collapse

Method Summary

Methods included from BaseGenericModel

included

Instance Attribute Details

#additional_propertiesObject

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_keyObject

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_typeObject

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_happenedObject

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_nameObject

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

#hostObject

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

#priorityObject

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

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
  @related_event_id
end

#source_type_nameObject

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

#tagsObject

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
  @tags
end

#textObject

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

#titleObject

The event title.



63
64
65
# File 'lib/datadog_api_client/v1/models/event_create_request.rb', line 63

def title
  @title
end