Merge "Update doc and add release note about cdm-scoping"

This commit is contained in:
Zuul
2017-11-07 02:36:38 +00:00
committed by Gerrit Code Review
2 changed files with 16 additions and 0 deletions

View File

@@ -28,6 +28,8 @@ In order to create a new cluster data model collector, you have to:
- Implement its :py:meth:`~.BaseClusterDataModelCollector.execute` abstract - Implement its :py:meth:`~.BaseClusterDataModelCollector.execute` abstract
method to return your entire cluster data model that this method should method to return your entire cluster data model that this method should
build. 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 - Implement its :py:meth:`~.Goal.notification_endpoints` abstract property to
return the list of all the :py:class:`~.base.NotificationEndpoint` instances return the list of all the :py:class:`~.base.NotificationEndpoint` instances
that will be responsible for handling incoming notifications in order to 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... # Do something here...
return model return model
@property
def audit_scope_handler(self):
return None
@property @property
def notification_endpoints(self): def notification_endpoints(self):
return [] return []
@@ -135,6 +141,10 @@ class method as followed:
# Do something here... # Do something here...
return model return model
@property
def audit_scope_handler(self):
return None
@property @property
def notification_endpoints(self): def notification_endpoints(self):
return [] return []

View File

@@ -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.