HttpQueryProperties¶
-
class
oci.stack_monitoring.models.HttpQueryProperties(**kwargs)¶ Bases:
oci.stack_monitoring.models.metric_extension_query_properties.MetricExtensionQueryPropertiesQuery properties applicable to HTTP type of collection method
Attributes
COLLECTION_METHOD_HTTPstr(object=’’) -> str COLLECTION_METHOD_JMXstr(object=’’) -> str COLLECTION_METHOD_OS_COMMANDstr(object=’’) -> str COLLECTION_METHOD_SQLstr(object=’’) -> str PROTOCOL_TYPE_HTTPA constant which can be used with the protocol_type property of a HttpQueryProperties. PROTOCOL_TYPE_HTTPSA constant which can be used with the protocol_type property of a HttpQueryProperties. RESPONSE_CONTENT_TYPE_APPLICATION_JSONA constant which can be used with the response_content_type property of a HttpQueryProperties. RESPONSE_CONTENT_TYPE_APPLICATION_XMLA constant which can be used with the response_content_type property of a HttpQueryProperties. RESPONSE_CONTENT_TYPE_TEXT_HTMLA constant which can be used with the response_content_type property of a HttpQueryProperties. RESPONSE_CONTENT_TYPE_TEXT_PLAINA constant which can be used with the response_content_type property of a HttpQueryProperties. collection_method[Required] Gets the collection_method of this MetricExtensionQueryProperties. protocol_typeGets the protocol_type of this HttpQueryProperties. response_content_type[Required] Gets the response_content_type of this HttpQueryProperties. script_details[Required] Gets the script_details of this HttpQueryProperties. url[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'¶
-
COLLECTION_METHOD_JMX= 'JMX'¶
-
COLLECTION_METHOD_OS_COMMAND= 'OS_COMMAND'¶
-
COLLECTION_METHOD_SQL= '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.
-
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.
-
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
-
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
-
script_details¶ [Required] Gets the script_details of this HttpQueryProperties.
Returns: The script_details of this HttpQueryProperties. Return type: oci.stack_monitoring.models.HttpScriptFileDetails
-
url¶ [Required] Gets the url of this HttpQueryProperties. Http(s) end point URL
Returns: The url of this HttpQueryProperties. Return type: str
-