Template Validator

Template Validator

Launchpad blueprint:

https://blueprints.launchpad.net/vitrage/+spec/template-validator

Vitrage Evaluator serves as workflow manager controlling the analysis and activation of templates and execution of template actions.

Template Validator ensures that a new template is correct. Meaning, it conforms with Vitrage Template Standard.

Problem description

Templates do not always meet the Vitrage Template Standard. For example, unsupported action, invalid alarm name, incorrect graph template and etc.

Proposed change

Template validator is a part of Vitrage Evaluator. It receives a template, runs over it and checks its correctness. If the template is valid, it notify the Evaluator Engine which inserts the template into the template DB. Otherwise, insertion is failed.

Alternatives

A template editor that prevent invalid templates.

Data model impact

None

REST API impact

The validator runs when a new template is added through API create call.

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.

vitrage-specs