~ubuntu-branches/ubuntu/trusty/ceilometer/trusty-proposed

« back to all changes in this revision

Viewing changes to ceilometer/storage/impl_log.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short, James Page, Chuck Short
  • Date: 2014-01-23 15:08:11 UTC
  • mfrom: (1.1.11)
  • Revision ID: package-import@ubuntu.com-20140123150811-1zaismsuyh1hcl8y
Tags: 2014.1~b2-0ubuntu1
[ James Page ]
* d/control: Add python-jsonpath-rw to BD's.
* d/p/fix-setup-requirements.patch: Bump WebOb to support < 1.4.
 (LP: #1261101)

[ Chuck Short ]
* New upstream version.
* debian/control, debian/ceilometer-common.install: Split out
  ceilometer-alarm-evaluator and ceilometer-alarm-notifier into their
  own packages. (LP: #1250002)
* debian/ceilometer-agent-central.logrotate,
  debian/ceilometer-agent-compute.logrotate,
  debian/ceilometer-api.logrotate,
  debian/ceilometer-collector.logrotate: Add logrotate files, 
  thanks to Ahmed Rahal. (LP: #1224223)
* Fix typos in upstart files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
"""Simple logging storage backend.
19
19
"""
20
20
 
 
21
from ceilometer.openstack.common.gettextutils import _  # noqa
21
22
from ceilometer.openstack.common import log
22
23
from ceilometer.storage import base
23
24
 
175
176
        return alarm
176
177
 
177
178
    def delete_alarm(self, alarm_id):
178
 
        """Delete a alarm
179
 
        """
180
 
 
181
 
    def get_alarm_changes(self, alarm_id, on_behalf_of,
182
 
                          user=None, project=None, type=None,
183
 
                          start_timestamp=None, start_timestamp_op=None,
184
 
                          end_timestamp=None, end_timestamp_op=None):
185
 
        """Yields list of AlarmChanges describing alarm history
186
 
 
187
 
        Changes are always sorted in reverse order of occurence, given
188
 
        the importance of currency.
189
 
 
190
 
        Segregation for non-administrative users is done on the basis
191
 
        of the on_behalf_of parameter. This allows such users to have
192
 
        visibility on both the changes initiated by themselves directly
193
 
        (generally creation, rule changes, or deletion) and also on those
194
 
        changes initiated on their behalf by the alarming service (state
195
 
        transitions after alarm thresholds are crossed).
196
 
 
197
 
        :param alarm_id: ID of alarm to return changes for
198
 
        :param on_behalf_of: ID of tenant to scope changes query (None for
199
 
                             administrative user, indicating all projects)
200
 
        :param user: Optional ID of user to return changes for
201
 
        :param project: Optional ID of project to return changes for
202
 
        :project type: Optional change type
203
 
        :param start_timestamp: Optional modified timestamp start range
204
 
        :param start_timestamp_op: Optional timestamp start range operation
205
 
        :param end_timestamp: Optional modified timestamp end range
206
 
        :param end_timestamp_op: Optional timestamp end range operation
207
 
        """
208
 
        raise NotImplementedError('Alarm history not implemented')
209
 
 
210
 
    def record_alarm_change(self, alarm_change):
211
 
        """Record alarm change event.
212
 
        """
213
 
        raise NotImplementedError('Alarm history not implemented')
214
 
 
215
 
    def record_events(self, events):
216
 
        """Write the events.
217
 
 
218
 
        :param events: a list of model.Event objects.
219
 
        """
220
 
        raise NotImplementedError('Events not implemented.')
221
 
 
222
 
    def get_events(self, event_filter):
223
 
        """Return an iterable of model.Event objects.
224
 
 
225
 
        :param event_filter: EventFilter instance
226
 
        """
227
 
        raise NotImplementedError('Events not implemented.')
 
179
        """Delete a alarm."""