BaseHostname returns the hostname component of the configured API base URL. Falls back to the raw baseURL string if parsing fails.
()
| 329 | // BaseHostname returns the hostname component of the configured API base URL. |
| 330 | // Falls back to the raw baseURL string if parsing fails. |
| 331 | func (c *Client) BaseHostname() string { |
| 332 | u, err := url.Parse(c.baseURL) |
| 333 | if err != nil { |
| 334 | return c.baseURL |
| 335 | } |
| 336 | return u.Hostname() |
| 337 | } |
| 338 | |
| 339 | // GetFreshClusterStatus retrieves cluster status bypassing cache completely. |
| 340 | // This includes VM enrichment with guest agent data for full accuracy. |