As far as I understand, Stream Analytics just uses the same API you would use yourself if updating the data directly yourself via the API.
There's some information here regarding the retention policies, I think the standard retention is 200,000 rows,
https://powerbi.microsoft.com/en-us/blog/automatic-retention-policy-for-real-time-data/
Hope that helps