1 import { Directive, OnInit } from '@angular/core';
3 import { PrometheusService } from '~/app/shared/api/prometheus.service';
4 import { ListWithDetails } from '~/app/shared/classes/list-with-details.class';
7 // tslint:disable-next-line: directive-class-suffix
8 export class PrometheusListHelper extends ListWithDetails implements OnInit {
9 public isPrometheusConfigured = false;
10 public isAlertmanagerConfigured = false;
12 constructor(protected prometheusService: PrometheusService) {
17 this.prometheusService.ifAlertmanagerConfigured(() => {
18 this.isAlertmanagerConfigured = true;
20 this.prometheusService.ifPrometheusConfigured(() => {
21 this.isPrometheusConfigured = true;