~ubuntu-branches/ubuntu/vivid/ceilometer/vivid

« back to all changes in this revision

Viewing changes to ceilometer/alarm/storage/base.py

  • Committer: Package Import Robot
  • Author(s): James Page, Corey Bryant, James Page
  • Date: 2015-02-19 14:59:07 UTC
  • mfrom: (1.2.3)
  • Revision ID: package-import@ubuntu.com-20150219145907-9jojybdsl64zcn14
Tags: 2015.1~b2-0ubuntu1
[ Corey Bryant ]
* New upstream release.
  - d/control: Align requirements with upstream.
  - d/p/skip-test.patch: Rebased.

[ James Page ]
* d/rules,d/p/skip-gabbi.patch: Skip tests that rely on python-gabbi until
  packaging and MIR is complete.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#
2
2
# Copyright 2012 New Dream Network, LLC (DreamHost)
3
3
#
4
 
# Author: Doug Hellmann <doug.hellmann@dreamhost.com>
5
 
# Author: Mehdi Abaakouk <mehdi.abaakouk@enovance.com>
6
 
#
7
4
# Licensed under the Apache License, Version 2.0 (the "License"); you may
8
5
# not use this file except in compliance with the License. You may obtain
9
6
# a copy of the License at
45
42
    @staticmethod
46
43
    def get_alarms(name=None, user=None, state=None, meter=None,
47
44
                   project=None, enabled=None, alarm_id=None, pagination=None,
48
 
                   alarm_type=None):
 
45
                   alarm_type=None, severity=None):
49
46
        """Yields a lists of alarms that match filters.
50
47
 
51
48
        :param name: Optional name for alarm.
57
54
        :param alarm_id: Optional alarm_id to return one alarm.
58
55
        :param pagination: Optional pagination query.
59
56
        :param alarm_type: Optional alarm type.
 
57
        :parmr severity: Optional alarm severity
60
58
        """
61
59
        raise ceilometer.NotImplementedError('Alarms not implemented')
62
60
 
81
79
    @staticmethod
82
80
    def get_alarm_changes(alarm_id, on_behalf_of,
83
81
                          user=None, project=None, alarm_type=None,
84
 
                          start_timestamp=None, start_timestamp_op=None,
85
 
                          end_timestamp=None, end_timestamp_op=None):
 
82
                          severity=None, start_timestamp=None,
 
83
                          start_timestamp_op=None, end_timestamp=None,
 
84
                          end_timestamp_op=None):
86
85
        """Yields list of AlarmChanges describing alarm history
87
86
 
88
87
        Changes are always sorted in reverse order of occurrence, given
101
100
        :param user: Optional ID of user to return changes for
102
101
        :param project: Optional ID of project to return changes for
103
102
        :param alarm_type: Optional change type
 
103
        :param severity: Optional change severity
104
104
        :param start_timestamp: Optional modified timestamp start range
105
105
        :param start_timestamp_op: Optional timestamp start range operation
106
106
        :param end_timestamp: Optional modified timestamp end range