Files
stackalytics/dashboard/templates/kpi/example.html
Ilya Shakhat 3fd72e42cf Added KPI goal specified as absolute metric value
+ renamed example template to 'example.html'
+ added example on new KPI goal

Change-Id: I531dfe106bb19db868424db6a03dcb7cad7d9a30
2013-12-06 20:54:05 +04:00

38 lines
1.6 KiB
HTML

{% extends "kpi/base_kpi.html" %}
{% block title %}
Example of KPI report
{% endblock %}
{% block scripts %}
<script type="text/javascript">
$(document).ready(function () {
goal_position_in_top("kpi_container_position", {release: "icehouse", metric: "commits", project_type: "openstack"},
"companies", "Mirantis", 5, "Be in top 5 by commits");
goal_position_in_top("kpi_container_position", {release: "icehouse", metric: "marks", project_type: "openstack"},
"engineers", "boris-42", 5, "Be in top 5 by reviews");
goal_position_in_top("kpi_container_position", {release: "icehouse", metric: "marks", project_type: "openstack", module: "glance", exclude: "core"},
"engineers", "boris-42", 3, "Be in top 3 among non-core reviewers");
goal_percentage_in_top_less_than("kpi_container_percentage",
{release: "all", metric: "commits", project_type: "stackforge", module: "stackalytics"},
"companies", "Mirantis", 0.8, "Mirantis contribution is less than 80%");
goal_metric("kpi_container_position", {release: "icehouse", metric: "bpd", project_type: "openstack", module: "glance", exclude: "core"},
"modules", "glance", 10, "File at least 10 blueprints into Glance");
});
</script>
{% endblock %}
{% block content %}
<h1>Example of KPI report</h1>
<h2>Position in top</h2>
<div id="kpi_container_position"></div>
<h2>Percentage in top</h2>
<div id="kpi_container_percentage"></div>
{% endblock %}