mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
feat(slo): add partition by field in APM indicators (#165106)
This commit is contained in:
parent
3128c46c70
commit
e56c0f61ed
2 changed files with 8 additions and 0 deletions
|
@ -12,10 +12,12 @@ import { useFormContext } from 'react-hook-form';
|
|||
import { CreateSLOForm } from '../../types';
|
||||
import { FieldSelector } from '../apm_common/field_selector';
|
||||
import { DataPreviewChart } from '../common/data_preview_chart';
|
||||
import { GroupByFieldSelector } from '../common/group_by_field_selector';
|
||||
import { QueryBuilder } from '../common/query_builder';
|
||||
|
||||
export function ApmAvailabilityIndicatorTypeForm() {
|
||||
const { watch } = useFormContext<CreateSLOForm>();
|
||||
const index = watch('indicator.params.index');
|
||||
|
||||
return (
|
||||
<EuiFlexGroup direction="column" gutterSize="l">
|
||||
|
@ -119,6 +121,8 @@ export function ApmAvailabilityIndicatorTypeForm() {
|
|||
</EuiFlexItem>
|
||||
</EuiFlexGroup>
|
||||
|
||||
<GroupByFieldSelector index={index} />
|
||||
|
||||
<DataPreviewChart />
|
||||
</EuiFlexGroup>
|
||||
);
|
||||
|
|
|
@ -12,10 +12,12 @@ import { Controller, useFormContext } from 'react-hook-form';
|
|||
import { CreateSLOForm } from '../../types';
|
||||
import { FieldSelector } from '../apm_common/field_selector';
|
||||
import { DataPreviewChart } from '../common/data_preview_chart';
|
||||
import { GroupByFieldSelector } from '../common/group_by_field_selector';
|
||||
import { QueryBuilder } from '../common/query_builder';
|
||||
|
||||
export function ApmLatencyIndicatorTypeForm() {
|
||||
const { control, watch, getFieldState } = useFormContext<CreateSLOForm>();
|
||||
const index = watch('indicator.params.index');
|
||||
|
||||
return (
|
||||
<EuiFlexGroup direction="column" gutterSize="l">
|
||||
|
@ -162,6 +164,8 @@ export function ApmLatencyIndicatorTypeForm() {
|
|||
</EuiFlexItem>
|
||||
</EuiFlexGroup>
|
||||
|
||||
<GroupByFieldSelector index={index} />
|
||||
|
||||
<DataPreviewChart />
|
||||
</EuiFlexGroup>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue