)]}'
{"doc/source/contributor/template-config.rst":[{"author":{"_account_id":19159,"name":"Ifat Afek","email":"ifat.afek@nokia.com","username":"ifat_afek"},"change_message_id":"bed74ea0289a26a714c1d7ec174add8be7321298","unresolved":false,"context_lines":[{"line_number":4,"context_line":""},{"line_number":5,"context_line":"Overview"},{"line_number":6,"context_line":"--------"},{"line_number":7,"context_line":"Vitrage uses configuration files called “templates”, to express rules"},{"line_number":8,"context_line":"regarding raising deduced alarms, setting deduced states, and detecting/setting"},{"line_number":9,"context_line":"RCA links."},{"line_number":10,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"9f436f4f_cc723e12","line":7,"range":{"start_line":7,"start_character":40,"end_line":7,"end_character":51},"updated":"2017-08-08 10:58:32.000000000","message":"Use the same format as the ``evaluator`` below","commit_id":"ee04984f4ac2e302e0fc8f0ce507cd89b3c10cd8"},{"author":{"_account_id":21414,"name":"Yujun Zhang","email":"zhang.yujunz@zte.com.cn","username":"yujunz"},"change_message_id":"c88f7aa791d3555810403c6bdfd4f4db8727a8e9","unresolved":false,"context_lines":[{"line_number":17,"context_line":"+-------------------+--------------------------------------------------------------+--------------------------------------+"},{"line_number":18,"context_line":"| Name              | Description                                                  | Default Value                        |"},{"line_number":19,"context_line":"+\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d+\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d+\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d+"},{"line_number":20,"context_line":"| templates_dir     | Directory path from where to load the template files         | /etc/vitrage/templates               |"},{"line_number":21,"context_line":"+-------------------+--------------------------------------------------------------+--------------------------------------+"},{"line_number":22,"context_line":"| def_templates_dir | Directory path from where to load definition templates files | /etc/vitrage/templates/def_templates |"},{"line_number":23,"context_line":"+-------------------+--------------------------------------------------------------+--------------------------------------+"}],"source_content_type":"text/x-rst","patch_set":1,"id":"9f436f4f_ae5ebbe3","line":20,"range":{"start_line":20,"start_character":22,"end_line":20,"end_character":73},"updated":"2017-08-09 00:35:03.000000000","message":"The auto generated help message in vitrage.evaluator.OPTS is \"A path for the templates used by the evaluator\". Better to keep consistent. Update either the code or the document.","commit_id":"ee04984f4ac2e302e0fc8f0ce507cd89b3c10cd8"},{"author":{"_account_id":19159,"name":"Ifat Afek","email":"ifat.afek@nokia.com","username":"ifat_afek"},"change_message_id":"bed74ea0289a26a714c1d7ec174add8be7321298","unresolved":false,"context_lines":[{"line_number":19,"context_line":"+\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d+\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d+\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d+"},{"line_number":20,"context_line":"| templates_dir     | Directory path from where to load the template files         | /etc/vitrage/templates               |"},{"line_number":21,"context_line":"+-------------------+--------------------------------------------------------------+--------------------------------------+"},{"line_number":22,"context_line":"| def_templates_dir | Directory path from where to load definition templates files | /etc/vitrage/templates/def_templates |"},{"line_number":23,"context_line":"+-------------------+--------------------------------------------------------------+--------------------------------------+"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"9f436f4f_4c876ed9","line":22,"range":{"start_line":22,"start_character":22,"end_line":22,"end_character":82},"updated":"2017-08-08 10:58:32.000000000","message":"I think you can add another line explaining what the definition templates are.\nAnd I think it should be \"definition template files\" and not \"templates\"","commit_id":"ee04984f4ac2e302e0fc8f0ce507cd89b3c10cd8"},{"author":{"_account_id":21414,"name":"Yujun Zhang","email":"zhang.yujunz@zte.com.cn","username":"yujunz"},"change_message_id":"c88f7aa791d3555810403c6bdfd4f4db8727a8e9","unresolved":false,"context_lines":[{"line_number":19,"context_line":"+\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d+\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d+\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d+"},{"line_number":20,"context_line":"| templates_dir     | Directory path from where to load the template files         | /etc/vitrage/templates               |"},{"line_number":21,"context_line":"+-------------------+--------------------------------------------------------------+--------------------------------------+"},{"line_number":22,"context_line":"| def_templates_dir | Directory path from where to load definition templates files | /etc/vitrage/templates/def_templates |"},{"line_number":23,"context_line":"+-------------------+--------------------------------------------------------------+--------------------------------------+"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"9f436f4f_cef21f07","line":22,"range":{"start_line":22,"start_character":108,"end_line":22,"end_character":121},"updated":"2017-08-09 00:35:03.000000000","message":"Since it is inside the templates folder. We may simply call it \"definitions\"","commit_id":"ee04984f4ac2e302e0fc8f0ce507cd89b3c10cd8"},{"author":{"_account_id":21414,"name":"Yujun Zhang","email":"zhang.yujunz@zte.com.cn","username":"yujunz"},"change_message_id":"c88f7aa791d3555810403c6bdfd4f4db8727a8e9","unresolved":false,"context_lines":[{"line_number":19,"context_line":"+\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d+\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d+\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d+"},{"line_number":20,"context_line":"| templates_dir     | Directory path from where to load the template files         | /etc/vitrage/templates               |"},{"line_number":21,"context_line":"+-------------------+--------------------------------------------------------------+--------------------------------------+"},{"line_number":22,"context_line":"| def_templates_dir | Directory path from where to load definition templates files | /etc/vitrage/templates/def_templates |"},{"line_number":23,"context_line":"+-------------------+--------------------------------------------------------------+--------------------------------------+"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"9f436f4f_6ed9f381","line":22,"range":{"start_line":22,"start_character":2,"end_line":22,"end_character":19},"updated":"2017-08-09 00:35:03.000000000","message":"definitions_dir","commit_id":"ee04984f4ac2e302e0fc8f0ce507cd89b3c10cd8"},{"author":{"_account_id":19159,"name":"Ifat Afek","email":"ifat.afek@nokia.com","username":"ifat_afek"},"change_message_id":"22c3725f1c12a0f5706ced376d721b9cf9231024","unresolved":false,"context_lines":[{"line_number":19,"context_line":"+\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d+\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d+\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d+"},{"line_number":20,"context_line":"| templates_dir     | Directory path from where to load the template files         | /etc/vitrage/templates               |"},{"line_number":21,"context_line":"+-------------------+--------------------------------------------------------------+--------------------------------------+"},{"line_number":22,"context_line":"| def_templates_dir | Directory path from where to load definition templates files | /etc/vitrage/templates/def_templates |"},{"line_number":23,"context_line":"+-------------------+--------------------------------------------------------------+--------------------------------------+"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"9f436f4f_601c5c6a","line":22,"range":{"start_line":22,"start_character":108,"end_line":22,"end_character":121},"in_reply_to":"9f436f4f_cef21f07","updated":"2017-08-09 05:25:25.000000000","message":"\u0027definitions\u0027 will work if it is a sub-folder of \u0027templates\u0027, but the user can chose to place it elsewhere. Also, in the code \u0027definitions\u0027 sounds too general and unclear. \nThe definitions files are almost the same as the static datasource files, right? So if you find a name that fits both, it could be good.  \nUntil now \u0027def_templates\u0027 was the best we could think of.","commit_id":"ee04984f4ac2e302e0fc8f0ce507cd89b3c10cd8"},{"author":{"_account_id":21414,"name":"Yujun Zhang","email":"zhang.yujunz@zte.com.cn","username":"yujunz"},"change_message_id":"c88f7aa791d3555810403c6bdfd4f4db8727a8e9","unresolved":false,"context_lines":[{"line_number":21,"context_line":"+-------------------+--------------------------------------------------------------+--------------------------------------+"},{"line_number":22,"context_line":"| def_templates_dir | Directory path from where to load definition templates files | /etc/vitrage/templates/def_templates |"},{"line_number":23,"context_line":"+-------------------+--------------------------------------------------------------+--------------------------------------+"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":""},{"line_number":26,"context_line":".. code:: yaml"},{"line_number":27,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"9f436f4f_8ec53791","line":24,"updated":"2017-08-09 00:35:03.000000000","message":"| equivalences_dir | A path for entity equivalences used by the evaluator | /etc/vitrage/templates/equivalences |","commit_id":"ee04984f4ac2e302e0fc8f0ce507cd89b3c10cd8"},{"author":{"_account_id":19159,"name":"Ifat Afek","email":"ifat.afek@nokia.com","username":"ifat_afek"},"change_message_id":"bed74ea0289a26a714c1d7ec174add8be7321298","unresolved":false,"context_lines":[{"line_number":30,"context_line":""},{"line_number":31,"context_line":"    templates_dir \u003d /etc/vitrage/templates"},{"line_number":32,"context_line":"    def_templates_dir \u003d /etc/vitrage/templates/def_templates"},{"line_number":33,"context_line":"    #equivalences_dir \u003d /etc/vitrage/templates/equivalences://"}],"source_content_type":"text/x-rst","patch_set":1,"id":"9f436f4f_2c278a15","line":33,"range":{"start_line":33,"start_character":3,"end_line":33,"end_character":62},"updated":"2017-08-08 10:58:32.000000000","message":"It might be a good idea to document this as well. \n@Yujun, is it already documented elsewhere? do you want to suggest what should be written in the above table?","commit_id":"ee04984f4ac2e302e0fc8f0ce507cd89b3c10cd8"},{"author":{"_account_id":21414,"name":"Yujun Zhang","email":"zhang.yujunz@zte.com.cn","username":"yujunz"},"change_message_id":"c88f7aa791d3555810403c6bdfd4f4db8727a8e9","unresolved":false,"context_lines":[{"line_number":30,"context_line":""},{"line_number":31,"context_line":"    templates_dir \u003d /etc/vitrage/templates"},{"line_number":32,"context_line":"    def_templates_dir \u003d /etc/vitrage/templates/def_templates"},{"line_number":33,"context_line":"    #equivalences_dir \u003d /etc/vitrage/templates/equivalences://"}],"source_content_type":"text/x-rst","patch_set":1,"id":"9f436f4f_ce0e9fe4","line":33,"range":{"start_line":33,"start_character":3,"end_line":33,"end_character":62},"in_reply_to":"9f436f4f_2c278a15","updated":"2017-08-09 00:35:03.000000000","message":"The only document seems to be the blueprint. Suggested in the above table.","commit_id":"ee04984f4ac2e302e0fc8f0ce507cd89b3c10cd8"}],"doc/source/contributor/vitrage-template-format.rst":[{"author":{"_account_id":19159,"name":"Ifat Afek","email":"ifat.afek@nokia.com","username":"ifat_afek"},"change_message_id":"0cce12dda4f245502c5faf04c33fc277893f0e8f","unresolved":false,"context_lines":[{"line_number":26,"context_line":"    relationships:"},{"line_number":27,"context_line":"        - relationship: ..."},{"line_number":28,"context_line":"        - relationship: ..."},{"line_number":29,"context_line":"  include:"},{"line_number":30,"context_line":"        - name: \u003cname as stated in the metadata of a definition template\u003e"},{"line_number":31,"context_line":"        - name: ..."},{"line_number":32,"context_line":"  scenarios:"}],"source_content_type":"text/x-rst","patch_set":2,"id":"9f436f4f_eabb9d0b","line":29,"range":{"start_line":29,"start_character":2,"end_line":29,"end_character":9},"updated":"2017-08-08 14:44:15.000000000","message":"I think it should be changed to \u0027includes\u0027, like definitions and scenarios","commit_id":"5d14aa7d6936f7860de3d28b93102799c7f51bfe"},{"author":{"_account_id":19159,"name":"Ifat Afek","email":"ifat.afek@nokia.com","username":"ifat_afek"},"change_message_id":"3449ceeefa4935e0a10a0decad7e5c4a3797d6ef","unresolved":false,"context_lines":[{"line_number":26,"context_line":"    relationships:"},{"line_number":27,"context_line":"        - relationship: ..."},{"line_number":28,"context_line":"        - relationship: ..."},{"line_number":29,"context_line":"  include:"},{"line_number":30,"context_line":"        - name: \u003cname as stated in the metadata of a definition template\u003e"},{"line_number":31,"context_line":"        - name: ..."},{"line_number":32,"context_line":"  scenarios:"}],"source_content_type":"text/x-rst","patch_set":2,"id":"9f436f4f_604a1c56","line":29,"range":{"start_line":29,"start_character":2,"end_line":29,"end_character":9},"in_reply_to":"9f436f4f_0ed3873a","updated":"2017-08-09 05:30:43.000000000","message":"I don\u0027t see a reason to include scenarios. Do you?\nThe definitions files include metadata, entities and relationships. I think that since there is a separate metadata, the include fits more in the current level.","commit_id":"5d14aa7d6936f7860de3d28b93102799c7f51bfe"},{"author":{"_account_id":21414,"name":"Yujun Zhang","email":"zhang.yujunz@zte.com.cn","username":"yujunz"},"change_message_id":"e0a5475fd309d15c22799cd651188d3d2a45e4d8","unresolved":false,"context_lines":[{"line_number":26,"context_line":"    relationships:"},{"line_number":27,"context_line":"        - relationship: ..."},{"line_number":28,"context_line":"        - relationship: ..."},{"line_number":29,"context_line":"  include:"},{"line_number":30,"context_line":"        - name: \u003cname as stated in the metadata of a definition template\u003e"},{"line_number":31,"context_line":"        - name: ..."},{"line_number":32,"context_line":"  scenarios:"}],"source_content_type":"text/x-rst","patch_set":2,"id":"9f436f4f_0ed3873a","line":29,"range":{"start_line":29,"start_character":2,"end_line":29,"end_character":9},"in_reply_to":"9f436f4f_eabb9d0b","updated":"2017-08-09 00:43:41.000000000","message":"If only definitions can be included, shall we indent it to the same level as \u0027entities\u0027 and \u0027relationships\u0027. Or there is plan for scenario inclusion in the future?","commit_id":"5d14aa7d6936f7860de3d28b93102799c7f51bfe"},{"author":{"_account_id":19159,"name":"Ifat Afek","email":"ifat.afek@nokia.com","username":"ifat_afek"},"change_message_id":"0cce12dda4f245502c5faf04c33fc277893f0e8f","unresolved":false,"context_lines":[{"line_number":36,"context_line":"              - action: ..."},{"line_number":37,"context_line":""},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"The template is divided into four main sections:"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"- *metadata:* Contains the template name, and brief description of what the template does (optional)"},{"line_number":42,"context_line":"- *definitions:* This section contains the atomic definitions referenced later on, for entities and relationships"}],"source_content_type":"text/x-rst","patch_set":2,"id":"9f436f4f_4a73c981","line":39,"range":{"start_line":39,"start_character":0,"end_line":39,"end_character":48},"updated":"2017-08-08 14:44:15.000000000","message":"Please mention that a template must have a definitions section, either inside the yaml file or using an include of another file","commit_id":"5d14aa7d6936f7860de3d28b93102799c7f51bfe"},{"author":{"_account_id":19159,"name":"Ifat Afek","email":"ifat.afek@nokia.com","username":"ifat_afek"},"change_message_id":"0cce12dda4f245502c5faf04c33fc277893f0e8f","unresolved":false,"context_lines":[{"line_number":49,"context_line":""},{"line_number":50,"context_line":"Definition Template Structure"},{"line_number":51,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":52,"context_line":"The definition templates are written in YAML language, with the following structure."},{"line_number":53,"context_line":" ::"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"  metadata:"}],"source_content_type":"text/x-rst","patch_set":2,"id":"9f436f4f_ea503dd7","line":52,"range":{"start_line":52,"start_character":0,"end_line":52,"end_character":24},"updated":"2017-08-08 14:44:15.000000000","message":"Please explain that this is a separate yaml file. When I first read it, I thought you were explaining about the \u0027definitions\u0027 section in the regular template.","commit_id":"5d14aa7d6936f7860de3d28b93102799c7f51bfe"},{"author":{"_account_id":19159,"name":"Ifat Afek","email":"ifat.afek@nokia.com","username":"ifat_afek"},"change_message_id":"3449ceeefa4935e0a10a0decad7e5c4a3797d6ef","unresolved":false,"context_lines":[{"line_number":49,"context_line":""},{"line_number":50,"context_line":"Definition Template Structure"},{"line_number":51,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":52,"context_line":"The definition templates are written in YAML language, with the following structure."},{"line_number":53,"context_line":" ::"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"  metadata:"}],"source_content_type":"text/x-rst","patch_set":2,"id":"9f436f4f_e0a4cc0a","line":52,"range":{"start_line":52,"start_character":0,"end_line":52,"end_character":24},"in_reply_to":"9f436f4f_8e941746","updated":"2017-08-09 05:30:43.000000000","message":"I\u0027m not sure. To me it makes sense to first read everything about the definitions, and then read about the condition. \nBut I think the title should have ---- instead of \u003d\u003d\u003d\u003d","commit_id":"5d14aa7d6936f7860de3d28b93102799c7f51bfe"},{"author":{"_account_id":21414,"name":"Yujun Zhang","email":"zhang.yujunz@zte.com.cn","username":"yujunz"},"change_message_id":"e0a5475fd309d15c22799cd651188d3d2a45e4d8","unresolved":false,"context_lines":[{"line_number":49,"context_line":""},{"line_number":50,"context_line":"Definition Template Structure"},{"line_number":51,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":52,"context_line":"The definition templates are written in YAML language, with the following structure."},{"line_number":53,"context_line":" ::"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"  metadata:"}],"source_content_type":"text/x-rst","patch_set":2,"id":"9f436f4f_8e941746","line":52,"range":{"start_line":52,"start_character":0,"end_line":52,"end_character":24},"in_reply_to":"9f436f4f_ea503dd7","updated":"2017-08-09 00:43:41.000000000","message":"Agree. \n\nMaybe we should put this behind the \"Condition Format\" to separate the content of definitions files from template files.","commit_id":"5d14aa7d6936f7860de3d28b93102799c7f51bfe"},{"author":{"_account_id":19159,"name":"Ifat Afek","email":"ifat.afek@nokia.com","username":"ifat_afek"},"change_message_id":"b0a62ae8d7846df2378ecc28235582064f841fce","unresolved":false,"context_lines":[{"line_number":39,"context_line":"The template is divided into four main sections:"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"- *metadata:* Contains the template name, and brief description of what the template does (optional)"},{"line_number":42,"context_line":"- *definitions:* This section is **mandatory** unless an include section is specified in the template (see below). This section contains the atomic definitions referenced later on, for entities and relationships."},{"line_number":43,"context_line":"   - *entities –* describes the resources and alarms which are relevant to the template scenario (conceptually, corresponds to a vertex in the entity graph)"},{"line_number":44,"context_line":"   - *relationships –* the relationships between the entities (conceptually, corresponds to an edge in the entity graph)"},{"line_number":45,"context_line":"- *includes:* This section is optional. If included, it must contain a list of names of definition templates as they appear in the metadata section of said templates. If only definitions from included definition templates are used to create scenarios within the template, then the *definitions* section is **optional**."}],"source_content_type":"text/x-rst","patch_set":3,"id":"9f436f4f_de03e00c","line":42,"range":{"start_line":42,"start_character":0,"end_line":42,"end_character":212},"updated":"2017-08-09 09:57:55.000000000","message":"Please write shorter lines","commit_id":"799b1d6c8afe3f911d400600c9942c82824256fd"},{"author":{"_account_id":19159,"name":"Ifat Afek","email":"ifat.afek@nokia.com","username":"ifat_afek"},"change_message_id":"b0a62ae8d7846df2378ecc28235582064f841fce","unresolved":false,"context_lines":[{"line_number":63,"context_line":"        - relationship: ..."},{"line_number":64,"context_line":"        - relationship: ..."},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"A definition template is in same format as a regular template - except it **does not** contain a scenarios or an includes section. Once included in a template, the definition template\u0027s definitions can be used"},{"line_number":67,"context_line":"within the template they are included to create scenarios."},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"Condition Format"}],"source_content_type":"text/x-rst","patch_set":3,"id":"9f436f4f_632101b5","line":66,"range":{"start_line":66,"start_character":186,"end_line":66,"end_character":197},"updated":"2017-08-09 09:57:55.000000000","message":"maybe replace it by \u0027entities and relationships\u0027, to avoid using the word \u0027definition\u0027 twice","commit_id":"799b1d6c8afe3f911d400600c9942c82824256fd"},{"author":{"_account_id":21414,"name":"Yujun Zhang","email":"zhang.yujunz@zte.com.cn","username":"yujunz"},"change_message_id":"1726c41a88ff18d5582cf993eeb5aab0d19cd16f","unresolved":false,"context_lines":[{"line_number":58,"context_line":" ::"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"  metadata:"},{"line_number":61,"context_line":"    name: \u003cunique definition template identifier. Used in the includes section of regular templates\u003e"},{"line_number":62,"context_line":"    description: \u003cwhat definitions this template contains\u003e"},{"line_number":63,"context_line":"  definitions:"},{"line_number":64,"context_line":"    entities:"}],"source_content_type":"text/x-rst","patch_set":5,"id":"9f436f4f_32878a64","line":61,"range":{"start_line":61,"start_character":10,"end_line":61,"end_character":100},"updated":"2017-08-22 05:55:18.000000000","message":"Should we use filename for inclusion instead? It will be unique naturally and common in many languages.","commit_id":"dfd9c3168da25ad39de6e9569a92eac686dc6d72"},{"author":{"_account_id":21414,"name":"Yujun Zhang","email":"zhang.yujunz@zte.com.cn","username":"yujunz"},"change_message_id":"f61104e8cdc2fc16d38deccf2835dc81c0b02410","unresolved":false,"context_lines":[{"line_number":58,"context_line":" ::"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"  metadata:"},{"line_number":61,"context_line":"    name: \u003cunique definition template identifier. Used in the includes section of regular templates\u003e"},{"line_number":62,"context_line":"    description: \u003cwhat definitions this template contains\u003e"},{"line_number":63,"context_line":"  definitions:"},{"line_number":64,"context_line":"    entities:"}],"source_content_type":"text/x-rst","patch_set":5,"id":"7f287b81_2ebbfc72","line":61,"range":{"start_line":61,"start_character":10,"end_line":61,"end_character":100},"in_reply_to":"7f287b81_f7f5e0cb","updated":"2017-09-01 01:05:44.000000000","message":"I think the name of template was used for display only, right? So it won\u0027t be a big issue in case there is a duplication.\n\nBut for definition template, it may cause ambiguity or lead to naming conflict. Is it already checked when loading templates?","commit_id":"dfd9c3168da25ad39de6e9569a92eac686dc6d72"},{"author":{"_account_id":19159,"name":"Ifat Afek","email":"ifat.afek@nokia.com","username":"ifat_afek"},"change_message_id":"91a33b1e246e6b3579db568dbadf3f460bd87afd","unresolved":false,"context_lines":[{"line_number":58,"context_line":" ::"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"  metadata:"},{"line_number":61,"context_line":"    name: \u003cunique definition template identifier. Used in the includes section of regular templates\u003e"},{"line_number":62,"context_line":"    description: \u003cwhat definitions this template contains\u003e"},{"line_number":63,"context_line":"  definitions:"},{"line_number":64,"context_line":"    entities:"}],"source_content_type":"text/x-rst","patch_set":5,"id":"7f287b81_f7f5e0cb","line":61,"range":{"start_line":61,"start_character":10,"end_line":61,"end_character":100},"in_reply_to":"9f436f4f_32878a64","updated":"2017-08-31 09:00:06.000000000","message":"For Vitrage \u0027regular\u0027 templates, the name of the template is determined here and not by the file name. I think we should keep this behavior.","commit_id":"dfd9c3168da25ad39de6e9569a92eac686dc6d72"},{"author":{"_account_id":26464,"name":"Niv Oppenhaim","email":"niv.oppenhaim@nokia.com","username":"nivolas"},"change_message_id":"16ef07f6a08bac2d692c82ddaafddca56910dc09","unresolved":false,"context_lines":[{"line_number":58,"context_line":" ::"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"  metadata:"},{"line_number":61,"context_line":"    name: \u003cunique definition template identifier. Used in the includes section of regular templates\u003e"},{"line_number":62,"context_line":"    description: \u003cwhat definitions this template contains\u003e"},{"line_number":63,"context_line":"  definitions:"},{"line_number":64,"context_line":"    entities:"}],"source_content_type":"text/x-rst","patch_set":5,"id":"7f287b81_bcb17f46","line":61,"range":{"start_line":61,"start_character":10,"end_line":61,"end_character":100},"in_reply_to":"9f436f4f_32878a64","updated":"2017-09-03 07:23:46.000000000","message":"I think it is better this way, as we are already following this pattern in several other places with the general templates.","commit_id":"dfd9c3168da25ad39de6e9569a92eac686dc6d72"}]}
