package o11y

import (
	"fmt"
	"strings"
)

// InternalReadBizType returns the routing biz type used by Clinic proxies
// when they call an O11y internal-read endpoint.
func InternalReadBizType(env, deployType string) string {
	switch strings.ToLower(deployType) {
	case PremiumType, NgHostType:
		return fmt.Sprintf("%s-%s", env, ngBizType)
	case ByocType, ByocHostType:
		return byocBizType
	default:
		if env == "prod" {
			return dedicatedBizType
		}
		return fmt.Sprintf("%s-%s", env, dedicatedBizType)
	}
}
