Class: DatadogAPIClient::V1::SyntheticsApiTestFailureCode

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

Overview

Error code that can be returned by a Synthetic test.

Constant Summary collapse

BODY_TOO_LARGE =
"BODY_TOO_LARGE".freeze
DENIED =
"DENIED".freeze
TOO_MANY_REDIRECTS =
"TOO_MANY_REDIRECTS".freeze
AUTHENTICATION_ERROR =
"AUTHENTICATION_ERROR".freeze
DECRYPTION =
"DECRYPTION".freeze
INVALID_CHAR_IN_HEADER =
"INVALID_CHAR_IN_HEADER".freeze
HEADER_TOO_LARGE =
"HEADER_TOO_LARGE".freeze
HEADERS_INCOMPATIBLE_CONTENT_LENGTH =
"HEADERS_INCOMPATIBLE_CONTENT_LENGTH".freeze
INVALID_REQUEST =
"INVALID_REQUEST".freeze
REQUIRES_UPDATE =
"REQUIRES_UPDATE".freeze
UNESCAPED_CHARACTERS_IN_REQUEST_PATH =
"UNESCAPED_CHARACTERS_IN_REQUEST_PATH".freeze
MALFORMED_RESPONSE =
"MALFORMED_RESPONSE".freeze
INCORRECT_ASSERTION =
"INCORRECT_ASSERTION".freeze
CONNREFUSED =
"CONNREFUSED".freeze
CONNRESET =
"CONNRESET".freeze
DNS =
"DNS".freeze
HOSTUNREACH =
"HOSTUNREACH".freeze
NETUNREACH =
"NETUNREACH".freeze
TIMEOUT =
"TIMEOUT".freeze
SSL =
"SSL".freeze
OCSP =
"OCSP".freeze
INVALID_TEST =
"INVALID_TEST".freeze
TUNNEL =
"TUNNEL".freeze
WEBSOCKET =
"WEBSOCKET".freeze
UNKNOWN =
"UNKNOWN".freeze
INTERNAL_ERROR =
"INTERNAL_ERROR".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



51
52
53
# File 'lib/datadog_api_client/v1/models/synthetics_api_test_failure_code.rb', line 51

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



58
59
60
61
# File 'lib/datadog_api_client/v1/models/synthetics_api_test_failure_code.rb', line 58

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