Class LastDetectResponse
java.lang.Object
com.azure.ai.anomalydetector.models.LastDetectResponse
The response of last anomaly detection.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat
Get the expectedValue property: Expected value of the latest point.float
Get the lowerMargin property: Lower margin of the latest point.int
Get the period property: Frequency extracted from the series, zero means no recurrent pattern has been found.Get the severity property: The severity score for the last input point.int
Get the suggestedWindow property: Suggested input series points needed for detecting the latest point.float
Get the upperMargin property: Upper margin of the latest point.boolean
Get the isAnomaly property: Anomaly status of the latest point, true means the latest point is an anomaly either in negative direction or positive direction.boolean
Get the isNegativeAnomaly property: Anomaly status in negative direction of the latest point.boolean
Get the isPositiveAnomaly property: Anomaly status in positive direction of the latest point.setExpectedValue
(float expectedValue) Set the expectedValue property: Expected value of the latest point.setIsAnomaly
(boolean isAnomaly) Set the isAnomaly property: Anomaly status of the latest point, true means the latest point is an anomaly either in negative direction or positive direction.setIsNegativeAnomaly
(boolean isNegativeAnomaly) Set the isNegativeAnomaly property: Anomaly status in negative direction of the latest point.setIsPositiveAnomaly
(boolean isPositiveAnomaly) Set the isPositiveAnomaly property: Anomaly status in positive direction of the latest point.setLowerMargin
(float lowerMargin) Set the lowerMargin property: Lower margin of the latest point.setPeriod
(int period) Set the period property: Frequency extracted from the series, zero means no recurrent pattern has been found.setSeverity
(Float severity) Set the severity property: The severity score for the last input point.setSuggestedWindow
(int suggestedWindow) Set the suggestedWindow property: Suggested input series points needed for detecting the latest point.setUpperMargin
(float upperMargin) Set the upperMargin property: Upper margin of the latest point.
-
Constructor Details
-
LastDetectResponse
public LastDetectResponse()
-
-
Method Details
-
getPeriod
public int getPeriod()Get the period property: Frequency extracted from the series, zero means no recurrent pattern has been found.- Returns:
- the period value.
-
setPeriod
Set the period property: Frequency extracted from the series, zero means no recurrent pattern has been found.- Parameters:
period
- the period value to set.- Returns:
- the LastDetectResponse object itself.
-
getSuggestedWindow
public int getSuggestedWindow()Get the suggestedWindow property: Suggested input series points needed for detecting the latest point.- Returns:
- the suggestedWindow value.
-
setSuggestedWindow
Set the suggestedWindow property: Suggested input series points needed for detecting the latest point.- Parameters:
suggestedWindow
- the suggestedWindow value to set.- Returns:
- the LastDetectResponse object itself.
-
getExpectedValue
public float getExpectedValue()Get the expectedValue property: Expected value of the latest point.- Returns:
- the expectedValue value.
-
setExpectedValue
Set the expectedValue property: Expected value of the latest point.- Parameters:
expectedValue
- the expectedValue value to set.- Returns:
- the LastDetectResponse object itself.
-
getUpperMargin
public float getUpperMargin()Get the upperMargin property: Upper margin of the latest point. UpperMargin is used to calculate upperBoundary, which equals to expectedValue + (100 - marginScale)*upperMargin. If the value of latest point is between upperBoundary and lowerBoundary, it should be treated as normal value. By adjusting marginScale value, anomaly status of latest point can be changed.- Returns:
- the upperMargin value.
-
setUpperMargin
Set the upperMargin property: Upper margin of the latest point. UpperMargin is used to calculate upperBoundary, which equals to expectedValue + (100 - marginScale)*upperMargin. If the value of latest point is between upperBoundary and lowerBoundary, it should be treated as normal value. By adjusting marginScale value, anomaly status of latest point can be changed.- Parameters:
upperMargin
- the upperMargin value to set.- Returns:
- the LastDetectResponse object itself.
-
getLowerMargin
public float getLowerMargin()Get the lowerMargin property: Lower margin of the latest point. LowerMargin is used to calculate lowerBoundary, which equals to expectedValue - (100 - marginScale)*lowerMargin.- Returns:
- the lowerMargin value.
-
setLowerMargin
Set the lowerMargin property: Lower margin of the latest point. LowerMargin is used to calculate lowerBoundary, which equals to expectedValue - (100 - marginScale)*lowerMargin.- Parameters:
lowerMargin
- the lowerMargin value to set.- Returns:
- the LastDetectResponse object itself.
-
isAnomaly
public boolean isAnomaly()Get the isAnomaly property: Anomaly status of the latest point, true means the latest point is an anomaly either in negative direction or positive direction.- Returns:
- the isAnomaly value.
-
setIsAnomaly
Set the isAnomaly property: Anomaly status of the latest point, true means the latest point is an anomaly either in negative direction or positive direction.- Parameters:
isAnomaly
- the isAnomaly value to set.- Returns:
- the LastDetectResponse object itself.
-
isNegativeAnomaly
public boolean isNegativeAnomaly()Get the isNegativeAnomaly property: Anomaly status in negative direction of the latest point. True means the latest point is an anomaly and its real value is smaller than the expected one.- Returns:
- the isNegativeAnomaly value.
-
setIsNegativeAnomaly
Set the isNegativeAnomaly property: Anomaly status in negative direction of the latest point. True means the latest point is an anomaly and its real value is smaller than the expected one.- Parameters:
isNegativeAnomaly
- the isNegativeAnomaly value to set.- Returns:
- the LastDetectResponse object itself.
-
isPositiveAnomaly
public boolean isPositiveAnomaly()Get the isPositiveAnomaly property: Anomaly status in positive direction of the latest point. True means the latest point is an anomaly and its real value is larger than the expected one.- Returns:
- the isPositiveAnomaly value.
-
setIsPositiveAnomaly
Set the isPositiveAnomaly property: Anomaly status in positive direction of the latest point. True means the latest point is an anomaly and its real value is larger than the expected one.- Parameters:
isPositiveAnomaly
- the isPositiveAnomaly value to set.- Returns:
- the LastDetectResponse object itself.
-
getSeverity
Get the severity property: The severity score for the last input point. The larger the value is, the more sever the anomaly is. For normal points, the "severity" is always 0.- Returns:
- the severity value.
-
setSeverity
Set the severity property: The severity score for the last input point. The larger the value is, the more sever the anomaly is. For normal points, the "severity" is always 0.- Parameters:
severity
- the severity value to set.- Returns:
- the LastDetectResponse object itself.
-