mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
[Actionable Observability][Metric Threshold Rule] Add histogram support to avg, max, min, sum and percentiles (#139770)
This commit is contained in:
parent
9b7a65cf2a
commit
08e9c63659
1 changed files with 6 additions and 6 deletions
|
@ -364,7 +364,7 @@ export const aggregationType: { [key: string]: any } = {
|
|||
defaultMessage: 'Average',
|
||||
}),
|
||||
fieldRequired: true,
|
||||
validNormalizedTypes: ['number'],
|
||||
validNormalizedTypes: ['number', 'histogram'],
|
||||
value: AGGREGATION_TYPES.AVERAGE,
|
||||
},
|
||||
max: {
|
||||
|
@ -372,7 +372,7 @@ export const aggregationType: { [key: string]: any } = {
|
|||
defaultMessage: 'Max',
|
||||
}),
|
||||
fieldRequired: true,
|
||||
validNormalizedTypes: ['number', 'date'],
|
||||
validNormalizedTypes: ['number', 'date', 'histogram'],
|
||||
value: AGGREGATION_TYPES.MAX,
|
||||
},
|
||||
min: {
|
||||
|
@ -380,7 +380,7 @@ export const aggregationType: { [key: string]: any } = {
|
|||
defaultMessage: 'Min',
|
||||
}),
|
||||
fieldRequired: true,
|
||||
validNormalizedTypes: ['number', 'date'],
|
||||
validNormalizedTypes: ['number', 'date', 'histogram'],
|
||||
value: AGGREGATION_TYPES.MIN,
|
||||
},
|
||||
cardinality: {
|
||||
|
@ -413,7 +413,7 @@ export const aggregationType: { [key: string]: any } = {
|
|||
}),
|
||||
fieldRequired: false,
|
||||
value: AGGREGATION_TYPES.SUM,
|
||||
validNormalizedTypes: ['number'],
|
||||
validNormalizedTypes: ['number', 'histogram'],
|
||||
},
|
||||
p95: {
|
||||
text: i18n.translate('xpack.infra.metrics.alertFlyout.aggregationText.p95', {
|
||||
|
@ -421,7 +421,7 @@ export const aggregationType: { [key: string]: any } = {
|
|||
}),
|
||||
fieldRequired: false,
|
||||
value: AGGREGATION_TYPES.P95,
|
||||
validNormalizedTypes: ['number'],
|
||||
validNormalizedTypes: ['number', 'histogram'],
|
||||
},
|
||||
p99: {
|
||||
text: i18n.translate('xpack.infra.metrics.alertFlyout.aggregationText.p99', {
|
||||
|
@ -429,6 +429,6 @@ export const aggregationType: { [key: string]: any } = {
|
|||
}),
|
||||
fieldRequired: false,
|
||||
value: AGGREGATION_TYPES.P99,
|
||||
validNormalizedTypes: ['number'],
|
||||
validNormalizedTypes: ['number', 'histogram'],
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue