PowerMetric.Type

sealed class PowerMetric.Type


Configures the PowerMetric request.

Summary

Protected constructors

Public properties

Map<PowerCategoryPowerCategoryDisplayLevel>

A map which is used to configure which metrics are displayed.

Protected constructors

Type

protected Type(
    categories: Map<PowerCategoryPowerCategoryDisplayLevel> = emptyMap()
)
Parameters
categories: Map<PowerCategoryPowerCategoryDisplayLevel> = emptyMap()

A map which is used to configure which metrics are displayed. The key is a PowerCategory enum, which configures the subsystem category that will be displayed. The value is a PowerCategoryDisplayLevel, which configures whether each subsystem in the category will have metrics displayed independently or summed for a total metric of the category.

Public properties

categories

Added in 1.2.0
var categoriesMap<PowerCategoryPowerCategoryDisplayLevel>

A map which is used to configure which metrics are displayed. The key is a PowerCategory enum, which configures the subsystem category that will be displayed. The value is a PowerCategoryDisplayLevel, which configures whether each subsystem in the category will have metrics displayed independently or summed for a total metric of the category.