InlineDetectAnomaliesRequest

class oci.ai_anomaly_detection.models.InlineDetectAnomaliesRequest(**kwargs)

Bases: oci.ai_anomaly_detection.models.detect_anomalies_details.DetectAnomaliesDetails

This is the specialised JSON format that is accepted as training data, with an additional field for ‘requestType’. This is a required field used deciding whether it is an inline request or contains embedded data.

Attributes

REQUEST_TYPE_BASE64_ENCODED str(object=’’) -> str
REQUEST_TYPE_INLINE str(object=’’) -> str
data [Required] Gets the data of this InlineDetectAnomaliesRequest.
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.
signal_names [Required] Gets the signal_names of this InlineDetectAnomaliesRequest.

Methods

__init__(**kwargs) Initializes a new InlineDetectAnomaliesRequest 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.
REQUEST_TYPE_BASE64_ENCODED = 'BASE64_ENCODED'
REQUEST_TYPE_INLINE = 'INLINE'
__init__(**kwargs)

Initializes a new InlineDetectAnomaliesRequest object with values from keyword arguments. The default value of the request_type attribute of this class is INLINE 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 InlineDetectAnomaliesRequest.
  • request_type (str) – The value to assign to the request_type property of this InlineDetectAnomaliesRequest. Allowed values for this property are: “INLINE”, “BASE64_ENCODED”
  • sensitivity (float) – The value to assign to the sensitivity property of this InlineDetectAnomaliesRequest.
  • signal_names (list[str]) – The value to assign to the signal_names property of this InlineDetectAnomaliesRequest.
  • data (list[oci.ai_anomaly_detection.models.DataItem]) – The value to assign to the data property of this InlineDetectAnomaliesRequest.
data

[Required] Gets the data of this InlineDetectAnomaliesRequest. Array containing data.

Returns:The data of this InlineDetectAnomaliesRequest.
Return type:list[oci.ai_anomaly_detection.models.DataItem]
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
signal_names

[Required] Gets the signal_names of this InlineDetectAnomaliesRequest. List of signal names.

Returns:The signal_names of this InlineDetectAnomaliesRequest.
Return type:list[str]