events.html 1.04 KB
<div class="container">
  <h3>Journal</h3>
  <div class="alert alert-error" ng-if="error">
    <b>Error:</b> {{ error }}
  </div>
  <div class="row">
    <table class="table table-striped">
      <thead>
        <tr>
          <th>Time</th>
          <th>Application</th>
          <th>Event</th>
        </tr>
      </thead>
      <tbody>
        <tr ng-repeat="event in journal | orderBy:'timestamp':true">
          <td>{{ event.timestamp | date:'yyyy-MM-dd-HH.mm.ss.sss' }}</td>
          <td>{{ event.application.name }} ({{ event.application.id }})
            <br/>
            <span class="muted">{{ event.application.serviceUrl || event.application.managementUrl || event.application.healthUrl }}</span>
          </td>
          <td>{{ event.type }}
            <br/>
            <span ng-if="event.type == 'STATUS_CHANGE'">
              <sba-status-info status-info="event.from"></sba-status-info> -&gt; <sba-status-info status-info="event.to"></sba-status-info>
            </span>
          </td>
        </tr>
      </tbody>
    </table>
  </div>
</div>