Class: DatadogAPIClient::V2::LogsArchiveAttributes
- Inherits:
-
Object
- Object
- DatadogAPIClient::V2::LogsArchiveAttributes
- Defined in:
- lib/datadog_api_client/v2/models/logs_archive_attributes.rb
Overview
The attributes associated with the archive.
Instance Attribute Summary collapse
-
#destination ⇒ Object
Returns the value of attribute destination.
-
#include_tags ⇒ Object
To store the tags in the archive, set the value "true".
-
#name ⇒ Object
The archive name.
-
#query ⇒ Object
The archive query/filter.
-
#rehydration_tags ⇒ Object
An array of tags to add to rehydrated logs from an archive.
-
#state ⇒ Object
Returns the value of attribute state.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ LogsArchiveAttributes
constructor
Initializes the object.
Constructor Details
#initialize(attributes = {}) ⇒ LogsArchiveAttributes
Initializes the object
84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 |
# File 'lib/datadog_api_client/v2/models/logs_archive_attributes.rb', line 84 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsArchiveAttributes` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::LogsArchiveAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } if attributes.key?(:'destination') self.destination = attributes[:'destination'] end if attributes.key?(:'include_tags') self. = attributes[:'include_tags'] else self. = false end if attributes.key?(:'name') self.name = attributes[:'name'] end if attributes.key?(:'query') self.query = attributes[:'query'] end if attributes.key?(:'rehydration_tags') if (value = attributes[:'rehydration_tags']).is_a?(Array) self. = value end end if attributes.key?(:'state') self.state = attributes[:'state'] end end |
Instance Attribute Details
#destination ⇒ Object
Returns the value of attribute destination.
26 27 28 |
# File 'lib/datadog_api_client/v2/models/logs_archive_attributes.rb', line 26 def destination @destination end |
#include_tags ⇒ Object
To store the tags in the archive, set the value "true". If it is set to "false", the tags will be deleted when the logs are sent to the archive.
29 30 31 |
# File 'lib/datadog_api_client/v2/models/logs_archive_attributes.rb', line 29 def end |
#name ⇒ Object
The archive name.
32 33 34 |
# File 'lib/datadog_api_client/v2/models/logs_archive_attributes.rb', line 32 def name @name end |
#query ⇒ Object
The archive query/filter. Logs matching this query are included in the archive.
35 36 37 |
# File 'lib/datadog_api_client/v2/models/logs_archive_attributes.rb', line 35 def query @query end |
#rehydration_tags ⇒ Object
An array of tags to add to rehydrated logs from an archive.
38 39 40 |
# File 'lib/datadog_api_client/v2/models/logs_archive_attributes.rb', line 38 def end |
#state ⇒ Object
Returns the value of attribute state.
40 41 42 |
# File 'lib/datadog_api_client/v2/models/logs_archive_attributes.rb', line 40 def state @state end |