in src/Elastic.Ingest.Elasticsearch/DataStreams/DataStreamName.cs [27:42]
public DataStreamName(string type, string dataSet = "generic", string @namespace = "default")
{
if (string.IsNullOrEmpty(type)) throw new ArgumentException($"{nameof(type)} can not be null or empty", nameof(type));
if (string.IsNullOrEmpty(dataSet)) throw new ArgumentException($"{nameof(dataSet)} can not be null or empty", nameof(dataSet));
if (string.IsNullOrEmpty(@namespace)) throw new ArgumentException($"{nameof(@namespace)} can not be null or empty", nameof(@namespace));
if (type.IndexOfAny(BadCharacters) > 0)
throw new ArgumentException($"{nameof(type)} can not contain any of {BadCharactersError}", nameof(type));
if (dataSet.IndexOfAny(BadCharacters) > 0)
throw new ArgumentException($"{nameof(dataSet)} can not contain any of {BadCharactersError}", nameof(type));
if (@namespace.IndexOfAny(BadCharacters) > 0)
throw new ArgumentException($"{nameof(@namespace)} can not contain any of {BadCharactersError}", nameof(type));
Type = type.ToLowerInvariant();
DataSet = dataSet.ToLowerInvariant();
Namespace = @namespace.ToLowerInvariant();
}