|
|
|
@ -3,6 +3,53 @@ import {allResourceActions, FieldType, Renderer, ResourceAction, ResourceConfigu
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
resources: [
|
|
|
|
|
{
|
|
|
|
|
key: 'pageView',
|
|
|
|
|
primaryKey: 'page_view_id',
|
|
|
|
|
collection: 'page_views',
|
|
|
|
|
display: {
|
|
|
|
|
field: 'endpoint',
|
|
|
|
|
singular: 'Raw Page View',
|
|
|
|
|
plural: 'Raw Page Views',
|
|
|
|
|
},
|
|
|
|
|
orderField: 'visited_at',
|
|
|
|
|
orderDirection: 'desc',
|
|
|
|
|
supportedActions: [ResourceAction.read, ResourceAction.readOne],
|
|
|
|
|
fields: [
|
|
|
|
|
{
|
|
|
|
|
key: 'visited_at',
|
|
|
|
|
display: 'Date',
|
|
|
|
|
type: FieldType.date,
|
|
|
|
|
renderer: Renderer.datetime,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: 'endpoint',
|
|
|
|
|
display: 'Route',
|
|
|
|
|
type: FieldType.text,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: 'ip',
|
|
|
|
|
display: 'IP Address',
|
|
|
|
|
type: FieldType.text,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: 'hostname',
|
|
|
|
|
display: 'Hostname',
|
|
|
|
|
type: FieldType.text,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: 'method',
|
|
|
|
|
display: 'Method',
|
|
|
|
|
type: FieldType.text,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: 'xhr',
|
|
|
|
|
display: 'XHR?',
|
|
|
|
|
type: FieldType.bool,
|
|
|
|
|
renderer: Renderer.bool,
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: 'workItem',
|
|
|
|
|
primaryKey: 'work_item_id',
|
|
|
|
|