Skip to content

Commit

Permalink
DETECTION and SUCCESS statuses (#314)
Browse files Browse the repository at this point in the history
  • Loading branch information
rozetko authored May 20, 2019
1 parent 581558a commit cf45f22
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/panel/graph_panel/models/analytic_units/analytic_unit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,10 @@ export class AnalyticUnit {
value !== '404' &&
value !== 'READY' &&
value !== 'LEARNING' &&
value !== 'DETECTION' &&
value !== 'PENDING' &&
value !== 'FAILED' &&
value !== 'SUCCESS' &&
value !== null
) {
throw new Error('Unsupported status value: ' + value);
Expand Down
2 changes: 2 additions & 0 deletions src/panel/graph_panel/partials/tab_analytics.html
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,9 @@ <h5> Analytic Units </h5>
<div class="gf-form">
<label>
<i ng-if="analyticUnit.status === 'READY'" class="grafana-tip fa fa-check-circle ng-scope" bs-tooltip="'Ready'"></i>
<i ng-if="analyticUnit.status === 'SUCCESS'" class="grafana-tip fa fa-check ng-scope" bs-tooltip="'Learning succeeded'"></i>
<i ng-if="analyticUnit.status === 'LEARNING'" class="grafana-tip fa fa-leanpub ng-scope" bs-tooltip="'Learning'"></i>
<i ng-if="analyticUnit.status === 'DETECTION'" class="grafana-tip fa fa-search ng-scope" bs-tooltip="'Detection'"></i>
<i ng-if="analyticUnit.status === 'PENDING'" class="grafana-tip fa fa-list-ul ng-scope" bs-tooltip="'Pending'"></i>
<i ng-if="analyticUnit.status === 'FAILED'" class="grafana-tip fa fa-exclamation-circle ng-scope" bs-tooltip="'Error: ' + analyticUnit.error"></i>
</label>
Expand Down

0 comments on commit cf45f22

Please sign in to comment.