func (m *Message) GetHostname() string {
	if m.Lambda != nil {
		return m.Lambda.ARN
	}
	hostname, err := util.GetHostname(context.TODO())
	if err != nil {
		// this scenario is not likely to happen since
		// the agent cannot start without a hostname
		hostname = "unknown"
	}
	return hostname
}
// GetHostname returns the hostname to applied the given log message
GetHostname returns the hostname to applied the given log message
// GetHostname returns the hostname to applied the given log message
func (m *Message) GetHostname() string {
	if m.Lambda != nil {
		return m.Lambda.ARN
	}
	hostname, err := util.GetHostname(context.TODO())
	if err != nil {
		hostname = "unknown"
	}
	return hostname
}
func ( m * Message ) GetHostname ( ) string { if m . Lambda != nil { return m . Lambda . ARN } hostname , err := util . GetHostname ( context . TODO ( ) ) if err != nil { hostname = " " } return hostname }
GetHostname returns the hostname to applied the given log message
GetHostname returns the hostname to applied the given log message
// this scenario is not likely to happen since // the agent cannot start without a hostname