%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2010 %>
title="<%= @page_title + ' » ' + "#{@PAGE_TITLE_LIMIT}" %>"
stateId="job_monitor_focused"
baseParameters="{
results: 300,
job_id: '<%= params[:job_id] %>'<%= ",
job_type: '" + params[:job_type] + "'" if !params[:job_type].nil? %>,
tag: '<%= params[:tag] %>'
}"
includeTagFilter="false"
predefinedFilters="{
width: 210,
filters: [{
name: '<%= t("common.filter_two_days_event") %>',
filter: [{
key: 'event_detection_time_utc',
value: {
after: -2
}
}]
}, {
name: '<%= t("common.filter_today_all_event") %>',
filter: [{
key: 'event_detection_time_utc',
value: {
on: 'T'
}
}]
},{
name: '<%= t("common.filter_two_days_schedule") %>',
filter: [{
key: 'scheduled_time_utc',
value: {
after: -2
}
}]
}, {
name: '<%= t("common.filter_today_all_schedule") %>',
filter: [{
key: 'scheduled_time_utc',
value: {
on: 'T'
}
}]
}]
}"
<% elsif (params[:apply_filters]) %>
stateId="job_monitor_drill_in"
title = "<%= t("dashboards.page_name")+' » '+t("dashboards.chart_name_#{params[:chart_id]}")+' » '+t("#{controller.controller_name}.page_title") %>"
baseParameters="{
results: 300,
tag: '<%= params[:tag] %>'
}"
includeTagFilter="true"
tagMatchAnyDefault="<%= match_any_default %>"
advanceDateFilter="{dateField: 'event_detection_time_utc'<%= @date %>}"
<% else %>
title = "<%= t("#{controller.controller_name}.page_title") %>"
baseParameters="{
results: 300,
tag: '<%= params[:tag] %>'
}"
includeTagFilter="true"
tagMatchAnyDefault="<%= match_any_default %>"
advanceDateFilter="{dateField: 'event_detection_time_utc'}"
<% end %>
includeAutoRefresh="true"
<% if (!params[:job_type].nil? && params[:job_type] == 'job_suite') %>
helpUrl="<%=help_link(HELP_URL_CONFIG['history']['job_suite_monitor_history'])%>"
<% elsif (!params[:job_type].nil? && params[:job_type] == 'member') %>
helpUrl="<%=help_link(HELP_URL_CONFIG['history']['member_job_monitor_history'])%>"
<% else %>
helpUrl="<%=help_link(HELP_URL_CONFIG['history']['job_monitor_history'])%>"
<% end %>
region="center"
lazyRender="true"
dojoType="helpsys.ext.LiveGrid"
authenticity_token="<%= form_authenticity_token %>"
dataColumns="[{name: 'id'},
{name: 'job_run_number'},
{name: 'event_type'},
{name: 'agent_name'},
{name: 'scheduled_time_utc'},
{name: 'event_detection_time_utc'},
{name: 'job_name'},
{name: 'event_action_code'},
{name: 'agent_group_name'},
{name: 'job_suite_run_id'},
{name: 'job_suite_name'}
]"
deletePath="<%= job_monitor_event_path(-1) %>"
includeDelete="true"
itemType='<%= t('common.job_monitor_events_entry') %>'
gridColumns="[
{dataIndex: 'id', header: '<%=t "common.event_id" %>', id: 'job_monitor_eventsEventID', locked: false, sortable: true, width: 80, filter: true, filterType: 'numeric'},
{dataIndex: 'job_run_number', header: '<%=t "common.run_number" %>', id: 'job_monitor_eventJobRunNumber', locked: false, sortable: true, width: 100, filter: true, filterType: 'numeric'},
{dataIndex: 'job_name', header: '<%=t "common.job" %>', id: 'job_monitor_eventsJobName', locked: false, sortable: true, width: 150, filter: true, filterType: 'string'},
{dataIndex: 'job_suite_run_id', header: '<%=t ".job_suite_run_number" %>', id: 'job_monitor_eventsGridJobSuiteRunNumber', locked: false, sortable: true, width: 150, filter: true, filterType: 'numeric'},
{dataIndex: 'job_suite_name', header: '<%=t ".job_suite_name" %>', id: 'job_monitor_eventsGridJobSuiteName', locked: false, sortable: true, width: 150, filter: true, filterType: 'string'},
{dataIndex: 'agent_name', header: '<%=t "common.agent" %>', id: 'job_monitor_eventsAgentName', locked: false, sortable: true, width: 150, filter: true, filterType: 'string'},
{dataIndex: 'agent_group_name', header: '<%=t "common.agent_group" %>', id: 'job_monitor_eventsGridAgentGroupName', locked: false, sortable: true, width: 150, filter: true, filterType: 'string'},
{dataIndex: 'event_type', header: '<%=t ".event_type" %>', id: 'job_monitor_eventsGridEventType', locked: false, sortable: true, width: 150, filter: true, filterType: 'list', filterList: <%= JobMonitorEvent.FILTER_TYPE_ALL %>},
{dataIndex: 'scheduled_time_utc', header: '<%=t ".scheduled_timestamp" %>', id: 'job_monitor_eventsGridScheduledTime', locked: false, sortable: true, width: 150, filter: true, filterType: 'date'},
{dataIndex: 'event_detection_time_utc', header: '<%=t ".detected_timestamp" %>', id: 'job_monitor_eventsGridDetectedTime', locked: false, sortable: true, width: 150, filter: true, filterType: 'date'},
{dataIndex: 'event_action_code', header: '<%=t ".event_code" %>', id: 'job_monitor_eventsGridEventCode', locked: false, sortable: true, width: 150}
]"
autoFill="false"
forceFit="false"
menuCfg="{items: [{
iconCls: 'icon_job_history',
text: '<%=t ".job_history" %>',
actsOn: 'one',
actionUrl: '<%= job_history_by_job_job_monitor_event_path(-1) %>',
usePopup: false
},{
iconCls: 'icon_job_history',
text: '<%=t ".job_suite_history" %>',
actsOn: 'one',
actionUrl: '<%= job_suite_history_by_job_job_monitor_event_path(-1) %>',
usePopup: false
},{
iconCls: 'icon_delete',
text: '<%=t ".delete_history" %>',
actsOn: 'many',
method: 'DELETE',
actionUrl: '<%= job_monitor_event_path(-1) %>',
ajaxRequest: true,
actionId: 'delete_history',
customAction: true,
confirmText: '<%=t ".delete_confirmation" %>'
}
]}"
sortField="{field: 'event_detection_time_utc', direction: 'DESC'}"
tbar="{items: []}"
url="<%= job_monitor_events_path(:format => 'json') %>">