batchUpdateDetector method

Future<BatchUpdateDetectorResponse> batchUpdateDetector({
  1. required List<UpdateDetectorRequest> detectors,
})

Updates the state, variable values, and timer settings of one or more detectors (instances) of a specified detector model.

May throw InvalidRequestException. May throw InternalFailureException. May throw ServiceUnavailableException. May throw ThrottlingException.

Parameter detectors : The list of detectors (instances) to update, along with the values to update.

Implementation

Future<BatchUpdateDetectorResponse> batchUpdateDetector({
  required List<UpdateDetectorRequest> detectors,
}) async {
  ArgumentError.checkNotNull(detectors, 'detectors');
  final $payload = <String, dynamic>{
    'detectors': detectors,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/detectors',
    exceptionFnMap: _exceptionFns,
  );
  return BatchUpdateDetectorResponse.fromJson(response);
}