Limited Alarm API querying

Bug #1224298 reported by Ladislav Smola
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ceilometer
Medium
Christian Martinez

Bug Description

Right now, the only attributes allowed for query are these parameters https://github.com/openstack/ceilometer/blob/master/ceilometer/storage/base.py#L211

I would need to add others like state (list all active alarms), meters (show only alarms of few meters)...

But the best would be just to allow to filter by any attribute from http://docs.openstack.org/developer/ceilometer/webapi/v2.html#alarms . Do you see some reason why this could be a problem?

Julien Danjou (jdanjou)
Changed in ceilometer:
status: New → Triaged
Julien Danjou (jdanjou)
Changed in ceilometer:
importance: Undecided → Medium
milestone: none → icehouse-1
Julien Danjou (jdanjou)
Changed in ceilometer:
milestone: icehouse-1 → none
Revision history for this message
Christian Martinez (christian-martinez) wrote :

After discussion on IRC, "alarm filtering should be possible for these attributes: [name, meter, state, id, project_id] "

Changed in ceilometer:
assignee: nobody → Christian Martinez (christian-martinez)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ceilometer (master)

Fix proposed to branch: master
Review: https://review.openstack.org/96582

Changed in ceilometer:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ceilometer (master)

Reviewed: https://review.openstack.org/96582
Committed: https://git.openstack.org/cgit/openstack/ceilometer/commit/?id=ab82354b5b12f59e20213702284bc43404b560b1
Submitter: Jenkins
Branch: master

commit ab82354b5b12f59e20213702284bc43404b560b1
Author: Christian Martinez <email address hidden>
Date: Thu May 29 20:40:11 2014 +0000

    Adding alarm list filtering by state and meter

    Adding alarm list filtering by state for SQLAlchemy, PyMongo and
    HBase drivers
    Adding alarm list filtering by meter only for SQLAlchemy and PyMongo
    drivers.

    Closes-Bug: #1224298

    Change-Id: I393e2988142878d33363438671c240199ede65a4

Changed in ceilometer:
status: In Progress → Fix Committed
Eoghan Glynn (eglynn)
Changed in ceilometer:
milestone: none → juno-2
Changed in ceilometer:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in ceilometer:
milestone: juno-2 → 2014.2
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers