dtc:monitor:http : DTC HTTP monitor object.

The DTC HTTP monitor object is used to determine the health of a HTTP service by first sending a specific http message to a server and then examining the response received from the server. The validation is successful if the received response matches the expected message.

Object Reference

References to dtc:monitor:http are object references. The name part of a DTC HTTP monitor object reference has the following components:

  • Name of DTC HTTP monitor

Example: dtc:monitor:http/ZG5zLm5ldHdvcmtfdmlldyQxMTk:DTCHttp1

Restrictions

The object does not support the following operations:

  • CSV export

The object cannot be managed on Cloud Platform members.

Fields

These fields are actual members of the object; thus, they can be requested by using _return_fields, if the fields are readable.

The basic version of the object contains the field(s): comment, name.

The following fields are required to create this object:

Field Notes
name  

ciphers

ciphers

An optional cipher list for a secure HTTP/S connection.

Type

String.

Create

The default value is empty.

Search

The field is not available for search.

client_cert

client_cert

An optional client certificate, supplied in a secure HTTP/S mode if present.

Type

String.

This field supports nested return fields as described here.

Create

The default value is empty.

Search

The field is not available for search.

comment

comment

Comment for this DTC monitor; maximum 256 characters.

Type

String.

Values with leading or trailing white space are not valid for this field.

Create

The default value is empty.

Search

The field is available for search via

  • ‘:=’ (case insensitive search)
  • ‘=’ (exact equality)
  • ‘~=’ (regular expression)

Notes

The comment is part of the base object.

content_check

content_check

The content check type.

Type

String.

Valid values are:
  • EXTRACT
  • MATCH
  • NONE

Create

The default value is NONE.

Search

The field is not available for search.

content_check_input

content_check_input

A portion of response to use as input for content check.

Type

String.

Valid values are:
  • ALL
  • BODY
  • HEADERS

Create

The default value is ALL.

Search

The field is not available for search.

content_check_op

content_check_op

A content check success criteria operator.

Type

String.

Valid values are:
  • EQ
  • GEQ
  • LEQ
  • NEQ

Create

The default value is empty.

Search

The field is not available for search.

content_check_regex

content_check_regex

A content check regular expression.

Type

String.

Values with leading or trailing white space are not valid for this field.

Create

The default value is empty.

Search

The field is not available for search.

content_extract_group

content_extract_group

A content extraction sub-expression to extract.

Type

Unsigned integer.

Create

The default value is 0.

Search

The field is not available for search.

content_extract_type

content_extract_type

A content extraction expected type for the extracted data.

Type

String.

Valid values are:
  • INTEGER
  • STRING

Create

The default value is STRING.

Search

The field is not available for search.

content_extract_value

content_extract_value

A content extraction value to compare with extracted result.

Type

String.

Values with leading or trailing white space are not valid for this field.

Create

The default value is empty.

Search

The field is not available for search.

enable_sni

enable_sni

Determines whether the Server Name Indication (SNI) for HTTPS monitor is enabled.

Type

Bool.

Create

The default value is False.

Search

The field is not available for search.

extattrs

extattrs

Extensible attributes associated with the object.

For valid values for extensible attributes, see the following information.

Type

Extensible attributes.

This field allows +/- to be specified as part of the field name when updating the object, see the following information.

Create

The default value is empty.

Search

For how to search extensible attributes, see the following information.

interval

interval

The interval for TCP health check.

Type

Unsigned integer.

Create

The default value is 5.

Search

The field is not available for search.

name

name

The display name for this DTC monitor.

Type

String.

Values with leading or trailing white space are not valid for this field.

Create

The field is required on creation.

Search

The field is available for search via

  • ‘:=’ (case insensitive search)
  • ‘=’ (exact equality)
  • ‘~=’ (regular expression)

Notes

The name is part of the base object.

port

port

Port for TCP requests.

Type

Unsigned integer.

Create

The default value is 80.

Search

The field is not available for search.

request

request

An HTTP request to send.

Type

String.

Create

The default value is GET /.

Search

The field is not available for search.

result

result

The type of an expected result.

Type

String.

Valid values are:
  • ANY
  • CODE_IS
  • CODE_IS_NOT

Create

The default value is ANY.

Search

The field is not available for search.

result_code

result_code

The expected return code.

Type

Unsigned integer.

Create

The default value is 200.

Search

The field is not available for search.

retry_down

retry_down

The value of how many times the server should appear as down to be treated as dead after it was alive.

Type

Unsigned integer.

Create

The default value is 1.

Search

The field is not available for search.

retry_up

retry_up

The value of how many times the server should appear as up to be treated as alive after it was dead.

Type

Unsigned integer.

Create

The default value is 1.

Search

The field is not available for search.

secure

secure

The connection security status.

Type

Bool.

Create

The default value is False.

Search

The field is not available for search.

timeout

timeout

The timeout for TCP health check in seconds.

Type

Unsigned integer.

Create

The default value is 15.

Search

The field is not available for search.

validate_cert

validate_cert

Determines whether the validation of the remote server’s certificate is enabled.

Type

Bool.

Create

The default value is True.

Search

The field is not available for search.

Fields List

Field Type Req R/O Base Search
ciphers String N N N N/A
client_cert String N N N N/A
comment String N N Y : = ~
content_check String N N N N/A
content_check_input String N N N N/A
content_check_op String N N N N/A
content_check_regex String N N N N/A
content_extract_group Unsigned int N N N N/A
content_extract_type String N N N N/A
content_extract_value String N N N N/A
enable_sni Bool N N N N/A
extattrs Extattr N N N ext
interval Unsigned int N N N N/A
name String Y N Y : = ~
port Unsigned int N N N N/A
request String N N N N/A
result String N N N N/A
result_code Unsigned int N N N N/A
retry_down Unsigned int N N N N/A
retry_up Unsigned int N N N N/A
secure Bool N N N N/A
timeout Unsigned int N N N N/A
validate_cert Bool N N N N/A