mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 10:23:14 -04:00
34 lines
920 B
TypeScript
34 lines
920 B
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 { RuleTypeParams } from '@kbn/alerting-plugin/common';
|
|
|
|
export const ALERTING_EXAMPLE_APP_ID = 'AlertingExample';
|
|
|
|
// always firing
|
|
export const DEFAULT_INSTANCES_TO_GENERATE = 5;
|
|
export interface AlwaysFiringThresholds {
|
|
small?: number;
|
|
medium?: number;
|
|
large?: number;
|
|
}
|
|
export interface AlwaysFiringParams extends RuleTypeParams {
|
|
instances?: number;
|
|
thresholds?: AlwaysFiringThresholds;
|
|
}
|
|
export type AlwaysFiringActionGroupIds = keyof AlwaysFiringThresholds;
|
|
|
|
// Astros
|
|
export enum Craft {
|
|
OuterSpace = 'Outer Space',
|
|
ISS = 'ISS',
|
|
}
|
|
export enum Operator {
|
|
AreAbove = 'Are above',
|
|
AreBelow = 'Are below',
|
|
AreExactly = 'Are exactly',
|
|
}
|