SP.BWsaClient.createStream Method (sp.core)
Creates a stream of Software Quality Metrics (SQM) using the specified ID, type, width, and number of rows of data.
This method does not create the stream if any of the following conditions is true:
The user did not opt in Software Quality Metrics (SQM) data collection (the IsUserOptedIn returns false).
The value of the WsaStreamEntryId parameter is less than 1 or greater than 0x7FFFFFFF.
The value of the dwStreamType parameter is not one of the BWSAStreamTypes enumeration values.
The value of the dwWidth parameter is less than 1 or greater than 9.
The limit of the maximum size of the data collected (64 KB) has been reached.
A stream whose ID is WsaStreamEntryId already exists.