Skip to main content

MultipleAnalyticsApi.fromApis()

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

Create an AnalyticsApi implementation from an array of concrete implementations.

Signature:

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

Parameters

Parameter

Type

Description

actualApis

(AnalyticsApi | NewAnalyicsApi)[]

**Returns:**

MultipleAnalyticsApi

Example

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