Class: DatadogAPIClient::V2::LogAttributes

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

Method Summary

Methods included from BaseGenericModel

included

Instance Attribute Details

#additional_propertiesObject

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

#attributesObject

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

#hostObject

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

#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/v2/models/log_attributes.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/v2/models/log_attributes.rb', line 38

def service
  @service
end

#statusObject

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

#tagsObject

Array of tags associated with your log.



44
45
46
# File 'lib/datadog_api_client/v2/models/log_attributes.rb', line 44

def tags
  @tags
end

#timestampObject

Timestamp of your log.



47
48
49
# File 'lib/datadog_api_client/v2/models/log_attributes.rb', line 47

def timestamp
  @timestamp
end