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.