From 8dcac1597b244e8d2de0f56608020acb394a0e6b Mon Sep 17 00:00:00 2001 From: Hidekazu Nakamura Date: Tue, 31 Oct 2017 10:01:52 +0900 Subject: [PATCH] Update doc and add release note about cdm-scoping This patch updates document and add release note for cdm-scoping. Change-Id: I8e9099aa5caf6bf17ea912e7b1a600af3b6d519d Partially-Implements: blueprint cdm-scoping --- doc/source/contributor/plugin/cdmc-plugin.rst | 10 ++++++++++ releasenotes/notes/cdm-scoping-8d9c307bad46bfa1.yaml | 6 ++++++ 2 files changed, 16 insertions(+) create mode 100644 releasenotes/notes/cdm-scoping-8d9c307bad46bfa1.yaml diff --git a/doc/source/contributor/plugin/cdmc-plugin.rst b/doc/source/contributor/plugin/cdmc-plugin.rst index a946a2d7d..3a172ef7a 100644 --- a/doc/source/contributor/plugin/cdmc-plugin.rst +++ b/doc/source/contributor/plugin/cdmc-plugin.rst @@ -28,6 +28,8 @@ In order to create a new cluster data model collector, you have to: - Implement its :py:meth:`~.BaseClusterDataModelCollector.execute` abstract method to return your entire cluster data model that this method should build. +- Implement its :py:meth:`~.BaseClusterDataModelCollector.audit_scope_handler` + abstract property to return your audit scope handler. - Implement its :py:meth:`~.Goal.notification_endpoints` abstract property to return the list of all the :py:class:`~.base.NotificationEndpoint` instances that will be responsible for handling incoming notifications in order to @@ -57,6 +59,10 @@ Here is an example showing how you can write a plugin called # Do something here... return model + @property + def audit_scope_handler(self): + return None + @property def notification_endpoints(self): return [] @@ -135,6 +141,10 @@ class method as followed: # Do something here... return model + @property + def audit_scope_handler(self): + return None + @property def notification_endpoints(self): return [] diff --git a/releasenotes/notes/cdm-scoping-8d9c307bad46bfa1.yaml b/releasenotes/notes/cdm-scoping-8d9c307bad46bfa1.yaml new file mode 100644 index 000000000..0421fcfc5 --- /dev/null +++ b/releasenotes/notes/cdm-scoping-8d9c307bad46bfa1.yaml @@ -0,0 +1,6 @@ +--- +features: + - | + Each CDM collector can have its own CDM scoper now. This changed Scope + JSON schema definition for the audit template POST data. Please see audit + template create help message in python-watcherclient.