package utils

import (
	"os"
	"time"
)

func GetInfo(isDevelopment bool) map[string]interface{} {
	hostname, _ := os.Hostname()
	return map[string]interface{}{
		"timestamps": time.Now().UnixMicro(),
		"hostname":   hostname,
		"environment": func() string {
			if isDevelopment {
				return "UAT"
			}
			return "PRO"
		}(),
	}
}
