def last_detect(body, custom_headers:nil)
      response = last_detect_async(body, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
def last_detect(body, custom_headers:nil)
      response = last_detect_async(body, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
Detect anomaly status of the latest point in time series.

 This operation generates a model using points before the latest one. With
 this method, only historical points are used to determine whether the target
 point is an anomaly. The latest point detecting operation matches the
 scenario of real-time monitoring of business metrics.

 @param body [Request] Time series points and period if needed. Advanced model
 parameters can also be set in the request.
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

 @return [LastDetectResponse] operation results.