Bug 1042266

Summary: [RFE][ceilometer]: Complex filter expressions in API queries
Product: Red Hat OpenStack Reporter: RHOS Integration <rhos-integ>
Component: RFEsAssignee: RHOS Maint <rhos-maint>
Status: CLOSED UPSTREAM QA Contact:
Severity: high Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: acathrow, markmc, yeylon
Target Milestone: Upstream M3Keywords: FutureFeature
Target Release: 5.0 (RHEL 7)   
Hardware: Unspecified   
OS: Unspecified   
URL: https://blueprints.launchpad.net/ceilometer/+spec/complex-filter-expressions-in-api-queries
Whiteboard: upstream_milestone_icehouse-3 upstream_status_implemented upstream_definition_approved
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-03-19 15:29:55 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description RHOS Integration 2013-12-12 21:35:03 UTC
Cloned from launchpad blueprint https://blueprints.launchpad.net/ceilometer/+spec/complex-filter-expressions-in-api-queries.

Description:

The current version of the API supports only the AND relation between the fields of the query filters. The idea is to provide the possibility to use both AND and OR relations and build complex filtering expressions with them.

In order to support these complex filters:
* a query grammar should be defined, which 
** satisfies the current needs
** is extendable to include further demands later
* the complex filter expressions should be convertible into JSON strings
* POST requests have to be used instead of GET, to be able to send the JSON query filter string in the body of the request
* consider the creation of a new REST resource for queries 
** to avoid the difficulties during the modification of the current solution 
** keep the API as simple and modular as possible
* choose a DB driver for a proof of concept implementation

The etherpad with further details and comments, can be found here:
https://etherpad.openstack.org/p/Ceilometer_extended_API_query_filtering


Specification URL (additional information):

None