Class: DatadogAPIClient::V1::LogsPipelineProcessor

Inherits:
Object
  • Object
show all
Defined in:
lib/datadog_api_client/v1/models/logs_pipeline_processor.rb

Overview

Nested Pipelines are pipelines within a pipeline. Use Nested Pipelines to split the processing into two steps. For example, first use a high-level filtering such as team and then a second level of filtering based on the integration, service, or any other tag or attribute. A pipeline can contain Nested Pipelines and Processors whereas a Nested Pipeline can only contain Processors.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ LogsPipelineProcessor

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    attributes Model attributes in the form of hash



78
79
80
81
82
83
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
# File 'lib/datadog_api_client/v1/models/logs_pipeline_processor.rb', line 78

def initialize(attributes = {})
  if (!attributes.is_a?(Hash))
    fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsPipelineProcessor` 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::V1::LogsPipelineProcessor`. 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?(:'filter')
    self.filter = attributes[:'filter']
  end

  if attributes.key?(:'is_enabled')
    self.is_enabled = attributes[:'is_enabled']
  else
    self.is_enabled = false
  end

  if attributes.key?(:'name')
    self.name = attributes[:'name']
  end

  if attributes.key?(:'processors')
    if (value = attributes[:'processors']).is_a?(Array)
      self.processors = value
    end
  end

  if attributes.key?(:'type')
    self.type = attributes[:'type']
  else
    self.type = 'pipeline'
  end
end

Instance Attribute Details

#filterObject

Returns the value of attribute filter.



26
27
28
# File 'lib/datadog_api_client/v1/models/logs_pipeline_processor.rb', line 26

def filter
  @filter
end

#is_enabledObject

Whether or not the processor is enabled.



29
30
31
# File 'lib/datadog_api_client/v1/models/logs_pipeline_processor.rb', line 29

def is_enabled
  @is_enabled
end

#nameObject

Name of the processor.



32
33
34
# File 'lib/datadog_api_client/v1/models/logs_pipeline_processor.rb', line 32

def name
  @name
end

#processorsObject

Ordered list of processors in this pipeline.



35
36
37
# File 'lib/datadog_api_client/v1/models/logs_pipeline_processor.rb', line 35

def processors
  @processors
end

#typeObject

Returns the value of attribute type.



37
38
39
# File 'lib/datadog_api_client/v1/models/logs_pipeline_processor.rb', line 37

def type
  @type
end