Announcements
This site is in read only until July 22 as we migrate to a new platform; refer to this community post for more details.
Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Filter for request_path

Not applicable

I am calling this API and am wondering if I can filter the by request_path like 'v1/resource/%'

v1/o/epsilon/environments/prod/stats/request_path?select=count(request_uri)&timeRange=4/15/2015 13:40~4/16/2015 14:40&timeUnit=hour

I am getting this error am not sure where to go to find the possible filters allowed for this API.

Invalid filter expression (request_path LIKE 'v1/resource/%')

Thanks

Solved Solved
0 8 1,077
2 ACCEPTED SOLUTIONS

Not applicable

I have tried with filter (apiproxy like 'ap%') and it worked for me. There was no error like invalid filter expression. Note that content inside single quote behaves like a string.

Following doc link has details on the filter:

http://apigee.com/docs/analytics-services/reference/analytics-reference

View solution in original post

Not applicable

Hello Ajay,

I think the main issue here is that analytics API is not exactly SQL and uppercase vs lowercase actually makes a difference. You are using "LIKE" and the API is expecting "like" instead.

I just tried:

o/{org}/environments/{env}/stats/request_path?select=count(request_uri)&timeRange=4/15/2015 13:40~4/16/2015 14:40&timeUnit=hour&filter=(request_path+like+'/v1%')

and it worked fine for me.

I hope this helps.

View solution in original post

8 REPLIES 8