code: func (client *Client) GetProcessInstances(processGUID string) ([]ProcessInstance, Warnings, error) {
  	request, err := client.newHTTPRequest(requestOptions{
  		RequestName: internal.GetProcessStatsRequest,
  		URIParams:   map[string]string{"process_guid": processGUID},
  	})
  	if err != nil {
  		return nil, nil, err
  	}
  
  	var fullInstancesList []ProcessInstance
  	warnings, err := client.paginate(request, ProcessInstance{}, func(item interface{}) error {
  		if instance, ok := item.(ProcessInstance); ok {
  			fullInstancesList = append(fullInstancesList, instance)
  		} else {
  			return ccerror.UnknownObjectInListError{
  				Expected:   ProcessInstance{},
  				Unexpected: item,
  			}
  		}
  		return nil
  	})
  
  	return fullInstancesList, warnings, err
  }
docs: // GetProcessInstances lists instance stats for a given process.