namespace Monitoring.Common;

public static class EnvironmentVariables
{
	public static string Get(string name)
	{
		return Environment.GetEnvironmentVariable(name)
			?? throw new Exception($"Environment variable {name} is not found");
	}

	public static bool Has(string name)
	{
		return !string.IsNullOrEmpty(Environment.GetEnvironmentVariable(name));
	}
}
