]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/blob
06f5a9270ac45001fc792d999e971e489d9c0cd2
[ceph-ci.git] /
1 import { Component } from '@angular/core';
2 import { ActivatedRoute } from '@angular/router';
3
4 @Component({
5   selector: 'cd-performance-counter',
6   templateUrl: './performance-counter.component.html',
7   styleUrls: ['./performance-counter.component.scss']
8 })
9 export class PerformanceCounterComponent {
10   serviceId: string;
11   serviceType: string;
12
13   constructor(private route: ActivatedRoute) {
14     this.route.params.subscribe(
15       (params: { type: string; id: string }) => {
16         this.serviceId = params.id;
17         this.serviceType = params.type;
18       }
19     );
20   }
21
22 }