Merge pull request #13252 from backstage/freben/api-well-ok-then

When the 🧹 s go marching in
This commit is contained in:
Fredrik Adelöw
2022-08-23 13:55:58 +02:00
committed by GitHub
273 changed files with 2469 additions and 1529 deletions
-2
View File
@@ -14,8 +14,6 @@ export const dynatracePlugin: BackstagePlugin<{}, {}, {}>;
// @public
export const DynatraceTab: () => JSX.Element;
// Warning: (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'
//
// @public
export const isDynatraceAvailable: (entity: Entity) => boolean;
+1
View File
@@ -13,4 +13,5 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export { dynatracePlugin, DynatraceTab, isDynatraceAvailable } from './plugin';
+2 -1
View File
@@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { dynatraceApiRef, DynatraceClient } from './api';
import {
createApiFactory,
@@ -55,7 +56,7 @@ export const dynatracePlugin = createPlugin({
/**
* Checks if the entity has a dynatrace id annotation.
* @public
* @param entity {Entity} - The entity to check for the dynatrace id annotation.
* @param entity - The entity to check for the dynatrace id annotation.
*/
export const isDynatraceAvailable = (entity: Entity) =>
Boolean(entity.metadata.annotations?.[DYNATRACE_ID_ANNOTATION]) ||