Class: DatadogAPIClient::V1::LogContent
- Inherits:
-
Object
- Object
- DatadogAPIClient::V1::LogContent
- Includes:
- BaseGenericModel
- Defined in:
- lib/datadog_api_client/v1/models/log_content.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.
-
#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.
46 47 48 |
# File 'lib/datadog_api_client/v1/models/log_content.rb', line 46 def additional_properties @additional_properties end |
#attributes ⇒ Object
JSON object of attributes from your log.
25 26 27 |
# File 'lib/datadog_api_client/v1/models/log_content.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/v1/models/log_content.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/v1/models/log_content.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/v1/models/log_content.rb', line 38 def service @service end |
#tags ⇒ Object
Array of tags associated with your log.
41 42 43 |
# File 'lib/datadog_api_client/v1/models/log_content.rb', line 41 def @tags end |
#timestamp ⇒ Object
Timestamp of your log.
44 45 46 |
# File 'lib/datadog_api_client/v1/models/log_content.rb', line 44 def @timestamp end |