// GetConnectorStatus returns the current status of the connector, including whether it is running,
// failed or paused, which worker it is assigned to, error information if it has failed,
// and the state of all its tasks.
GetConnectorStatus returns the current status of the connector, including whether it is running,
failed or paused, which worker it is assigned to, error information if it has failed,
and the state of all its tasks.
// GetConnectorStatus returns the current status of the connector including whether it is running // failed or paused which worker it is assigned to error information if it has failed // and the state of all its tasks .
func (c *Client) GetConnectorStatus(clusterName, name string) (cs ConnectorStatus, err error) {
	if clusterName == "" {
		err = errRequired("clusterName")
		return
	}
	if name == "" {
		err = errRequired("name")
		return
	}
	path := fmt.Sprintf(connectorPath+"/status", clusterName, name)
	resp, respErr := c.Do(http.MethodGet, path, "", nil)
	if respErr != nil {
		err = respErr
		return
	}
	err = c.ReadJSON(resp, &cs)
	return
}
func ( c * Client ) GetConnectorStatus ( clusterName , name string ) ( cs ConnectorStatus , err error ) { if clusterName == " " { err = errRequired ( " " ) return } if name == " " { err = errRequired ( " " ) return } path := fmt . Sprintf ( connectorPath + " " , clusterName , name ) resp , respErr := c . Do ( http . MethodGet , path , " " , nil ) if respErr != nil { err = respErr return } err = c . ReadJSON ( resp , & cs ) return }
GetConnectorStatus returns the current status of the connector, including whether it is running,
failed or paused, which worker it is assigned to, error information if it has failed,
and the state of all its tasks.
GetConnectorStatus returns the current status of the connector including whether it is running failed or paused which worker it is assigned to error information if it has failed and the state of all its tasks .
// # Get connector status // GET /api/proxy-connect/(string: clusterName)/connectors/(string: name)/status