@@ -11,7 +11,7 @@ import (
1111
1212// List events of an app process.
1313func ListPodEvents (c * drycc.Client , appID string , podName string , results int ) (api.AppEvents , int , error ) {
14- u := fmt .Sprintf ("/v2/apps/%s/pods/%s/events/ " , appID , podName )
14+ u := fmt .Sprintf ("/v2/apps/%s/events/?pod_name=%s " , appID , podName )
1515 body , count , reqErr := c .LimitedRequest (u , results )
1616 if reqErr != nil && ! drycc .IsErrAPIMismatch (reqErr ) {
1717 return []api.AppEvent {}, - 1 , reqErr
@@ -27,7 +27,7 @@ func ListPodEvents(c *drycc.Client, appID string, podName string, results int) (
2727
2828// List events of an app ptype.
2929func ListPtypeEvents (c * drycc.Client , appID string , ptype string , results int ) (api.AppEvents , int , error ) {
30- u := fmt .Sprintf ("/v2/apps/%s/ptypes/ %s-%s/events/ " , appID , appID , ptype )
30+ u := fmt .Sprintf ("/v2/apps/%s/events/?ptype_name= %s-%s" , appID , appID , ptype )
3131 body , count , reqErr := c .LimitedRequest (u , results )
3232 if reqErr != nil && ! drycc .IsErrAPIMismatch (reqErr ) {
3333 return []api.AppEvent {}, - 1 , reqErr
0 commit comments