_performance_indicator.erb 3.7 KB
Newer Older
1
<%= performance_indicator.name %>
Eric Johnson's avatar
Eric Johnson committed
2

3 4 5 6 7

<% if performance_indicator.parent %>
   <p>This is a subset of an existing KPI. Please see <a href="<%=performance_indicator.parent=%>">the definition for the parent KPI.</a></p>
<% end %>

8
<p><%= performance_indicator.definition %></p>
Eric Johnson's avatar
Eric Johnson committed
9

Jerome Ng's avatar
Jerome Ng committed
10 11 12 13 14 15 16 17
<% if performance_indicator.telemetry_type %>
  <p><b>SaaS/SM:</b> <%= performance_indicator.telemetry_type %></p>
<% end %>

<% if performance_indicator.pi_workflow %>
  <p><b>PI Workflow:</b> <%= performance_indicator.pi_workflow %></p>
<% end %>

Eric Johnson's avatar
Eric Johnson committed
18 19 20
<% if performance_indicator.target %>
  <p><b>Target:</b> <%= performance_indicator.target %></p>
<% end %>
Jerome Ng's avatar
Jerome Ng committed
21 22 23 24 25


<% if performance_indicator.is_primary %>
  <p><b>Is Primary PI:</b> <%= performance_indicator.is_primary %></p>
<% end %>
Eric Johnson's avatar
Eric Johnson committed
26

emilie's avatar
emilie committed
27
<% if performance_indicator.public == false %>
emilie's avatar
emilie committed
28
  <p><b>This KPI cannot be public.</b> </p>
emilie's avatar
emilie committed
29 30
<% end %>

31 32 33 34 35
<% if performance_indicator.urls %>
  <b>URL(s)</b>
  <ul>
  <% performance_indicator.urls.each do |url| %>
    <li><a href="<%= url %>"><%= url %></a></li>
Kathleen Tam's avatar
Kathleen Tam committed
36
  <% end %>
37
  </ul>
38 39
<% end %>

40
<% if performance_indicator.sisense_data %>
emilie's avatar
emilie committed
41 42
  <b>Chart</b>
    <% if performance_indicator.sisense_data.shared_dashboard%>
43
      (<a href="https://app.periscopedata.com/shared/<%= performance_indicator.sisense_data.shared_dashboard %>" target="_blank">Sisense↗</a>)
emilie's avatar
emilie committed
44
    <% elsif performance_indicator.sisense_data.chart && performance_indicator.sisense_data.dashboard%>
45
      (<a href="https://app.periscopedata.com/app/gitlab/<%= performance_indicator.sisense_data.dashboard %>/?widget=<%= performance_indicator.sisense_data.chart %>" target="_blank">Sisense↗</a>)
emilie's avatar
emilie committed
46
    <% end %>
47
  <% if ENV['PERISCOPE_EMBED_API_KEY'] %>
emilie's avatar
emilie committed
48
    <embed width="100%" height="100%" style="min-height:300px;" src="<%= signed_periscope_url(performance_indicator.sisense_data) %>">
49
  <% else %>
emilie's avatar
emilie committed
50
    <p>You must set a <code>PERISCOPE_EMBED_API_KEY</code> environment variable to render this chart.</p>
51
  <% end %>
52 53
<% end %>

Jerome Ng's avatar
Jerome Ng committed
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
<% if performance_indicator.sisense_data_secondary %>
  <b>Secondary Chart</b>
    <% if performance_indicator.sisense_data_secondary.shared_dashboard%>
      (<a href="https://app.periscopedata.com/shared/<%= performance_indicator.sisense_data_secondary.shared_dashboard %>">Sisense↗</a>)
    <% elsif performance_indicator.sisense_data_secondary.chart && performance_indicator.sisense_data_secondary.dashboard%>
      (<a href="https://app.periscopedata.com/app/gitlab/<%= performance_indicator.sisense_data_secondary.dashboard %>/?widget=<%= performance_indicator.sisense_data_secondary.chart %>">Sisense↗</a>)
    <% end %>
  <% if ENV['PERISCOPE_EMBED_API_KEY'] %>
    <embed width="100%" height="100%" style="min-height:300px;" src="<%= signed_periscope_url(performance_indicator.sisense_data_secondary) %>">
  <% else %>
    <p>You must set a <code>PERISCOPE_EMBED_API_KEY</code> environment variable to render this chart.</p>
  <% end %>
<% end %>

<b>Health: <%= color_code_health(performance_indicator.health.level) %></b>
69

70
<% performance_indicator.health.reasons.each do |reason| %>
71
<%="  * #{reason}"%>
Eric Johnson's avatar
Eric Johnson committed
72
<% end %>
73

74

75
<% if performance_indicator.instrumentation %>
76 77 78 79
<b>Instrumentation: <%= color_code_instrumentation(performance_indicator.instrumentation.level) %></b>

<% performance_indicator.instrumentation.reasons.each do |reason| %>
<%="  * #{reason}"%>
80
<% end %>
David DeSanto's avatar
David DeSanto committed
81
<% end %>
82

83

84
<% if performance_indicator.lessons %>
David DeSanto's avatar
David DeSanto committed
85
<b>Lessons Learned (<%= Date::MONTHNAMES[Date.today.prev_month.month] %>):</b>
86

87
<% performance_indicator.lessons.learned.each do |reason| %>
88 89
<%="  * #{reason}"%>
<% end %>
David DeSanto's avatar
David DeSanto committed
90
<% end %>
91 92


93
<% if performance_indicator.monthly_focus %>
David DeSanto's avatar
David DeSanto committed
94
<b>Focus This Month (<%= Date::MONTHNAMES[Date.today.month] %>):</b>
95

96
<% performance_indicator.monthly_focus.goals.each do |reason| %>
97
<%="  * #{reason}"%>
David DeSanto's avatar
David DeSanto committed
98 99
<% end %>
<% end %>