Private
dataReturns the MultiMetricDataStore
for every region in the data store.
Whether this data store is empty.
Throws an exception if any values for any metrics for any regions are not finite numbers (e.g. strings, null, undefined, infinity, NaN).
The returned data store will be cast to MultiRegionMultiMetricDataStore<number>
so
any subsequent code doesn't need to deal with non-number values.
Removes timeseries data for all regions and metrics.
new MultiRegionMultiMetricDataStore object without timeseries data.
Merges the provided data store into this one and returns the result.
Data from the provided data store takes precedence over any existing data.
The merged data store.
The data store to merge into this one.
Gets the metric data for a given region and metric.
The metric data.
Gets all metric data for a given region.
A MultiMetricDataStore containing all metrics for the given region.
The region to get data for.
Persists all data into a JSON-compatible snapshot object.
Static
fromStatic constructor to create a MultiRegionMultiMetricDataStore from a list of regions, a list of metrics, and a dataGetter callback that returns MetricData for each region and metric combination.
Created MultiRegionMultiMetricDataStore instance.
Regions to create data for.
Metrics to create data for.
Callback that returns MetricData for each region and metric combination.
Static
fromStatic async constructor to create a MultiRegionMultiMetricDataStore from a list
of regions, a list of metrics, and a dataFetcher callback that returns
Promise
Created MultiRegionMultiMetricDataStore
instance.
Regions to create data for.
Metrics to create data for.
Callback that returns Promise<MetricData>
for each
region and metric combination. Once the returned promises resolve, they
will be assembled into a MultiRegionMultiMetricDataStore
.
Static
fromCreates a class instance from a snapshot for specified regions and metrics.
MultiRegionMultiMetricDataStore deserialized from snapshotJSON.
An output of this.toSnapshot() to deserialize.
Regions to include.
Metrics to read from snapshotJSON.
Whether to include metric timeseries.
Generated using TypeDoc
A metric data store containing data for multiple regions and multiple metrics.
Useful when fetching / storing a bunch of metrics that a single component needs.