ScriptedRestMonitorConfiguration

class oci.apm_synthetics.models.ScriptedRestMonitorConfiguration(**kwargs)

Bases: oci.apm_synthetics.models.monitor_configuration.MonitorConfiguration

Configuration details for the SCRIPTED_REST monitor type.

Attributes

CONFIG_TYPE_BROWSER_CONFIG str(object=’’) -> str
CONFIG_TYPE_DNSSEC_CONFIG str(object=’’) -> str
CONFIG_TYPE_DNS_SERVER_CONFIG str(object=’’) -> str
CONFIG_TYPE_DNS_TRACE_CONFIG str(object=’’) -> str
CONFIG_TYPE_NETWORK_CONFIG str(object=’’) -> str
CONFIG_TYPE_REST_CONFIG str(object=’’) -> str
CONFIG_TYPE_SCRIPTED_BROWSER_CONFIG str(object=’’) -> str
CONFIG_TYPE_SCRIPTED_REST_CONFIG str(object=’’) -> str
REQ_AUTHENTICATION_SCHEME_NONE A constant which can be used with the req_authentication_scheme property of a ScriptedRestMonitorConfiguration.
REQ_AUTHENTICATION_SCHEME_RESOURCE_PRINCIPAL A constant which can be used with the req_authentication_scheme property of a ScriptedRestMonitorConfiguration.
config_type Gets the config_type of this MonitorConfiguration.
dns_configuration Gets the dns_configuration of this MonitorConfiguration.
is_failure_retried Gets the is_failure_retried of this MonitorConfiguration.
network_configuration Gets the network_configuration of this ScriptedRestMonitorConfiguration.
req_authentication_scheme Gets the req_authentication_scheme of this ScriptedRestMonitorConfiguration.
verify_response_codes Gets the verify_response_codes of this ScriptedRestMonitorConfiguration.

Methods

__init__(**kwargs) Initializes a new ScriptedRestMonitorConfiguration object with values from keyword arguments.
get_subtype(object_dictionary) Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
CONFIG_TYPE_BROWSER_CONFIG = 'BROWSER_CONFIG'
CONFIG_TYPE_DNSSEC_CONFIG = 'DNSSEC_CONFIG'
CONFIG_TYPE_DNS_SERVER_CONFIG = 'DNS_SERVER_CONFIG'
CONFIG_TYPE_DNS_TRACE_CONFIG = 'DNS_TRACE_CONFIG'
CONFIG_TYPE_NETWORK_CONFIG = 'NETWORK_CONFIG'
CONFIG_TYPE_REST_CONFIG = 'REST_CONFIG'
CONFIG_TYPE_SCRIPTED_BROWSER_CONFIG = 'SCRIPTED_BROWSER_CONFIG'
CONFIG_TYPE_SCRIPTED_REST_CONFIG = 'SCRIPTED_REST_CONFIG'
REQ_AUTHENTICATION_SCHEME_NONE = 'NONE'

A constant which can be used with the req_authentication_scheme property of a ScriptedRestMonitorConfiguration. This constant has a value of “NONE”

REQ_AUTHENTICATION_SCHEME_RESOURCE_PRINCIPAL = 'RESOURCE_PRINCIPAL'

A constant which can be used with the req_authentication_scheme property of a ScriptedRestMonitorConfiguration. This constant has a value of “RESOURCE_PRINCIPAL”

__init__(**kwargs)

Initializes a new ScriptedRestMonitorConfiguration object with values from keyword arguments. The default value of the config_type attribute of this class is SCRIPTED_REST_CONFIG and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • config_type (str) – The value to assign to the config_type property of this ScriptedRestMonitorConfiguration. Allowed values for this property are: “BROWSER_CONFIG”, “SCRIPTED_BROWSER_CONFIG”, “REST_CONFIG”, “SCRIPTED_REST_CONFIG”, “NETWORK_CONFIG”, “DNS_SERVER_CONFIG”, “DNS_TRACE_CONFIG”, “DNSSEC_CONFIG”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • is_failure_retried (bool) – The value to assign to the is_failure_retried property of this ScriptedRestMonitorConfiguration.
  • dns_configuration (oci.apm_synthetics.models.DnsConfiguration) – The value to assign to the dns_configuration property of this ScriptedRestMonitorConfiguration.
  • req_authentication_scheme (str) – The value to assign to the req_authentication_scheme property of this ScriptedRestMonitorConfiguration. Allowed values for this property are: “NONE”, “RESOURCE_PRINCIPAL”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • verify_response_codes (list[str]) – The value to assign to the verify_response_codes property of this ScriptedRestMonitorConfiguration.
  • network_configuration (oci.apm_synthetics.models.NetworkConfiguration) – The value to assign to the network_configuration property of this ScriptedRestMonitorConfiguration.
config_type

Gets the config_type of this MonitorConfiguration. Type of configuration.

Allowed values for this property are: “BROWSER_CONFIG”, “SCRIPTED_BROWSER_CONFIG”, “REST_CONFIG”, “SCRIPTED_REST_CONFIG”, “NETWORK_CONFIG”, “DNS_SERVER_CONFIG”, “DNS_TRACE_CONFIG”, “DNSSEC_CONFIG”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The config_type of this MonitorConfiguration.
Return type:str
dns_configuration

Gets the dns_configuration of this MonitorConfiguration.

Returns:The dns_configuration of this MonitorConfiguration.
Return type:oci.apm_synthetics.models.DnsConfiguration
static get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

is_failure_retried

Gets the is_failure_retried of this MonitorConfiguration. If isFailureRetried is enabled, then a failed call will be retried.

Returns:The is_failure_retried of this MonitorConfiguration.
Return type:bool
network_configuration

Gets the network_configuration of this ScriptedRestMonitorConfiguration.

Returns:The network_configuration of this ScriptedRestMonitorConfiguration.
Return type:oci.apm_synthetics.models.NetworkConfiguration
req_authentication_scheme

Gets the req_authentication_scheme of this ScriptedRestMonitorConfiguration. Request HTTP authentication scheme.

Allowed values for this property are: “NONE”, “RESOURCE_PRINCIPAL”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The req_authentication_scheme of this ScriptedRestMonitorConfiguration.
Return type:str
verify_response_codes

Gets the verify_response_codes of this ScriptedRestMonitorConfiguration. Expected HTTP response codes. For status code range, set values such as 2xx, 3xx.

Returns:The verify_response_codes of this ScriptedRestMonitorConfiguration.
Return type:list[str]