batchUpdateDetector method
Future<BatchUpdateDetectorResponse>
batchUpdateDetector({
- 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 InternalFailureException.
May throw InvalidRequestException.
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 {
final $payload = <String, dynamic>{
'detectors': detectors,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/detectors',
exceptionFnMap: _exceptionFns,
);
return BatchUpdateDetectorResponse.fromJson(response);
}