EmbeddedDetectAnomaliesRequest¶
-
class
oci.ai_anomaly_detection.models.
EmbeddedDetectAnomaliesRequest
(**kwargs)¶ Bases:
oci.ai_anomaly_detection.models.detect_anomalies_details.DetectAnomaliesDetails
The request body when the user selects to provide byte data in detect call which is Base64 encoded. The default type of the data is CSV and can be JSON by setting the ‘contentType’.
Attributes
CONTENT_TYPE_CSV
A constant which can be used with the content_type property of a EmbeddedDetectAnomaliesRequest. CONTENT_TYPE_JSON
A constant which can be used with the content_type property of a EmbeddedDetectAnomaliesRequest. REQUEST_TYPE_BASE64_ENCODED
str(object=’’) -> str REQUEST_TYPE_INLINE
str(object=’’) -> str content
[Required] Gets the content of this EmbeddedDetectAnomaliesRequest. content_type
Gets the content_type of this EmbeddedDetectAnomaliesRequest. model_id
[Required] Gets the model_id of this DetectAnomaliesDetails. request_type
[Required] Gets the request_type of this DetectAnomaliesDetails. sensitivity
Gets the sensitivity of this DetectAnomaliesDetails. Methods
__init__
(**kwargs)Initializes a new EmbeddedDetectAnomaliesRequest 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. -
CONTENT_TYPE_CSV
= 'CSV'¶ A constant which can be used with the content_type property of a EmbeddedDetectAnomaliesRequest. This constant has a value of “CSV”
-
CONTENT_TYPE_JSON
= 'JSON'¶ A constant which can be used with the content_type property of a EmbeddedDetectAnomaliesRequest. This constant has a value of “JSON”
-
REQUEST_TYPE_BASE64_ENCODED
= 'BASE64_ENCODED'¶
-
REQUEST_TYPE_INLINE
= 'INLINE'¶
-
__init__
(**kwargs)¶ Initializes a new EmbeddedDetectAnomaliesRequest object with values from keyword arguments. The default value of the
request_type
attribute of this class isBASE64_ENCODED
and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):Parameters: - model_id (str) – The value to assign to the model_id property of this EmbeddedDetectAnomaliesRequest.
- request_type (str) – The value to assign to the request_type property of this EmbeddedDetectAnomaliesRequest. Allowed values for this property are: “INLINE”, “BASE64_ENCODED”
- sensitivity (float) – The value to assign to the sensitivity property of this EmbeddedDetectAnomaliesRequest.
- content_type (str) – The value to assign to the content_type property of this EmbeddedDetectAnomaliesRequest. Allowed values for this property are: “CSV”, “JSON”
- content (str) – The value to assign to the content property of this EmbeddedDetectAnomaliesRequest.
-
content
¶ [Required] Gets the content of this EmbeddedDetectAnomaliesRequest.
Returns: The content of this EmbeddedDetectAnomaliesRequest. Return type: str
-
content_type
¶ Gets the content_type of this EmbeddedDetectAnomaliesRequest. Allowed values for this property are: “CSV”, “JSON”
Returns: The content_type of this EmbeddedDetectAnomaliesRequest. 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.
-
model_id
¶ [Required] Gets the model_id of this DetectAnomaliesDetails. The OCID of the trained model.
Returns: The model_id of this DetectAnomaliesDetails. Return type: str
-
request_type
¶ [Required] Gets the request_type of this DetectAnomaliesDetails. Type of request. This parameter is automatically populated by classes generated by the SDK. For raw curl requests, you must provide this field.
Allowed values for this property are: “INLINE”, “BASE64_ENCODED”
Returns: The request_type of this DetectAnomaliesDetails. Return type: str
-
sensitivity
¶ Gets the sensitivity of this DetectAnomaliesDetails. Sensitivity of the algorithm to detect anomalies - higher the value, more anomalies get flagged. The value estimated during training is used by default. You can choose to provide a custom value.
Returns: The sensitivity of this DetectAnomaliesDetails. Return type: float
-