Private
dataPrivate
Optional
Readonly
dateReadonly
idA unique provider id to associate with the provider (e.g. "mock"). This ID can be used from a MetricDataReference in a metric to reference the data from this provider.
Private
Readonly
regionPrivate
Readonly
regionPrivate
Optional
Readonly
urlFetches 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.
Method to be overridden by subclasses to fetch the specified MetricData.
The MetricData
for the given metric
and region
.
Private
getGenerated using TypeDoc
A data provider that fetches data from a JSON file.
The JSON file should be an array of objects, where each object represents a single "row" of data.
Example
format of a JSON file: