Constructs a new MockDataProvider instance.
A 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
cachedReadonly
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.
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.
Method to be overridden by subclasses to fetch the specified MetricData.
The MetricData
for the given metric
and region
.
Generated using TypeDoc
Simple mock data provider that provides mock data for all regions. Mostly only useful for testing / demos.
Example