c8159ea6cb
Create fault management REST API service Create fault management client and CLI shell Add a python extension for fault management application APIs Update fault management python APIs to use the python extension Update fault manager to retrieve the SNMP configuration from the config file Story: 2002828 Task: 22747 Depends-On: https://review.openstack.org/#/c/592176/ Change-Id: I888d8d23edf75d05d51594ccca55570ae366c848 Signed-off-by: Tao Liu <tao.liu@windriver.com>
31 lines
673 B
Python
31 lines
673 B
Python
#
|
|
# Copyright (c) 2018 Wind River Systems, Inc.
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
from oslo_versionedobjects import base as object_base
|
|
|
|
from fm.db import api as db_api
|
|
from fm.objects import base
|
|
from fm.objects import utils
|
|
|
|
|
|
class EventSuppression(base.FmObject):
|
|
|
|
VERSION = '1.0'
|
|
|
|
dbapi = db_api.get_instance()
|
|
|
|
fields = {
|
|
'id': int,
|
|
'uuid': utils.uuid_or_none,
|
|
'alarm_id': utils.str_or_none,
|
|
'description': utils.str_or_none,
|
|
'suppression_status': utils.str_or_none,
|
|
}
|
|
|
|
@object_base.remotable_classmethod
|
|
def get_by_uuid(cls, context, uuid):
|
|
return cls.dbapi.event_suppression_get(uuid)
|