Constructs a new MetricCatalog from the given metrics, data providers, and options.
The metrics to include in the catalog.
The data providers used to fetch data for metrics.
Additional options for the catalog.
Count of times that the MetricCatalog has had to fetch data from one or more data providers (e.g. any of the fetchData() methods were called, or a useData() hook was called with new metrics / regions).
Used for debugging / testing.
Readonly
dataAll metric data providers registered with the catalog.
Readonly
metricsAll metrics in the catalog.
Private
Readonly
metricsReadonly
optionsOptions associated with the MetricCatalog.
Fetch data for a given region
and metric
.
The metric data.
Fetch data for a given region
and multiple metrics
.
The metric data.
Fetch data for multiple regions
and multiple metrics
.
The metric data.
Generated using TypeDoc
Catalog of metrics and the accompanying data providers to fetch data for them.
MetricCatalog is the central class for dealing with metrics. It stores the definitions of all known metrics and can be used to fetch data for them as needed.