mirror of
https://github.com/elastic/kibana.git
synced 2025-06-28 03:01:21 -04:00
Fix some type issues for APM UI (#167347)
## Summary We're breaking https://github.com/elastic/kibana/pull/166813 up into smaller PRs in the interest of getting PRs through sooner for type fixes. These are the changes for APM UI.
This commit is contained in:
parent
26873aff87
commit
7a87c3615d
5 changed files with 7 additions and 3 deletions
|
@ -275,6 +275,7 @@ export async function getApmServiceSummary({
|
||||||
start,
|
start,
|
||||||
end,
|
end,
|
||||||
serviceName,
|
serviceName,
|
||||||
|
environment,
|
||||||
}),
|
}),
|
||||||
getAnomalies({
|
getAnomalies({
|
||||||
serviceName,
|
serviceName,
|
||||||
|
|
|
@ -63,7 +63,7 @@ export function InstallElasticAgent() {
|
||||||
useState<ElasticAgentPlatform>('linux-tar');
|
useState<ElasticAgentPlatform>('linux-tar');
|
||||||
|
|
||||||
const enforcedDatasetName =
|
const enforcedDatasetName =
|
||||||
integration === dataset ? dataset : `${integration}.${dataset}`;
|
(integration === dataset ? dataset : `${integration}.${dataset}`) || '';
|
||||||
|
|
||||||
async function onContinue() {
|
async function onContinue() {
|
||||||
await singleDatasetLocator!.navigate({
|
await singleDatasetLocator!.navigate({
|
||||||
|
@ -113,7 +113,7 @@ export function InstallElasticAgent() {
|
||||||
return callApi('POST /internal/observability_onboarding/logs/flow', {
|
return callApi('POST /internal/observability_onboarding/logs/flow', {
|
||||||
params: {
|
params: {
|
||||||
body: {
|
body: {
|
||||||
name: datasetName,
|
name: datasetName || '',
|
||||||
type: 'logFiles',
|
type: 'logFiles',
|
||||||
state: {
|
state: {
|
||||||
datasetName,
|
datasetName,
|
||||||
|
|
|
@ -17,7 +17,7 @@ import {
|
||||||
ObservabilityOnboardingPluginStart,
|
ObservabilityOnboardingPluginStart,
|
||||||
} from './plugin';
|
} from './plugin';
|
||||||
|
|
||||||
export { OBSERVABILITY_ONBOARDING_LOCATOR } from './locators/onboarding_locator/locator_definition';
|
export type { OBSERVABILITY_ONBOARDING_LOCATOR } from './locators/onboarding_locator/locator_definition';
|
||||||
export type { ObservabilityOnboardingLocatorParams } from './locators/onboarding_locator/types';
|
export type { ObservabilityOnboardingLocatorParams } from './locators/onboarding_locator/types';
|
||||||
|
|
||||||
export interface ConfigSchema {
|
export interface ConfigSchema {
|
||||||
|
|
|
@ -11,6 +11,8 @@ import {
|
||||||
OBSERVABILITY_ONBOARDING_LOCATOR,
|
OBSERVABILITY_ONBOARDING_LOCATOR,
|
||||||
} from '@kbn/deeplinks-observability/locators';
|
} from '@kbn/deeplinks-observability/locators';
|
||||||
|
|
||||||
|
export type { OBSERVABILITY_ONBOARDING_LOCATOR } from '@kbn/deeplinks-observability/locators';
|
||||||
|
|
||||||
export class ObservabilityOnboardingLocatorDefinition
|
export class ObservabilityOnboardingLocatorDefinition
|
||||||
implements LocatorDefinition<ObservabilityOnboardingLocatorParams>
|
implements LocatorDefinition<ObservabilityOnboardingLocatorParams>
|
||||||
{
|
{
|
||||||
|
|
|
@ -8,5 +8,6 @@
|
||||||
import type { LocatorPublic } from '@kbn/share-plugin/public';
|
import type { LocatorPublic } from '@kbn/share-plugin/public';
|
||||||
import type { ObservabilityOnboardingLocatorParams } from '@kbn/deeplinks-observability/locators';
|
import type { ObservabilityOnboardingLocatorParams } from '@kbn/deeplinks-observability/locators';
|
||||||
|
|
||||||
|
export type { ObservabilityOnboardingLocatorParams } from '@kbn/deeplinks-observability/locators';
|
||||||
export type ObservabilityOnboardingLocator =
|
export type ObservabilityOnboardingLocator =
|
||||||
LocatorPublic<ObservabilityOnboardingLocatorParams>;
|
LocatorPublic<ObservabilityOnboardingLocatorParams>;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue