diff --git a/plugins/dynatrace/src/plugin.ts b/plugins/dynatrace/src/plugin.ts index 2c3fa0e936..a9335bcb52 100644 --- a/plugins/dynatrace/src/plugin.ts +++ b/plugins/dynatrace/src/plugin.ts @@ -25,7 +25,9 @@ import { import { Entity } from '@backstage/catalog-model'; import { DYNATRACE_ID_ANNOTATION } from './constants'; -// @public +import { rootRouteRef } from './routes'; + +// @public (undocumented) export const dynatracePlugin = createPlugin({ id: 'dynatrace', apis: [ @@ -44,11 +46,11 @@ export const dynatracePlugin = createPlugin({ ], }); -// @public +// @public (undocumented) export const isDynatraceAvailable = (entity: Entity) => Boolean(entity.metadata.annotations?.[DYNATRACE_ID_ANNOTATION]); -// @public +// @public (undocumented) export const DynatraceTab = dynatracePlugin.provide( createRoutableExtension({ name: 'DynatraceTab', diff --git a/plugins/dynatrace/src/routes.ts b/plugins/dynatrace/src/routes.ts new file mode 100644 index 0000000000..73f7b573b7 --- /dev/null +++ b/plugins/dynatrace/src/routes.ts @@ -0,0 +1,20 @@ +/* + * Copyright 2022 The Backstage Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { createRouteRef } from '@backstage/core-plugin-api'; + +export const rootRouteRef = createRouteRef({ + id: 'dynatrace', +});