<%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2010 %>
title="<%= page_title_limit(@page_title, @page_title_limit) %>"
stateId="agent_event_focused"
baseParameters="{
results: 300,
event_monitor_id: '<%= params[:event_monitor_id] %>',
tag: '<%= params[:tag] %>'
}"
includeTagFilter="false"
<% elsif (params[:target_id]) %>
title="<%= page_title_limit(@page_title, @page_title_limit) %>"
stateId="agent_event_focused"
baseParameters="{
results: 300,
target_id: '<%= params[:target_id] %>',
target_type: '<%= params[:target_type] %>',
tag: '<%= params[:tag] %>'
}"
includeTagFilter="false"
<% elsif (params[:apply_filters]) %>
title="<%= t("dashboards.page_name")+' » '+t("dashboards.chart_name_#{params[:chart_id]}")+' » '+page_title_limit(@page_title, @page_title_limit) %>"
stateId="agent_event_drill_in"
baseParameters="{
results: 300,
tag: '<%= params[:tag] %>'
}"
advanceDateFilter="{dateField: 'server_timestamp_utc'<%= @date %>}"
includeTagFilter="true"
tagMatchAnyDefault="<%= match_any_default %>"
<% else %>
title="<%= page_title_limit(@page_title, @page_title_limit) %>"
baseParameters="{
results: 300,
tag: '<%= params[:tag] %>'
}"
advanceDateFilter="{dateField: 'server_timestamp_utc'}"
includeTagFilter="true"
tagMatchAnyDefault="<%= match_any_default %>"
<% end %>
cls="full-page-grid"
includeAutoRefresh="true"
helpUrl="<%=help_link(HELP_URL_CONFIG['history']['agent_event_monitor_history'])%>"
region="center"
lazyRender="true"
dojoType="helpsys.ext.LiveGrid"
autoExpandColumn="agent_event_historiesGridEventData"
autoFill="false"
authenticity_token="<%= form_authenticity_token %>"
dataColumns="[{name: 'id'},
{name: 'event_monitor_name'},
{name: 'agent_name'},
{name: 'agent_group_name'},
{name: 'agent_timestamp_utc'},
{name: 'server_timestamp_utc'},
{name: 'monitor_type'},
{name: 'error_status'},
{name: 'event_data'}
]"
deletePath="<%= agent_event_history_path(-1) %>"
forceFit="false"
gridColumns="[
{dataIndex: 'id', header: '<%=t "common.event_id" %>', id: 'agent_event_historiesGridEventID', locked: false, sortable: true, width: 70, filter: true, filterType: 'numeric'},
{dataIndex: 'event_monitor_name', header: '<%=t ".event_name" %>', id: 'agent_event_historiesGridMonitorName', locked: false, sortable: true, width: 150, filter: true, filterType: 'string'},
{dataIndex: 'agent_name', header: '<%=t ".agent_name" %>', id: 'agent_event_historiesGridAgentName', locked: false, sortable: true, width: 150, filter: true, filterType: 'string'},
{dataIndex: 'agent_group_name', header: '<%=t "common.agent_group" %>', id: 'agent_event_historiesGridAgentGroupName', locked: false, sortable: true, width: 150, filter: true, filterType: 'string'},
{dataIndex: 'agent_timestamp_utc', header: '<%=t ".agent_timestamp" %>', id: 'agent_event_historiesGridAgentTime', locked: false, sortable: true, width: 150, filter: true, filterType: 'date'},
{dataIndex: 'server_timestamp_utc', header: '<%=t ".server_timestamp" %>', id: 'agent_event_historiesGridServerTime', locked: false, sortable: true, width: 150, filter: true, filterType: 'date'},
{dataIndex: 'monitor_type', header: '<%=t ".event_type" %>', id: 'agent_event_historiesMonitorType', locked: false, sortable: true, width: 150, filter: true, filterType: 'list', filterList: <%= AgentEventHistory.FILTER_TYPE_ALL %>},
{dataIndex: 'error_status', header: '<%=t ".event_code" %>', id: 'agent_event_historiesGridEventStatus', locked: false, sortable: true, width: 120},
{dataIndex: 'event_data', header: '<%=t ".event_data" %>', id: 'agent_event_historiesGridEventData', locked: false, sortable: true, width: 200, filter: true, filterType: 'string'}
]"
includeDelete="true"
itemType='<%= t('common.agent_event_monitor_history_entry') %>'
menuCfg="{items: [{
iconCls: 'icon_delete',
text: '<%=t ".delete_history" %>',
actsOn: 'many',
method: 'DELETE',
actionUrl: '<%= agent_event_history_path(-1) %>',
ajaxRequest: true,
actionId: 'delete_history',
customAction: true,
confirmText: '<%=t ".delete_confirmation" %>'
}
]}"
sortField="{field: 'server_timestamp_utc', direction: 'DESC'}"
tbar="{items: []}"
url="<%= agent_event_histories_path(:format => 'json') %>">