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

« back to all changes in this revision

Viewing changes to ceilometer/network/notifications.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: Julien Danjou <julien@danjou.info>
5
 
#
6
4
# Licensed under the Apache License, Version 2.0 (the "License"); you may
7
5
# not use this file except in compliance with the License. You may obtain
8
6
# a copy of the License at
19
17
 
20
18
"""
21
19
 
22
 
from oslo.config import cfg
23
20
import oslo.messaging
 
21
from oslo_config import cfg
24
22
 
25
23
from ceilometer.agent import plugin_base
26
24
from ceilometer.i18n import _
181
179
    Handle pool.{create.end|update.*|exists} notifications from neutron.
182
180
    """
183
181
    resource_name = 'pool'
 
182
    counter_name = 'network.services.lb.pool'
184
183
 
185
184
 
186
185
class Vip(NetworkNotificationBase):
189
188
    Handle vip.{create.end|update.*|exists} notifications from neutron.
190
189
    """
191
190
    resource_name = 'vip'
 
191
    counter_name = 'network.services.lb.vip'
192
192
 
193
193
 
194
194
class Member(NetworkNotificationBase):
197
197
    Handle member.{create.end|update.*|exists} notifications from neutron.
198
198
    """
199
199
    resource_name = 'member'
 
200
    counter_name = 'network.services.lb.member'
200
201
 
201
202
 
202
203
class HealthMonitor(NetworkNotificationBase):
206
207
    from neutron.
207
208
    """
208
209
    resource_name = 'health_monitor'
 
210
    counter_name = 'network.services.lb.health_monitor'
209
211
 
210
212
 
211
213
class Firewall(NetworkNotificationBase):
214
216
    Handle firewall.{create.end|update.*|exists} notifications from neutron.
215
217
    """
216
218
    resource_name = 'firewall'
 
219
    counter_name = 'network.services.firewall'
217
220
 
218
221
 
219
222
class FirewallPolicy(NetworkNotificationBase):
223
226
    from neutron.
224
227
    """
225
228
    resource_name = 'firewall_policy'
 
229
    counter_name = 'network.services.firewall.policy'
226
230
 
227
231
 
228
232
class FirewallRule(NetworkNotificationBase):
232
236
    from neutron.
233
237
    """
234
238
    resource_name = 'firewall_rule'
 
239
    counter_name = 'network.services.firewall.rule'
235
240
 
236
241
 
237
242
class VPNService(NetworkNotificationBase):
240
245
    Handle vpnservice.{create.end|update.*|exists} notifications from neutron.
241
246
    """
242
247
    resource_name = 'vpnservice'
 
248
    counter_name = 'network.services.vpn'
243
249
 
244
250
 
245
251
class IPSecPolicy(NetworkNotificationBase):
248
254
    Handle pool.{create.end|update.*|exists} notifications from neutron.
249
255
    """
250
256
    resource_name = 'ipsecpolicy'
 
257
    counter_name = 'network.services.vpn.ipsecpolicy'
251
258
 
252
259
 
253
260
class IKEPolicy(NetworkNotificationBase):
256
263
    Handle ikepolicy.{create.end|update.*|exists} notifications from neutron.
257
264
    """
258
265
    resource_name = 'ikepolicy'
 
266
    counter_name = 'network.services.vpn.ikepolicy'
259
267
 
260
268
 
261
269
class IPSecSiteConnection(NetworkNotificationBase):
265
273
    notifications from neutron.
266
274
    """
267
275
    resource_name = 'ipsec_site_connection'
 
276
    counter_name = 'network.services.vpn.connections'