define stream metadata structure