Minor fixes in the static datasource documentation

Change-Id: Id27759fc74ae9287368ae677c7761d8aa006a319
This commit is contained in:
Ifat Afek 2017-04-13 12:51:24 +00:00
parent 7e38b66266
commit b242baccc3
2 changed files with 2 additions and 2 deletions

View File

@ -64,10 +64,12 @@ Example
type: switch # resource type, could be any string, not limited to the type from existing datasource. type: switch # resource type, could be any string, not limited to the type from existing datasource.
id: 12345 # resource ID, used together with ``type`` to refer a resource in real world id: 12345 # resource ID, used together with ``type`` to refer a resource in real world
name: switch-1 # name, state and other properties are considered as metadata of the resource name: switch-1 # name, state and other properties are considered as metadata of the resource
state: active # the state of the resource
... ...
- static_id: h1 - static_id: h1
type: nova.host # resource type could be from existing datasource type: nova.host # resource type could be from existing datasource
id: 1 # resource ID, used together with ``type`` to refer a resource in corresponding datasource id: 1 # resource ID, used together with ``type`` to refer a resource in corresponding datasource
state: active # the state of the resource
purpose: CI # additional properties could be defined - if from existing datasource, it could be updated purpose: CI # additional properties could be defined - if from existing datasource, it could be updated
... ...
relationships: relationships:

View File

@ -12,8 +12,6 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
# TODO(yujunz) - skeleton only, methods to be implemented
from oslo_log import log as logging from oslo_log import log as logging
from vitrage.common.constants import DatasourceProperties as DSProps from vitrage.common.constants import DatasourceProperties as DSProps