def METHOD_NAME(
    self,
    data: bool,
    request_params: RequestParameters,
) -> None:
    maintenance_mode = MaintenanceMode.from_bool(data)
    self._set_maintenance_data(
        data=maintenance_mode.value,
        cache_id=ConfigDataAppKeys.MAINTENANCE_MODE.value,
        db_call=lambda x: self.repo.save_maintenance_mode(x),
        request_params=request_params,
    )
    self.event_bus.push(
        Event(
            type=EventType.MAINTENANCE_MODE,
            payload=data,
            permissions=PermissionInfo(public_mode=PublicMode.READ),
        )
    )