Skip to content

Commit

Permalink
Merge branch 'main' into connector-types-split-servicenow
Browse files Browse the repository at this point in the history
  • Loading branch information
kibanamachine authored Sep 28, 2022
2 parents 29c5932 + a73c2d4 commit f019a58
Show file tree
Hide file tree
Showing 58 changed files with 2,565 additions and 310 deletions.
13 changes: 13 additions & 0 deletions x-pack/plugins/alerting/common/execution_log_types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,17 @@ export const actionErrorLogSortableColumns = [
'event.action',
];

export const EMPTY_EXECUTION_KPI_RESULT = {
success: 0,
unknown: 0,
failure: 0,
activeAlerts: 0,
newAlerts: 0,
recoveredAlerts: 0,
erroredActions: 0,
triggeredActions: 0,
};

export type ExecutionLogSortFields = typeof executionLogSortableColumns[number];

export type ActionErrorLogSortFields = typeof actionErrorLogSortableColumns[number];
Expand Down Expand Up @@ -68,3 +79,5 @@ export interface IExecutionLogResult {
total: number;
data: IExecutionLog[];
}

export type IExecutionKPIResult = typeof EMPTY_EXECUTION_KPI_RESULT;
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export enum ReadOperations {
Find = 'find',
GetAuthorizedAlertsIndices = 'getAuthorizedAlertsIndices',
RunSoon = 'runSoon',
GetRuleExecutionKPI = 'getRuleExecutionKPI',
}

export enum WriteOperations {
Expand Down
Loading

0 comments on commit f019a58

Please sign in to comment.