Class: DatadogAPIClient::V1::HTTPLogItem

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

Overview

Logs that are sent over HTTP.

Instance Attribute Summary collapse

Method Summary

Methods included from BaseGenericModel

included

Instance Attribute Details

#additional_propertiesObject

Returns the value of attribute additional_properties.



45
46
47
# File 'lib/datadog_api_client/v1/models/http_log_item.rb', line 45

def additional_properties
  @additional_properties
end

#ddsourceObject

The integration name associated with your log: the technology from which the log originated. When it matches an integration name, Datadog automatically installs the corresponding parsers and facets. See [reserved attributes](docs.datadoghq.com/logs/log_collection/#reserved-attributes).



27
28
29
# File 'lib/datadog_api_client/v1/models/http_log_item.rb', line 27

def ddsource
  @ddsource
end

#ddtagsObject

Tags associated with your logs.



30
31
32
# File 'lib/datadog_api_client/v1/models/http_log_item.rb', line 30

def ddtags
  @ddtags
end

#hostnameObject

The name of the originating host of the log.



33
34
35
# File 'lib/datadog_api_client/v1/models/http_log_item.rb', line 33

def hostname
  @hostname
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.



38
39
40
# File 'lib/datadog_api_client/v1/models/http_log_item.rb', line 38

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. See [reserved attributes](docs.datadoghq.com/logs/log_collection/#reserved-attributes).



43
44
45
# File 'lib/datadog_api_client/v1/models/http_log_item.rb', line 43

def service
  @service
end