Class: DatadogAPIClient::V1::SyntheticsAssertionOperator

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

Overview

Assertion operator to apply.

Constant Summary collapse

CONTAINS =
"contains".freeze
DOES_NOT_CONTAIN =
"doesNotContain".freeze
IS =
"is".freeze
IS_NOT =
"isNot".freeze
LESS_THAN =
"lessThan".freeze
LESS_THAN_OR_EQUAL =
"lessThanOrEqual".freeze
MORE_THAN =
"moreThan".freeze
MORE_THAN_OR_EQUAL =
"moreThanOrEqual".freeze
MATCHES =
"matches".freeze
DOES_NOT_MATCH =
"doesNotMatch".freeze
VALIDATES =
"validates".freeze
IS_IN_MORE_DAYS_THAN =
"isInMoreThan".freeze
IS_IN_LESS_DAYS_THAN =
"isInLessThan".freeze
DOES_NOT_EXIST =
"doesNotExist".freeze
IS_UNDEFINED =
"isUndefined".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



38
39
40
# File 'lib/datadog_api_client/v1/models/synthetics_assertion_operator.rb', line 38

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



45
46
47
48
# File 'lib/datadog_api_client/v1/models/synthetics_assertion_operator.rb', line 45

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