Readonly
idThe unique id of this MetricDataProvider (e.g. "main-metrics-csv" or "city-data-api"). This ID can be used from a MetricDataReference to indicate what provider should be used to fetch the data for a metric.
Fetches all of the data for the specified regions and metrics, optionally including timeseries metric data if available.
The fetched data for the specified regions and metrics.
One or more regions to fetch data for.
One or more metrics to fetch data for.
Whether to fetch timeseries data.
The metric catalog using this data provider. The data provider can call back into the catalog if it needs to fetch dependent data.
Generated using TypeDoc
Interface that all metric data providers must implement.
A
MetricDataProvider
is used to fetch metric data from a particular source, e.g. a CSV file or API endpoint.The MetricCatalog uses
MetricDataProvider
s to fetch metric data based on the MetricDataReference in the Metric.