// UpdateProcessorRunners scales a processor to "numberOfRunners".
// See `LookupProcessorIdentifier`.
UpdateProcessorRunners scales a processor to "numberOfRunners".
See `LookupProcessorIdentifier`.
// UpdateProcessorRunners scales a processor to " numberOfRunners " . // See ` LookupProcessorIdentifier ` .
func (c *Client) UpdateProcessorRunners(processorID string, numberOfRunners int) error {
	if processorID == "" {
		return errRequired("processorID")
	}
	if numberOfRunners <= 0 {
		numberOfRunners = 1
	}
	path := fmt.Sprintf(processorPath+"/scale/%d", processorID, numberOfRunners)
	resp, err := c.Do(http.MethodPut, path, "", nil)
	if err != nil {
		return err
	}
	return resp.Body.Close()
}
func ( c * Client ) UpdateProcessorRunners ( processorID string , numberOfRunners int ) error { if processorID == " " { return errRequired ( " " ) } if numberOfRunners <= 0 { numberOfRunners = 1 } path := fmt . Sprintf ( processorPath + " " , processorID , numberOfRunners ) resp , err := c . Do ( http . MethodPut , path , " " , nil ) if err != nil { return err } return resp . Body . Close ( ) }
UpdateProcessorRunners scales a processor to "numberOfRunners".
UpdateProcessorRunners scales a processor to " numberOfRunners " .