# Datastream V1 API - Module Google::Cloud::Datastream::V1::Stream::State (v1.7.0)

1.7.0 (latest) 1.6.0 1.5.1 1.4.0 1.3.0 1.2.1 1.1.1 1.0.0 0.13.0 0.12.0 0.11.0 0.10.1 0.9.2 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Datastream V1 API module Google::Cloud::Datastream::V1::Stream::State.

Stream state.

## Constants

### STATE_UNSPECIFIED

**value:** 0  
Unspecified stream state.

### NOT_STARTED

**value:** 1  
The stream has been created but has not yet started streaming data.

### RUNNING

**value:** 2  
The stream is running.

### PAUSED

**value:** 3  
The stream is paused.

### MAINTENANCE

**value:** 4  
The stream is in maintenance mode.


<br />

Updates are rejected on the resource in this state.

### FAILED

**value:** 5  
The stream is experiencing an error that is preventing data from being
streamed.

### FAILED_PERMANENTLY

**value:** 6  
The stream has experienced a terminal failure.

### STARTING

**value:** 7  
The stream is starting, but not yet running.

### DRAINING

**value:** 8  
The Stream is no longer reading new events, but still writing events in
the buffer.