Class: DatadogAPIClient::V1::SyntheticsCheckType

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

Overview

Type of assertion to apply in an API test.

Constant Summary collapse

EQUALS =
"equals".freeze
NOT_EQUALS =
"notEquals".freeze
CONTAINS =
"contains".freeze
NOT_CONTAINS =
"notContains".freeze
STARTS_WITH =
"startsWith".freeze
NOT_STARTS_WITH =
"notStartsWith".freeze
GREATER =
"greater".freeze
LOWER =
"lower".freeze
GREATER_EQUALS =
"greaterEquals".freeze
LOWER_EQUALS =
"lowerEquals".freeze
MATCH_REGEX =
"matchRegex".freeze
BETWEEN =
"between".freeze
IS_EMPTY =
"isEmpty".freeze
NOT_IS_EMPTY =
"notIsEmpty".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



39
40
41
# File 'lib/datadog_api_client/v1/models/synthetics_check_type.rb', line 39

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



46
47
48
49
# File 'lib/datadog_api_client/v1/models/synthetics_check_type.rb', line 46

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