@versatiledatakit/data-pipelines
Version:
Data Pipelines help Data Engineers develop, deploy, run, and manage data processing workloads (called 'Data Job')
59 lines (58 loc) • 2.58 kB
TypeScript
import { EventEmitter, OnInit } from '@angular/core';
import { DatePipe } from '@angular/common';
import { ActivatedRoute } from '@angular/router';
import { ComponentModel, ComponentService, ErrorRecord, NavigationService, OnTaurusModelChange, OnTaurusModelError, OnTaurusModelInit, OnTaurusModelLoad, RouterService, TaurusBaseComponent } from '@versatiledatakit/shared';
import { DataJobsService } from '../../../services';
import { DataJob, DataPipelinesConfig } from '../../../model';
import { GridDataJobExecution } from '../../data-job/pages/executions';
import * as i0 from "@angular/core";
export declare class DataJobsHealthPanelComponent extends TaurusBaseComponent implements OnInit, OnTaurusModelInit, OnTaurusModelLoad, OnTaurusModelChange, OnTaurusModelError {
private readonly routerService;
private readonly dataJobsService;
private readonly datePipe;
readonly dataPipelinesModuleConfig: DataPipelinesConfig;
manageLink: string;
componentStateEvent: EventEmitter<string>;
readonly uuid = "DataJobsHealthPanelComponent";
loadingJobs: boolean;
loadingExecutions: boolean;
teamName: string;
loading: boolean;
dataJobs: DataJob[];
jobExecutions: GridDataJobExecution[];
/**
* ** Flag that indicates there is jobs executions load error.
*/
isComponentInErrorState: boolean;
/**
* ** Array of error code patterns that component should listen for in errors store.
*/
listenForErrorPatterns: string[];
constructor(componentService: ComponentService, navigationService: NavigationService, activatedRoute: ActivatedRoute, routerService: RouterService, dataJobsService: DataJobsService, datePipe: DatePipe, dataPipelinesModuleConfig: DataPipelinesConfig);
fetchDataJobs(): void;
fetchDataJobExecutions(): void;
/**
* @inheritDoc
*/
onModelInit(): void;
/**
* @inheritDoc
*/
onModelLoad(): void;
/**
* @inheritDoc
*/
onModelChange(model: ComponentModel, task: string): void;
/**
* @inheritDoc
*/
onModelError(model: ComponentModel, task: string, newErrorRecords: ErrorRecord[]): void;
/**
* @inheritDoc
*/
ngOnInit(): void;
private _emitNewState;
private _subscribeForTeamChange;
static ɵfac: i0.ɵɵFactoryDeclaration<DataJobsHealthPanelComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<DataJobsHealthPanelComponent, "lib-data-jobs-health-panel", never, { "manageLink": "manageLink"; }, { "componentStateEvent": "componentStateEvent"; }, never, never>;
}