[
https://issues.apache.org/jira/browse/METRON-623?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15940566#comment-15940566
]
ASF GitHub Bot commented on METRON-623:
---------------------------------------
Github user simonellistonball commented on a diff in the pull request:
https://github.com/apache/incubator-metron/pull/489#discussion_r107932616
--- Diff:
metron-interface/metron-config/src/app/sensors/sensor-parser-config-readonly/sensor-parser-config-readonly.component.html
---
@@ -0,0 +1,106 @@
+<!--
+ Licensed to the Apache Software
+ Foundation (ASF) under one or more contributor license agreements. See
the
+ NOTICE file distributed with this work for additional information
regarding
+ copyright ownership. The ASF licenses this file to You under the Apache
License,
+ Version 2.0 (the "License"); you may not use this file except in
compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
distributed
+ under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
+ OR CONDITIONS OF ANY KIND, either express or implied. See the License
for
+ the specific language governing permissions and limitations under the
License.
+ -->
+<metron-config-metron-modal [backgroundMasked]="false">
+
+ <div class="metron-slider-pane fill load-right-to-left dialog1x">
+ <div>
+ <div class="row">
+ <div class="col-xs-12 form-title">{{selectedSensorName}}
+ <i class="fa fa-times pull-right close-button"
aria-hidden="true" (click)="goBack()"></i>
+ </div>
+ </div>
+
+ <div *ngFor="let item of editViewMetaData">
+ <div [ngSwitch]="item.type">
+
+ <div *ngSwitchCase="'SEPARATOR'" class="row form-seperator">
+ </div>
+
+ <div *ngSwitchCase="'SPACER'" class="row">
+ <div class="col-xs-12"> </div>
+ </div>
+
+ <div *ngSwitchCase="'TITLE'" class="row">
+ <div class="col-xs-12 form-sub-title">{{ item.value }}</div>
+ </div>
+
+ <div *ngSwitchDefault class="row">
+ <div *ngIf="item.label!=''" class="col-xs-6 form-label"
[ngClass]="{'form-value font-weight-bold': item.boldTitle}">{{ item.label
}}</div>
+ <div *ngIf="item.model == 'sensorParserConfigHistory'"
class="col-xs-6 px-0 pull-left form-value">{{
sensorParserConfigHistory[item.value] ? sensorParserConfigHistory[item.value] :
"-" }}</div>
+ <div *ngIf="item.model == 'kafkaTopic'" class="col-xs-6 px-0
pull-left form-value">{{ kafkaTopic[item.value] ? kafkaTopic[item.value] : "-"
}}</div>
+ <div *ngIf="item.model == 'topologyStatus'" class="col-xs-6
px-0 pull-left form-value">{{ topologyStatus[item.value] ?
topologyStatus[item.value] : "-" }}</div>
+ <div *ngIf="item.model == 'grokStatement' &&
sensorParserConfigHistory['parserName'] === 'Grok'" style="border: none">
+ <div class="col-xs-12 form-sub-title">Grok Statement</div>
+ <div id="collapseGrok" class="col-xs-12 pull-left
form-value panel-collapse collapse"></div>
+ <div class="col-xs-12 pull-left form-value grok"
[innerHtml]="grokStatement"></div>
+ <a *ngIf="grokStatement.length>0" class="collapsed
blue-label font-weight-bold col-xs-8 col-xs-push-4" data-toggle="collapse"
href="#collapseGrok" aria-expanded="false" aria-controls="collapseGrok"
#grokLink (click)="grokLink.text=(grokLink.text==='show more')?'show
less':'show more'">show more</a>
+ <div class="px-1"> <div class="col-xs-12
form-seperator"></div> </div>
+ </div>
+ <div *ngIf="item.model == 'transforms'">
+
+ <div id="collapseTransform" class="col-xs-12 pull-left
form-value panel-collapse collapse">
+ <div class="form-sub-sub-title">Transforms</div>
+ <div>
+ <div *ngFor="let results of transformsConfigKeys" >
+ <div class="form-label">{{ results }}</div>
+ <div class="form-value">{{
transformsConfigMap[results] }}</div>
+ </div>
+ </div>
+ </div>
+
+ <div class="transforms">
+ <div class="col-xs-12 form-sub-sub-title">Transforms</div>
+ <div class="col-xs-12 form-label "
[innerHtml]="getTransformsOutput()"></div>
+ </div>
+ <a *ngIf="transformsConfigKeys.length>0" class="collapsed
blue-label font-weight-bold col-xs-8 col-xs-push-4" data-toggle="collapse"
href="#collapseTransform" aria-expanded="false"
aria-controls="collapseTransform" #transformLink
(click)="transformLink.text=(transformLink.text==='show more')?'show
less':'show more'">show more</a>
+ </div>
+ <div *ngIf="item.model == 'threatTriageRules'"
class="threat-triage-rules">
+ <div class="col-xs-6 form-label">AGGREGATOR</div><div
class="col-xs-6
form-value">{{sensorEnrichmentConfig.threatIntel.triageConfig.aggregator}}</div>
+ <div id="collapseThreatTriage" class="col-xs-12 pull-left
form-value panel-collapse collapse">
+ <div>
+ <div class="col-xs-6 form-sub-sub-title">NAME</div><div
class="col-xs-6 form-sub-sub-title">SCORE</div>
+ <div *ngFor="let riskLevelRule of rules" >
+ <div class="col-xs-6 form-label">{{
getDisplayName(riskLevelRule) }}</div>
+ <div class="col-xs-6 form-value">{{
riskLevelRule.score }}</div>
+ </div>
+ </div>
+ </div>
+ <div class="col-xs-12 form-label threatIntel">{{
getRuleDisplayName() }}</div>
+ <a *ngIf="rules.length>0" class="collapsed blue-label
font-weight-bold col-xs-8 col-xs-push-4" data-toggle="collapse"
href="#collapseThreatTriage" aria-expanded="false"
aria-controls="collapseThreatTriage" #threatTriageLink
(click)="threatTriageLink.text=(threatTriageLink.text==='show more')?'show
less':'show more'">show more</a>
--- End diff --
should this be encapsulated in a controller function?
> Management UI
> -------------
>
> Key: METRON-623
> URL: https://issues.apache.org/jira/browse/METRON-623
> Project: Metron
> Issue Type: New Feature
> Reporter: Ryan Merriman
> Assignee: Ryan Merriman
>
> It would be useful to have a User Interface for modifying parser/enrichment
> configurations and managing topologies.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)