Class: DatadogAPIClient::V2::LogAttributes
- Inherits:
-
Object
- Object
- DatadogAPIClient::V2::LogAttributes
- Includes:
- BaseGenericModel
- Defined in:
- lib/datadog_api_client/v2/models/log_attributes.rb
Overview
JSON object containing all log attributes and their associated values.
Instance Attribute Summary collapse
-
#additional_properties ⇒ Object
Returns the value of attribute additional_properties.
-
#attributes ⇒ Object
JSON object of attributes from your log.
-
#host ⇒ Object
Name of the machine from where the logs are being sent.
-
#message ⇒ Object
The message [reserved attribute](docs.datadoghq.com/logs/log_collection/#reserved-attributes) of your log.
-
#service ⇒ Object
The name of the application or service generating the log events.
-
#status ⇒ Object
Status of the message associated with your log.
-
#tags ⇒ Object
Array of tags associated with your log.
-
#timestamp ⇒ Object
Timestamp of your log.
Method Summary
Methods included from BaseGenericModel
Instance Attribute Details
#additional_properties ⇒ Object
Returns the value of attribute additional_properties.
49 50 51 |
# File 'lib/datadog_api_client/v2/models/log_attributes.rb', line 49 def additional_properties @additional_properties end |
#attributes ⇒ Object
JSON object of attributes from your log.
25 26 27 |
# File 'lib/datadog_api_client/v2/models/log_attributes.rb', line 25 def attributes @attributes end |
#host ⇒ Object
Name of the machine from where the logs are being sent.
28 29 30 |
# File 'lib/datadog_api_client/v2/models/log_attributes.rb', line 28 def host @host end |
#message ⇒ Object
The message [reserved attribute](docs.datadoghq.com/logs/log_collection/#reserved-attributes) of your log. By default, Datadog ingests the value of the message attribute as the body of the log entry. That value is then highlighted and displayed in the Logstream, where it is indexed for full text search.
33 34 35 |
# File 'lib/datadog_api_client/v2/models/log_attributes.rb', line 33 def @message end |
#service ⇒ Object
The name of the application or service generating the log events. It is used to switch from Logs to APM, so make sure you define the same value when you use both products.
38 39 40 |
# File 'lib/datadog_api_client/v2/models/log_attributes.rb', line 38 def service @service end |
#status ⇒ Object
Status of the message associated with your log.
41 42 43 |
# File 'lib/datadog_api_client/v2/models/log_attributes.rb', line 41 def status @status end |
#tags ⇒ Object
Array of tags associated with your log.
44 45 46 |
# File 'lib/datadog_api_client/v2/models/log_attributes.rb', line 44 def @tags end |
#timestamp ⇒ Object
Timestamp of your log.
47 48 49 |
# File 'lib/datadog_api_client/v2/models/log_attributes.rb', line 47 def @timestamp end |