# API Reference v10.3.1 (Python)

## AlertEvent (data class)

Module: zaber_motion.ascii

Alert message received from the device.

To use this type, add `from zaber_motion.ascii import AlertEvent` to the top of your source code.

Related Guides:

- [Events](https://software.zaber.com/motion-library/docs/guides/library_features/events.md)

### Properties

#### `device_address`

`alert_event.device_address`

Type: `int`

Number of the device that sent the message.

#### `axis_number`

`alert_event.axis_number`

Type: `int`

Number of the axis which the response applies to. Zero denotes device scope.

#### `status`

`alert_event.status`

Type: `str`

The device status contains BUSY when the axis is moving and IDLE otherwise.

#### `warning_flag`

`alert_event.warning_flag`

Type: `str`

The warning flag contains the highest priority warning currently active for the device or axis.

#### `data`

`alert_event.data`

Type: `str`

Response data which varies depending on the request.
