class DatadogAPIClient::V1::SyntheticsAssertionOperator

Constants

CONTAINS
DOES_NOT_CONTAIN
DOES_NOT_MATCH
IS
IS_IN_LESS_DAYS_THAN
IS_IN_MORE_DAYS_THAN
IS_NOT
LESS_THAN
LESS_THAN_OR_EQUAL
MATCHES
MORE_THAN
MORE_THAN_OR_EQUAL
VALIDATES

Public Class Methods

build_from_hash(value) click to toggle source

Builds the enum from string @param [String] The enum value in the form of the string @return [String] The enum value

# 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

Public Instance Methods

build_from_hash(value) click to toggle source

Builds the enum from string @param [String] The enum value in the form of the string @return [String] The enum value

# 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 }
  raise "Invalid ENUM value #{value} for class #SyntheticsAssertionOperator" if constantValues.empty?
  value
end