Sha256: 10051dc342367855e6ae2c60fcf95b97924ba2bc563502c9a02372380a474376

Contents?: true

Size: 1.47 KB

Versions: 7

Compression:

Stored size: 1.47 KB

Contents

# DatadogAPIClient::V2::LogAttributes

## Properties

| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **attributes** | **Hash<String, Object>** | JSON object of attributes from your log. | [optional] |
| **host** | **String** | Name of the machine from where the logs are being sent. | [optional] |
| **message** | **String** | The message [reserved attribute](https://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. | [optional] |
| **service** | **String** | 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. | [optional] |
| **status** | **String** | Status of the message associated with your log. | [optional] |
| **tags** | **Array<String>** | Array of tags associated with your log. | [optional] |
| **timestamp** | **Time** | Timestamp of your log. | [optional] |

## Example

```ruby
require 'datadog_api_client/v2'

instance = DatadogAPIClient::V2::LogAttributes.new(
  attributes: {"customAttribute":123,"duration":2345},
  host: i-0123,
  message: Host connected to remote,
  service: agent,
  status: INFO,
  tags: ["team:A"],
  timestamp: 2019-01-02T09:42:36.320Z
)
```

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
datadog_api_client-1.4.0 docs/v2/LogAttributes.md
datadog_api_client-1.3.0 docs/v2/LogAttributes.md
datadog_api_client-1.2.0 docs/v2/LogAttributes.md
datadog_api_client-1.1.0 docs/v2/LogAttributes.md
datadog_api_client-1.0.0 docs/v2/LogAttributes.md
datadog_api_client-1.0.0.beta.3 docs/v2/LogAttributes.md
datadog_api_client-1.0.0.beta.2 docs/v2/LogAttributes.md