kibana/x-pack/plugins/infra/server/lib/infra_types.ts
Felix Stürmer e9f42d27eb
[Logs UI] Register log threshold rule as lifecycle rule (#104341)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-13 11:59:11 +02:00

34 lines
1.3 KiB
TypeScript

/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/
import { handleEsError } from '../../../../../src/plugins/es_ui_shared/server';
import { InfraConfig } from '../plugin';
import { GetLogQueryFields } from '../services/log_queries/get_log_query_fields';
import { RulesServiceSetup } from '../services/rules';
import { KibanaFramework } from './adapters/framework/kibana_framework_adapter';
import { InfraFieldsDomain } from './domains/fields_domain';
import { InfraLogEntriesDomain } from './domains/log_entries_domain';
import { InfraMetricsDomain } from './domains/metrics_domain';
import { InfraSources } from './sources';
import { InfraSourceStatus } from './source_status';
export interface InfraDomainLibs {
fields: InfraFieldsDomain;
logEntries: InfraLogEntriesDomain;
metrics: InfraMetricsDomain;
}
export interface InfraBackendLibs extends InfraDomainLibs {
configuration: InfraConfig;
framework: KibanaFramework;
sources: InfraSources;
sourceStatus: InfraSourceStatus;
getLogQueryFields: GetLogQueryFields;
handleEsError: typeof handleEsError;
logsRules: RulesServiceSetup;
metricsRules: RulesServiceSetup;
}