The metric this data is for.
The region this data is for.
The current value of the metric or null if there is no available metric value for this region.
Optional
_timeseries: Timeseries<T>Private
Optional
_timeseriesReadonly
currentThe current value of the metric or null if there is no available metric value for this region.
Readonly
metricThe metric this data is for.
Readonly
regionThe region this data is for.
Returns the current value, but throws an error if it is null.
The timeseries data for this metric.
Throws if timeseries data was not fetched for this metric. See hasTimeseries.
Ensures the metric data is boolean.
Only strictly-boolean values are allowed (true, false). Use convertToBoolean() to coerce near-boolean values to boolean (e.g. "yes", 1, "True")
This MetricData
cast to MetricData<boolean>
.
Ensures the metric data is numeric.
Null values are treated as finite and will not throw an error.
This MetricData
cast to MetricData<number>
.
Ensures the metric data is of type string.
Null values are treated as strings and will not throw an error.
This MetricData
cast to MetricData<string>
.
Converts near-boolean metric data (e.g. "yes", "True", 1) to boolean.
Throws an error if any data is not coercible to a boolean.
This MetricData
with its data coerced to boolean, and cast to MetricData<boolean>
Removes timeseries data for this metric.
new MetricData object without timeseries data.
Uses this metric's categorization logic (based on categoryThresholds or categoryValues) to categorize the current value to a
Category
.
The category that the value falls into.
Removes any empty (null) values from the timeseries, Ensures the remaining
data is numeric, and returns a new Timeseries<number>
with the data.
The timeseries cast to Timeseries<number>
.
Generated using TypeDoc
Data for a particular region and metric, possibly including timeseries history.