2013-11-27 07:29:31 +00:00
|
|
|
<div class="logs-view-element">
|
2015-04-20 18:00:10 +00:00
|
|
|
<div class="manager-header" header-title="Usage Logs">
|
|
|
|
<span id="logs-range" class="mini">
|
|
|
|
<span class="date-line">
|
|
|
|
<span class="date-line-caption">From</span>
|
2016-05-23 19:51:34 +00:00
|
|
|
<input type="text" class="logs-date-picker input-sm" name="start"
|
|
|
|
ng-model="options.logStartDate" data-min-date="{{ options.monthAgo }}"
|
2018-11-27 11:13:02 +00:00
|
|
|
ng-readonly="loading"
|
2016-05-23 19:51:34 +00:00
|
|
|
data-max-date="{{ options.logEndDate }}"
|
|
|
|
bs-datepicker>
|
2015-04-20 18:00:10 +00:00
|
|
|
</span>
|
|
|
|
|
|
|
|
<span class="date-line">
|
|
|
|
<span class="date-line-caption add-on">to</span>
|
2016-05-23 19:51:34 +00:00
|
|
|
<input type="text" class="logs-date-picker input-sm" name="end"
|
|
|
|
ng-model="options.logEndDate" data-min-date="{{ options.logStartDate }}"
|
2018-11-27 11:13:02 +00:00
|
|
|
ng-readonly="loading"
|
2016-05-23 19:51:34 +00:00
|
|
|
data-max-date="{{ options.now }}"
|
|
|
|
data-placement="bottom-right"
|
|
|
|
bs-datepicker>
|
2013-12-09 22:28:23 +00:00
|
|
|
</span>
|
|
|
|
</span>
|
2015-04-20 18:00:10 +00:00
|
|
|
<span class="hidden-xs right">
|
2013-12-09 22:28:23 +00:00
|
|
|
<i class="fa fa-bar-chart-o toggle-icon" ng-class="chartVisible ? 'active' : ''"
|
2019-01-02 19:17:40 +00:00
|
|
|
ng-click="toggleChart()" data-title="Toggle Chart" bs-tooltip="tooltip.title"
|
|
|
|
quay-show="Features.AGGREGATED_LOG_COUNT_RETRIEVAL"></i>
|
2018-11-27 16:28:32 +00:00
|
|
|
<button class="btn btn-default download-btn" ng-click="showExportLogs()"
|
2019-01-02 19:17:40 +00:00
|
|
|
ng-if="(user || organization || repository) && Features.LOG_EXPORT"><i class="fa fa-download"></i>Export Logs</button>
|
2013-12-09 22:28:23 +00:00
|
|
|
</span>
|
|
|
|
</div>
|
2014-11-24 21:07:38 +00:00
|
|
|
|
2015-04-20 18:00:10 +00:00
|
|
|
<div>
|
2019-01-02 19:17:40 +00:00
|
|
|
<div id="bar-chart" style="width: 800px; height: 500px;"
|
|
|
|
quay-show="chartVisible && Features.AGGREGATED_LOG_COUNT_RETRIEVAL">
|
2013-11-27 07:29:31 +00:00
|
|
|
<svg style="width: 800px; height: 500px;"></svg>
|
2015-07-31 17:38:02 +00:00
|
|
|
<div class="cor-loader" ng-if="chartLoading"></div>
|
2013-11-27 07:29:31 +00:00
|
|
|
</div>
|
|
|
|
|
2015-04-20 18:00:10 +00:00
|
|
|
<div class="hidden-xs side-controls">
|
2013-11-27 07:29:31 +00:00
|
|
|
<div class="result-count">
|
2015-07-31 17:38:02 +00:00
|
|
|
Showing {{(logs | visibleLogFilter:kindsAllowed | filter:search).length}} matching logs
|
2013-11-27 07:29:31 +00:00
|
|
|
</div>
|
2014-11-24 21:07:38 +00:00
|
|
|
<div class="filter-input">
|
2013-11-27 07:29:31 +00:00
|
|
|
<input id="log-filter" class="form-control" placeholder="Filter Logs" type="text" ng-model="search.$">
|
|
|
|
</div>
|
2014-11-24 21:07:38 +00:00
|
|
|
</div>
|
|
|
|
|
2018-11-27 11:13:02 +00:00
|
|
|
<div class="table-container">
|
2015-04-20 18:00:10 +00:00
|
|
|
<table class="cor-table">
|
|
|
|
<thead>
|
2017-02-14 19:55:24 +00:00
|
|
|
<td ng-if="allLogs == 'true'">Namespace</td>
|
2015-04-20 18:00:10 +00:00
|
|
|
<td>Description</td>
|
|
|
|
<td style="min-width: 226px">Date/Time</td>
|
2017-02-14 19:55:24 +00:00
|
|
|
<td>Performing User/Token/App</td>
|
2016-04-20 17:00:21 +00:00
|
|
|
<td>IP Address</td>
|
2015-04-20 18:00:10 +00:00
|
|
|
</thead>
|
2014-11-24 21:07:38 +00:00
|
|
|
|
2015-07-31 17:38:02 +00:00
|
|
|
<tr class="log" ng-repeat="log in (logs | visibleLogFilter:kindsAllowed | filter:search)"
|
|
|
|
bindonce>
|
2017-02-14 19:55:24 +00:00
|
|
|
<td ng-if="allLogs == 'true'">
|
|
|
|
<span ng-if="log.namespace">
|
|
|
|
<span class="entity-reference" entity="log.namespace" namespace="log.namespace.name"></span>
|
|
|
|
</span>
|
|
|
|
</td>
|
2013-11-27 07:29:31 +00:00
|
|
|
<td>
|
2015-07-31 17:38:02 +00:00
|
|
|
<span class="circle" style="{{ 'background: ' + getColor(log.kind, chart) }}"></span>
|
|
|
|
<span class="log-description" bo-html="getDescription(log)"></span>
|
2013-11-27 07:29:31 +00:00
|
|
|
</td>
|
2017-11-27 11:19:18 +00:00
|
|
|
<td><time-display datetime="log.datetime"></time-display></td>
|
2013-11-27 07:29:31 +00:00
|
|
|
<td>
|
2015-07-31 17:38:02 +00:00
|
|
|
<span class="log-performer" bo-if="log.metadata.oauth_token_application">
|
2014-03-18 20:45:18 +00:00
|
|
|
<div>
|
2015-02-17 17:35:16 +00:00
|
|
|
<span class="application-reference"
|
|
|
|
data-title="log.metadata.oauth_token_application"
|
2014-03-18 20:45:18 +00:00
|
|
|
client-id="log.metadata.oauth_token_application_id"></span>
|
|
|
|
</div>
|
|
|
|
<div style="text-align: center; font-size: 12px; color: #aaa; padding: 4px;">on behalf of</div>
|
|
|
|
<div>
|
|
|
|
<span class="entity-reference" entity="log.performer" namespace="organization.name"></span>
|
|
|
|
</div>
|
|
|
|
</span>
|
2015-07-31 17:38:02 +00:00
|
|
|
<span class="log-performer" bo-if="!log.metadata.oauth_token_application && log.performer">
|
2014-01-21 21:23:00 +00:00
|
|
|
<span class="entity-reference" entity="log.performer" namespace="organization.name"></span>
|
2013-12-02 18:51:42 +00:00
|
|
|
</span>
|
2015-07-31 17:38:02 +00:00
|
|
|
<span class="log-performer" bo-if="!log.performer && log.metadata.token">
|
2013-12-02 18:56:27 +00:00
|
|
|
<i class="fa fa-key"></i>
|
2015-07-31 17:38:02 +00:00
|
|
|
<span bo-text="log.metadata.token"></span>
|
2013-12-02 18:56:27 +00:00
|
|
|
</span>
|
2015-07-31 17:38:02 +00:00
|
|
|
<span bo-if="!log.performer && !log.metadata.token">
|
2013-12-02 18:51:42 +00:00
|
|
|
(anonymous)
|
|
|
|
</span>
|
2013-11-27 07:29:31 +00:00
|
|
|
</td>
|
2016-04-20 17:00:21 +00:00
|
|
|
<td>
|
|
|
|
<span bo-if="log.metadata._ip"><span bo-text="log.metadata._ip"></span></span>
|
|
|
|
<span class="empty" bo-if="!log.metadata._ip">(No data)</span>
|
|
|
|
</td>
|
2013-11-27 07:29:31 +00:00
|
|
|
</tr>
|
2015-04-20 18:00:10 +00:00
|
|
|
</table>
|
2018-11-27 11:13:02 +00:00
|
|
|
<div style="text-align: right; margin-top: 10px;">
|
|
|
|
<button class="btn btn-default" ng-click="nextPage()" ng-show="!loading && hasAdditional">Load More Logs</button>
|
|
|
|
</div>
|
2015-07-31 17:38:02 +00:00
|
|
|
<div class="cor-loader" ng-show="loading"></div>
|
2014-08-12 18:30:59 +00:00
|
|
|
</div>
|
2013-11-27 07:29:31 +00:00
|
|
|
</div>
|
2018-11-27 16:28:32 +00:00
|
|
|
|
|
|
|
<!-- Modal Dialog -->
|
|
|
|
<div class="cor-confirm-dialog"
|
|
|
|
dialog-context="exportLogsInfo"
|
|
|
|
dialog-action="exportLogs(exportLogsInfo, callback)"
|
|
|
|
dialog-title="Export Usage Logs"
|
|
|
|
dialog-action-title="Start Logs Export"
|
|
|
|
dialog-form="context.exportform">
|
|
|
|
<form name="context.exportform">
|
|
|
|
<div style="margin-bottom: 14px;">
|
|
|
|
Enter an e-mail address or callback URL (must start with <code>http://</code> or <code>https://</code>)
|
|
|
|
at which to receive the exported logs once they have been fully processed:
|
|
|
|
</div>
|
|
|
|
<input class="form-control" type="text" ng-model="exportLogsInfo.urlOrEmail"
|
|
|
|
placeholder="E-mail address or callback URL"
|
|
|
|
ng-pattern="'(http(s)?:.+)|.+@.+'">
|
|
|
|
<div class="help-text">
|
|
|
|
Note: The export process can take <strong>up to an hour</strong> to process if there are many logs. As well,
|
|
|
|
only a <strong>single</strong> export process can run at a time for each namespace. Additional export requests will be
|
|
|
|
queued.
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
2013-11-27 07:29:31 +00:00
|
|
|
</div>
|