Class: DatadogAPIClient::V1::LogContent

Inherits:
Object
  • Object
show all
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

Method Summary

Methods included from BaseGenericModel

included

Instance Attribute Details

#additional_propertiesObject

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

#attributesObject

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

#hostObject

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

#messageObject

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

#serviceObject

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

#tagsObject

Array of tags associated with your log.



41
42
43
# File 'lib/datadog_api_client/v1/models/log_content.rb', line 41

def tags
  @tags
end

#timestampObject

Timestamp of your log.



44
45
46
# File 'lib/datadog_api_client/v1/models/log_content.rb', line 44

def timestamp
  @timestamp
end