Class: DatadogAPIClient::V1::ListStreamSource

Inherits:
Object
  • Object
show all
Includes:
BaseEnumModel
Defined in:
lib/datadog_api_client/v1/models/list_stream_source.rb,
lib/datadog_api_client/v1/models/list_stream_source.rb

Overview

Source from which to query items to display in the stream.

Constant Summary collapse

ISSUE_STREAM =
"issue_stream".freeze
LOGS_STREAM =
"logs_stream".freeze
AUDIT_STREAM =
"audit_stream".freeze
CI_PIPELINE_STREAM =
"ci_pipeline_stream".freeze
CI_TEST_STREAM =
"ci_test_stream".freeze
RUM_ISSUE_STREAM =
"rum_issue_stream".freeze
APM_ISSUE_STREAM =
"apm_issue_stream".freeze
TRACE_STREAM =
"trace_stream".freeze
LOGS_ISSUE_STREAM =
"logs_issue_stream".freeze
LOGS_PATTERN_STREAM =
"logs_pattern_stream".freeze
LOGS_TRANSACTION_STREAM =
"logs_transaction_stream".freeze
EVENT_STREAM =
"event_stream".freeze

Class Method Summary collapse

Instance Method Summary collapse

Methods included from BaseEnumModel

included

Class Method Details

.build_from_hash(value) ⇒ String

Builds the enum from string

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



28
29
30
# File 'lib/datadog_api_client/v1/models/list_stream_source.rb', line 28

def self.build_from_hash(value)
  new.build_from_hash(value)
end

Instance Method Details

#build_from_hash(value) ⇒ String

Builds the enum from string

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



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

def build_from_hash(value)
  constantValues = ListStreamSource.constants.select { |c| ListStreamSource::const_get(c) == value }
  constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value
end