Skip to main content
Version: Next

MultipleAnalyticsApi.fromApis()

Home > @backstage/core-app-api > MultipleAnalyticsApi > fromApis

Create an AnalyticsApi implementation from an array of concrete implementations.

Signature:

static fromApis(actualApis: AnalyticsApi[]): MultipleAnalyticsApi;

Parameters

Parameter

Type

Description

actualApis

AnalyticsApi[]

**Returns:**

MultipleAnalyticsApi

Example

MultipleAnalyticsApi.fromApis([
SomeAnalyticsApi.fromConfig(configApi),
new CustomAnalyticsApi(),
]);