HttpQueryProperties¶
- class oci.stack_monitoring.models.HttpQueryProperties(**kwargs)¶
Bases:
MetricExtensionQueryPropertiesQuery properties applicable to HTTP type of collection method
Attributes:
A constant which can be used with the collection_method property of a MetricExtensionQueryProperties.
A constant which can be used with the collection_method property of a MetricExtensionQueryProperties.
A constant which can be used with the collection_method property of a MetricExtensionQueryProperties.
A constant which can be used with the collection_method property of a MetricExtensionQueryProperties.
A constant which can be used with the protocol_type property of a HttpQueryProperties.
A constant which can be used with the protocol_type property of a HttpQueryProperties.
A constant which can be used with the response_content_type property of a HttpQueryProperties.
A constant which can be used with the response_content_type property of a HttpQueryProperties.
A constant which can be used with the response_content_type property of a HttpQueryProperties.
A constant which can be used with the response_content_type property of a HttpQueryProperties.
[Required] Gets the collection_method of this MetricExtensionQueryProperties.
Gets the protocol_type of this HttpQueryProperties.
[Required] Gets the response_content_type of this HttpQueryProperties.
[Required] Gets the script_details of this HttpQueryProperties.
[Required] Gets the url of this HttpQueryProperties.
Methods:
__init__(**kwargs)Initializes a new HttpQueryProperties 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.
- COLLECTION_METHOD_HTTP = 'HTTP'¶
A constant which can be used with the collection_method property of a MetricExtensionQueryProperties. This constant has a value of “HTTP”
- COLLECTION_METHOD_JMX = 'JMX'¶
A constant which can be used with the collection_method property of a MetricExtensionQueryProperties. This constant has a value of “JMX”
- COLLECTION_METHOD_OS_COMMAND = 'OS_COMMAND'¶
A constant which can be used with the collection_method property of a MetricExtensionQueryProperties. This constant has a value of “OS_COMMAND”
- COLLECTION_METHOD_SQL = 'SQL'¶
A constant which can be used with the collection_method property of a MetricExtensionQueryProperties. This constant has a value of “SQL”
- PROTOCOL_TYPE_HTTP = 'HTTP'¶
A constant which can be used with the protocol_type property of a HttpQueryProperties. This constant has a value of “HTTP”
- PROTOCOL_TYPE_HTTPS = 'HTTPS'¶
A constant which can be used with the protocol_type property of a HttpQueryProperties. This constant has a value of “HTTPS”
- RESPONSE_CONTENT_TYPE_APPLICATION_JSON = 'APPLICATION_JSON'¶
A constant which can be used with the response_content_type property of a HttpQueryProperties. This constant has a value of “APPLICATION_JSON”
- RESPONSE_CONTENT_TYPE_APPLICATION_XML = 'APPLICATION_XML'¶
A constant which can be used with the response_content_type property of a HttpQueryProperties. This constant has a value of “APPLICATION_XML”
- RESPONSE_CONTENT_TYPE_TEXT_HTML = 'TEXT_HTML'¶
A constant which can be used with the response_content_type property of a HttpQueryProperties. This constant has a value of “TEXT_HTML”
- RESPONSE_CONTENT_TYPE_TEXT_PLAIN = 'TEXT_PLAIN'¶
A constant which can be used with the response_content_type property of a HttpQueryProperties. This constant has a value of “TEXT_PLAIN”
- __init__(**kwargs)¶
Initializes a new HttpQueryProperties object with values from keyword arguments. The default value of the
collection_methodattribute of this class isHTTPand it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):- Parameters
collection_method (str) – The value to assign to the collection_method property of this HttpQueryProperties. Allowed values for this property are: “OS_COMMAND”, “SQL”, “JMX”, “HTTP”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
url (str) – The value to assign to the url property of this HttpQueryProperties.
response_content_type (str) – The value to assign to the response_content_type property of this HttpQueryProperties. Allowed values for this property are: “TEXT_PLAIN”, “TEXT_HTML”, “APPLICATION_JSON”, “APPLICATION_XML”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
protocol_type (str) – The value to assign to the protocol_type property of this HttpQueryProperties. Allowed values for this property are: “HTTP”, “HTTPS”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
script_details (oci.stack_monitoring.models.HttpScriptFileDetails) – The value to assign to the script_details property of this HttpQueryProperties.
- property collection_method¶
[Required] Gets the collection_method of this MetricExtensionQueryProperties. Type of possible collection methods.
Allowed values for this property are: “OS_COMMAND”, “SQL”, “JMX”, “HTTP”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The collection_method of this MetricExtensionQueryProperties.
- Return type
str
- 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.
- property protocol_type¶
Gets the protocol_type of this HttpQueryProperties. Supported protocol of resources to be associated with this metric extension. This is optional and defaults to HTTPS, which uses secure connection to the URL
Allowed values for this property are: “HTTP”, “HTTPS”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The protocol_type of this HttpQueryProperties.
- Return type
str
- property response_content_type¶
[Required] Gets the response_content_type of this HttpQueryProperties. Type of content response given by the http(s) URL
Allowed values for this property are: “TEXT_PLAIN”, “TEXT_HTML”, “APPLICATION_JSON”, “APPLICATION_XML”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The response_content_type of this HttpQueryProperties.
- Return type
str
- property script_details¶
[Required] Gets the script_details of this HttpQueryProperties.
- Returns
The script_details of this HttpQueryProperties.
- Return type
- property url¶
[Required] Gets the url of this HttpQueryProperties. Http(s) end point URL
- Returns
The url of this HttpQueryProperties.
- Return type
str