Metrics returns the client metrics.
()
| 637 | |
| 638 | // Metrics returns the client metrics. |
| 639 | func (c *BaseClient) Metrics() (elastictransport.Metrics, error) { |
| 640 | if mt, ok := c.Transport.(elastictransport.Measurable); ok { |
| 641 | return mt.Metrics() |
| 642 | } |
| 643 | return elastictransport.Metrics{}, errors.New("transport is missing method Metrics()") |
| 644 | } |
| 645 | |
| 646 | // DiscoverNodes reloads the client connections by fetching information from the cluster. |
| 647 | func (c *BaseClient) DiscoverNodes() error { |
no outgoing calls