-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
chrisronline
committed
Apr 25, 2022
1 parent
fe84c57
commit 7274ca5
Showing
24 changed files
with
393 additions
and
208 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* 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 { ValidMetricSet } from '@kbn/monitoring-collection-plugin/common/types'; | ||
|
||
export interface RuleMonitoringMetrics { | ||
[key: string]: { | ||
data: Array<{ timestamp: number; value: number }>; | ||
}; | ||
} | ||
|
||
export interface NodeLevelMetricsType { | ||
kibana_alerting_node_action_executions: number; | ||
kibana_alerting_node_action_execution_time: number; | ||
kibana_alerting_node_action_failures: number; | ||
kibana_alerting_node_action_timeouts: number; | ||
} | ||
|
||
export enum NodeLevelMetricsEnum { | ||
kibana_alerting_node_action_executions = 'kibana_alerting_node_action_executions', | ||
kibana_alerting_node_action_execution_time = 'kibana_alerting_node_action_execution_time', | ||
kibana_alerting_node_action_failures = 'kibana_alerting_node_action_failures', | ||
kibana_alerting_node_action_timeouts = 'kibana_alerting_node_action_timeouts', | ||
} | ||
|
||
export interface ClusterLevelMetricsType extends ValidMetricSet { | ||
kibana_alerting_cluster_actions_overdue_count: number; | ||
kibana_alerting_cluster_actions_overdue_delay_p50: number; | ||
kibana_alerting_cluster_actions_overdue_delay_p99: number; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.