deleteFilter method

Future<void> deleteFilter({
  1. required String detectorId,
  2. required String filterName,
})

Deletes the filter specified by the filter name.

May throw BadRequestException. May throw InternalServerErrorException.

Parameter detectorId : The unique ID of the detector that the filter is associated with.

Parameter filterName : The name of the filter that you want to delete.

Implementation

Future<void> deleteFilter({
  required String detectorId,
  required String filterName,
}) async {
  ArgumentError.checkNotNull(detectorId, 'detectorId');
  _s.validateStringLength(
    'detectorId',
    detectorId,
    1,
    300,
    isRequired: true,
  );
  ArgumentError.checkNotNull(filterName, 'filterName');
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/detector/${Uri.encodeComponent(detectorId)}/filter/${Uri.encodeComponent(filterName)}',
    exceptionFnMap: _exceptionFns,
  );
}