File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
elastest-torm-gui/src/app/elastest-etm/etm-monitoring-view/monitoring-configuration Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 55 MetricFieldGroupModel ,
66 getMetricBeatFieldGroupList ,
77 isMetricFieldGroup ,
8+ SubtypesObjectModel ,
89} from '../../../shared/metrics-view/metrics-chart-card/models/all-metrics-fields-model' ;
910import { TreeComponent } from 'angular-tree-component/dist/components/tree.component' ;
1011import { TJobExecModel } from '../../tjob-exec/tjobExec-model' ;
@@ -145,7 +146,10 @@ export class MonitoringConfigurationComponent implements OnInit {
145146 let streamPos : number = 0 ;
146147 for ( let streamEtType of componentStreamEtType . children ) {
147148 if ( streamEtType . children ) {
148- if ( streamEtType . name !== defaultStreamMap . composed_metrics && streamEtType !== defaultStreamMap . atomic_metric ) {
149+ if (
150+ streamEtType . name !== defaultStreamMap . composed_metrics &&
151+ streamEtType !== defaultStreamMap . atomic_metric
152+ ) {
149153 let newTypeList : any [ ] = [ ] ;
150154 for ( let etType of streamEtType . children ) {
151155 let ettypeName : string = etType . name ;
@@ -239,6 +243,9 @@ export class MonitoringConfigurationComponent implements OnInit {
239243 } else {
240244 if ( streamTypesList . indexOf ( 'composed_metrics' ) > - 1 ) {
241245 // TODO add as subtype
246+ } else if ( streamTypesList . indexOf ( 'atomic_metric' ) > - 1 ) {
247+ let subtypesObj : SubtypesObjectModel = new SubtypesObjectModel ( etType , '' ) ;
248+ currentMetricFieldGroupList = [ new MetricFieldGroupModel ( etType , [ subtypesObj ] ) ] ;
242249 }
243250 }
244251
You can’t perform that action at this time.
0 commit comments