wazuh-kibana-app/public/templates/agents-policyMonitoring.html

75 lines
4.4 KiB
HTML
Raw Normal View History

<md-content ng-if="submenuNavItem == 'policy_monitoring'" ng-show="_agent" class="md-padding">
2016-08-31 10:20:04 +00:00
<div flex ng-controller="pmController" layout="column">
<md-virtual-repeat-container class="vertical-repeater" style="min-height: 800px;">
<md-progress-linear class="md-accent" md-mode="indeterminate" ng-show="load"></md-progress-linear>
<md-content layout="row">
<md-card flex="40">
<md-card-title>
<md-card-title-text>
<span class="md-headline">Events</span>
</md-card-title-text>
</md-card-title>
<md-card-content>
<kbn-vis vis-height="100px;" vis-type="histogram" vis-index-pattern="ossec-*" vis-a="(filters:!(),linked:!f,query:(query_string:(analyze_wildcard:!t,query:'rule.groups:%20rootcheck')),uiState:(vis:(legendOpen:!f)),vis:(aggs:!((enabled:!t,id:'1',params:(),schema:metric,type:count),(enabled:!t,id:'2',params:(customInterval:'2h',extended_bounds:(),field:'@timestamp',interval:auto,min_doc_count:1),schema:segment,type:date_histogram)),listeners:(),params:(addLegend:!t,addTimeMarker:!f,addTooltip:!t,defaultYExtents:!f,mode:stacked,scale:linear,setYExtents:!f,shareYAxis:!t,times:!(),yAxis:()),title:'New%20Visualization',type:histogram))"
vis-g="(refreshInterval:(display:Off,pause:!f,value:0),time:(from:now-7d,mode:quick,to:now))" vis-filter="{{_agent.name ? 'AgentName:'+_agent.name : '*'}}">
</kbn-vis>
</md-card-content>
</md-card>
<md-card flex="30">
<md-card-title>
<md-card-title-text>
<span class="md-headline">Top alerts</span>
</md-card-title-text>
</md-card-title>
<md-card-content>
<kbn-vis vis-height="100px;" vis-type="pie" vis-index-pattern="ossec-*" vis-a="(filters:!(),linked:!f,query:(query_string:(analyze_wildcard:!t,query:'*')),uiState:(),vis:(aggs:!((enabled:!t,id:'1',params:(),schema:metric,type:count),(enabled:!t,id:'2',params:(field:rule.description,order:desc,orderBy:'1',size:5),schema:segment,type:terms)),listeners:(),params:(addLegend:!t,addTooltip:!t,isDonut:!f,shareYAxis:!t),title:'New%20Visualization',type:pie))"
vis-g="(refreshInterval:(display:Off,pause:!f,value:0),time:(from:now-7d,mode:quick,to:now))" vis-filter="{{'AgentName:'+_agent.name}}">
</kbn-vis>
</md-card-content>
</md-card>
2016-08-31 10:20:04 +00:00
</md-content>
<div flex layout="column" layout-align="space-between stretch">
<div id="messages" ng-show="message" class="settings-message-error" ng-bind-html="message">{{ message }}</div>
2016-08-31 10:20:04 +00:00
<div layout="row" layout-align="space-between stretch">
<md-input-container layout="row" class="sideNavBox" flex="40">
<label>Search</label>
2016-08-31 10:20:04 +00:00
<input type="text" id="searchBox" ng-model="$parent._rootcheckSearch" ng-change="rootcheckSearchFilter($parent._rootcheckSearch)" flex>
</md-input-container>
</div>
<div>
2016-08-31 10:20:04 +00:00
<md-toolbar layout="row" class="md-hue-3">
<div class="md-toolbar-tools">
<span flex="60">Control</span>
2016-08-31 10:20:04 +00:00
<span flex="20">First time seen</span>
<span flex="20">Last time seen</span>
</div>
</md-toolbar>
<div md-virtual-repeat="event in eventsObj" md-on-demand flex layout-align="stretch" <md-list>
<md-list-item ng-click=" showDetails = ! showDetails; ">
2016-08-31 10:20:04 +00:00
<span flex="60">{{event.event.length > 100 ? event.event.substring(0, 100)+'...' : event.event}}</span>
<span flex="20">{{event.oldDay}}</span>
<span flex="20">{{event.readDay}}</span>
</md-list-item>
<md-content flex layout="column" layout-padding ng-show="showDetails">
<md-list>
<md-list-item>
<span flex>{{event.event}}</span>
</md-list-item>
</md-list>
<md-divider></md-divider>
</md-content>
</md-list>
</div>
2016-08-31 10:20:04 +00:00
</div>
</div>
2016-08-31 10:20:04 +00:00
</md-virtual-repeat-container>
</div>
</md-content>