def METHOD_NAME(filters):
	server_filters = {"status": "Active"}
	if filters.team:
		server_filters["team"] = filters.team
	if filters.exclude_self_hosted:
		server_filters["is_self_hosted"] = False
	server_types = (
		[filters.server_type]
		if filters.server_type
		else [
			"Server",
			"Database Server",
			"Proxy Server",
			"Log Server",
			"Monitor Server",
			"Registry Server",
			"Trace Server",
			"Analytics Server",
		]
	)
	servers = []
	for server_type in server_types:
		for server in frappe.get_all(server_type, server_filters):
			server.update({"server_type": server_type})
			servers.append(server)
	return servers